Capture sniff print server packets

U

utsuxs

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
 
M

markspace

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.

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.
 
D

Daniel Pitts

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 ;-)
 
Joined
May 23, 2012
Messages
1
Reaction score
0
LAN Sniffing

On 2/17/12 11:40 AM, (e-mail address removed) 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 ;-)

You should use an old hub not a switch, on the last you just see multicast and broadcasr while on the hub you see all traffic on the LAN
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top