Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #12135 > unrolled thread

Capture sniff print server packets

Started by"utsuxs@hotmail.com" <utsuxs@hotmail.com>
First post2012-02-17 11:40 -0800
Last post2012-02-21 17:45 -0800
Articles 3 — 3 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Capture sniff print server packets "utsuxs@hotmail.com" <utsuxs@hotmail.com> - 2012-02-17 11:40 -0800
    Re: Capture sniff print server packets markspace <-@.> - 2012-02-17 12:00 -0800
    Re: Capture sniff print server packets Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-02-21 17:45 -0800

#12135 — Capture sniff print server packets

From"utsuxs@hotmail.com" <utsuxs@hotmail.com>
Date2012-02-17 11:40 -0800
SubjectCapture sniff print server packets
Message-ID<4e6f3724-edbe-4e10-83b5-193bbddde0cb@e27g2000vbu.googlegroups.com>
I am on a LAN that has a TCP/IP print server.  I like to capture the
data sent to   the print server.  I’ve tried jsniff with jpcap but
that only seems to capture the tcp port of the pc I am on, not TCP/IP
of the print server.
Is it possible to capture the data of the print server?  Or turn my pc
in into a virtual printer and capture printer data that way?
Ideally I like to process the print jobs before they print but I’ll
take what ever I can get.  Scanning the print jobs would be fine too.
Any pointers and especially source code would be great.
Thank you

[toc] | [next] | [standalone]


#12137

Frommarkspace <-@.>
Date2012-02-17 12:00 -0800
Message-ID<jhmbl2$rfo$1@dont-email.me>
In reply to#12135
On 2/17/2012 11:40 AM, utsuxs@hotmail.com wrote:
> I am on a LAN that has a TCP/IP print server.  I like to capture the
> data sent to   the print server.I’ve tried jsniff with jpcap but


This is not Java related, but yes it should be possible.  What brand of 
print server?  What ports is it configured to work on?  What is your 
network topology?

I use Wireshark for network sniffing, but any sniffer should work, so if 
what you're using now isn't working, the obvious next step is to ask 
"why not?" before just trying different software at random.

<http://www.wireshark.org/>


> that only seems to capture the tcp port of the pc I am on, not TCP/IP
> of the print server.


That's normal, in certain network topologies.  Understanding networks is 
important if you want to do network programming.


> Is it possible to capture the data of the print server?  Or turn my pc
> in into a virtual printer and capture printer data that way?
> Ideally I like to process the print jobs before they print but I’ll
> take what ever I can get.  Scanning the print jobs would be fine too.
> Any pointers and especially source code would be great.


All of this could work, but will require a considerable amount of 
effort.  Good luck on the "free source code" part.


[toc] | [prev] | [next] | [standalone]


#12240

FromDaniel Pitts <newsgroup.nospam@virtualinfinity.net>
Date2012-02-21 17:45 -0800
Message-ID<sNX0r.6411$VR6.3974@newsfe14.iad>
In reply to#12135
On 2/17/12 11:40 AM, utsuxs@hotmail.com wrote:
> I am on a LAN that has a TCP/IP print server.  I like to capture the
> data sent to   the print server.  I’ve tried jsniff with jpcap but
> that only seems to capture the tcp port of the pc I am on, not TCP/IP
> of the print server.

You can try Wireshark to verify that the traffic makes it to your 
machine in the first place. If there is a network switch involved, the 
network traffic may not be broadcast to your node.  Also, if you are on 
a wireless network, some wireless cards and driver combinations prevent 
"sniffing" of traffic to other devices.


> Is it possible to capture the data of the print server?  Or turn my pc
> in into a virtual printer and capture printer data that way?
> Ideally I like to process the print jobs before they print but I’ll
> take what ever I can get.  Scanning the print jobs would be fine too.
> Any pointers and especially source code would be great.
> Thank you

This makes me curious what you're *really* trying to do. It may not 
involve sniffing at all.  You might be right on the path to creating a 
virtual printer, but they may also be more complex then necessary. 
Perhaps all you need to do is enable access to the print-queue on the 
print server.  Details vary by brand ;-)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web