Help - Search - Members - Calendar
Full Version: driftnet
OESF Forums > General Forums > General Support and Discussion > Software
lardman
I cross-compiled driftnet (http://www.ex-parrot.com/~chris/driftnet/) as I thought it might be a bit of fun to wander the library seeing what pictures and music people are looking at (assuming it works).

I couldn't be bothered to (try to) port from GTK to Qt so I compiled it as the command line version. Now I need an image viewer which is capable of doing slideshows (with variable delay preferably) using the resultant images which will be plonked in a temp directory. Does anyone have any suggestions?

Assuming it works I'll do a Qt frontend - create a mosaic of the images, etc. That means I'll have one process creating images at random intervals and the Qt one displaying them. Any ideas as to how you could keep track of which images are new and haven't been displayed? I'm not sure how driftnet names the images which it finds (I'll look when I get back to Linux this arvo), but assuming it's just with a random name how would you work out what you'd already displayed? File modification time, etc.?

Cheers,


Si

P.S. Binary is here: http://students.bath.ac.uk/enpsgp/Zaurus/driftnet.gz (c.52kb, libc2.3 only. If there's demand I'll do a libc2.2 one too. Just stick it somewhere in the PATH, you need libpcap)
nitup
Looks interesting, It seems like I remember seeing about driftnet once before.

ohh, the possibilities.
lardman
Yeah, I thought so, but.... the network in my office is unfortunately a switched one so it doesn't work (I found a Windows version of the software to use here). I'll try wandering about in comp-sci or somewhere else where they have a WiFi (unswitched) network with it running on my Z.

FYI the Windows software is called CrystalBall. A google for 'CrystalBall and etherpeg' will find it.


Si
nitup
Same with my network at work, I'll have to plug my laptop in near the router and see if that makes a difference. On second thought, <EvilGrin>, I'll plug the router into a hub.
lardman
It'll probably work nicely on a wireless network, when I have time I'll go and test it.

If you do get to test it please let me know how it goes.


Si
RichS
"If there's demand I'll do a libc2.2 one too. Just stick it somewhere in the PATH, you need libpcap)"

Would that eb the reason I get : error while loading shared libraries: libgcc_s.s0.1: cannot load shared object file." when I try to run it? I can't firn this library anywhere I've searched...
lardman
I don't know. It seems to run fine on my OZ 3.3.6pre1 machine.

I'll take a look and see whether I've got this lib, actually, if I have time this evening I'll do a libc2.2 version and post that.


Si
RichS
Thanks! After much updating to get nmap, sniff and a few other programs running, I found that libc.so.6 (the library driftnet is now looking for) is a sym-link to libc-2.2.2.so. I would guess this is version 2.2 and nor 2.3 ;-)

The message I get now when I run driftnet is:
driftnet: /lib/libc.s0.6: version 'GLIBC_2.3': not found (required by driftnet

From this, I'm guessing I would need the 2.3 libraries or a version for 2.2?

Boy libraries are fun in linux... But at least after two days of searching, if anyone wants a working libpcap for the 5600, I know where to get it ;-)
lardman
Undo your symlinking (of libc), you're on the verge of making your Z unbootable.

Here's a version linked against libc2.2 (anyone can use this, even if you have a later version of libc):

http://students.bath.ac.uk/enpsgp/Zaurus/d...tnet_libc2.2.gz


Si

P.S. I used libpcap from OZ stable for this one (v0.7.2 I think), I think this will probably work on the Sharp ROMs. @RichS: if you have found one which definitely works on Sharp ROMs could you post a link? Cheers.
RichS
I don't think I created the link to lib.so.6 from libc-2.2.2.so ? But some installation may have done it? What is the hazard of this link? No doubt that I'm very lucky I haven't bricked the Z yet ;-) But I keep trying...

The libraries and some programs I got that seem to work are from the zynergy site at:

https://www.timekiller.org/zynergy/zynergy5600.htm

At the bottom of the page is a link to Z apps that he couldn't fit linked here:

https://www.timekiller.org/zynergy/Z_Apps.tar.gz

This includes a nmap, libpcap, tcpdump, dig, ssh, libstdc and some others.

Thanks for the 2.2 version. I'll give it a try in a minute ;-)
lardman
QUOTE
I don't think I created the link to lib.so.6 from libc-2.2.2.so ?


Sorry I misread your original email. I thought you'd tried to symlink from lib.so to a newer version of libc. What you have is normal, it's messing around and trying to put in a link to libc-2.3.x.so that breaks things (as I've found out in the past).

Let me know how you get on with driftnet.


Si
RichS
Well I don't even know if I have anything I can actually test it with right now? The only wireless connection I have up is the Z itself at the moment until a replacement processor arrives in a week...

On the bright side, this new driftnet runs with no complaints. I got the messages and can view the help screen with all the options. So it must be running and that's a big plus. Unfortunately, I have to get some real-life work done today ;-) I'll give driftnet a real test tonight.

Thanks!!!
RichS
okay, so curiosity got the best of me...

I run: sudo driftnet -d /mnt/card/tmp -v -i eth0 -s

I get back: driftnet: using temporary file directory /mnt/card/tmp
driftnet: listening on eth0 in promiscuous mode
drifnet: using filter expression 'tcp'
driftnet: link-level header length is 14 bytes


That's all. No captures, no more messages.
Will this capture only wirless data? It seems to ignore the other computers wired in to my network even though they all go through the same router and server to get to the internet. If it's wireless only, it'll have to wait till I get this other computer working. If it should grab data on my network now, then there's something wrong?
lardman
It should do any tcp/ip data, but it will only grab pictures (jpegs and gifs I think, not sure about pngs), and also mpeg audio streams. Depending on how your router routes the packets it may be that your Z doesn't actually receive anything but packets which are addressed to it, that was why I suggested a WiFi network as all clients will have to receive all packets.

That said, I've never actually used the desktop version so I've no real idea as to whether it'll work. I'll have a look later in the week and see whether I can get it to do something.


Si
RichS
okay' I can't test it with another wireless system yet, but sitting here using my Z it does capture all the images that opera is getting from the net. So it does work, at least loy right now.
drdank
QUOTE(lardman @ Feb 14 2004, 03:50 AM)
I couldn't be bothered to (try to) port from GTK to Qt so I compiled it as the command line version. Now I need an image viewer which is capable of doing slideshows (with variable delay preferably) using the resultant images which will be plonked in a temp directory. Does anyone have any suggestions?

*


I've been playing around with this for a while. For a slideshow, I"ve tried tximage and some Japanese imagemagick binaries, but I have found a quick and dirty solution in using the image program that comes on the 6k. Just direct the driftnet output to a documents folder (I use /home/zaurus/Documents/Image_Files, for example) and refresh the folder view as often as you need. Just make sure that the thumbnail option is on. You can also do the slideshow.
lardman
Nice to know that it works - I've not looked at it for a long while, but now that I'm running GPE I'll try to find out why the X version didn't produce a display.


Si
BarryW
When I run driftnet -a -v -d /mnt/cf/tmp -i wlan0 -s it looks like it runs okay, see the connections and little dots. Looks like it's downloading stuff. Nothing is showing up in the folder though. It also segfaults after a few minutes. Any ideas??
BarryW
Well in playing around, I did get it to see stuff. It only downloads stuff if I'm associated to a network. If I'm using my kismet settings it shows connections, but doesn't get anything. It also doesn't grab anything larger than about 40k.
lardman
QUOTE
It only downloads stuff if I'm associated to a network.


This is expected.

QUOTE
It also doesn't grab anything larger than about 40k.


Interesting - might be a built in thing I suppose.


Si
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.