Author Topic: driftnet  (Read 6181 times)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
driftnet
« on: February 14, 2004, 06:50:26 am »
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)
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

nitup

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://www.pbase.com/george_iii
driftnet
« Reply #1 on: February 16, 2004, 01:06:53 pm »
Looks interesting, It seems like I remember seeing about driftnet once before.  

ohh, the possibilities.
George
sl5500, sharp 3.13, 64M lexar mmc, wcf11

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
driftnet
« Reply #2 on: February 16, 2004, 01:27:26 pm »
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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

nitup

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://www.pbase.com/george_iii
driftnet
« Reply #3 on: February 22, 2004, 03:24:51 pm »
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.
George
sl5500, sharp 3.13, 64M lexar mmc, wcf11

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
driftnet
« Reply #4 on: February 22, 2004, 06:09:15 pm »
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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

RichS

  • Full Member
  • ***
  • Posts: 146
    • View Profile
    • http://
driftnet
« Reply #5 on: February 22, 2004, 10:54:39 pm »
\"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...
SL-5600 Sharp v.1.32 ROM
CE-AG06 camera
Linksys WCF-12 wireless CF
D-Link DCF-660W wireless CF (dead!)
Sandisk 64meg SD, 256meg CF
Kingston 512meg CF
Viking 128meg SD, 1 gig CF

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
driftnet
« Reply #6 on: February 23, 2004, 04:26:38 am »
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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

RichS

  • Full Member
  • ***
  • Posts: 146
    • View Profile
    • http://
driftnet
« Reply #7 on: February 23, 2004, 11:29:25 pm »
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 ;-)
SL-5600 Sharp v.1.32 ROM
CE-AG06 camera
Linksys WCF-12 wireless CF
D-Link DCF-660W wireless CF (dead!)
Sandisk 64meg SD, 256meg CF
Kingston 512meg CF
Viking 128meg SD, 1 gig CF

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
driftnet
« Reply #8 on: February 24, 2004, 05:18:37 am »
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.
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

RichS

  • Full Member
  • ***
  • Posts: 146
    • View Profile
    • http://
driftnet
« Reply #9 on: February 24, 2004, 10:34:15 am »
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 ;-)
SL-5600 Sharp v.1.32 ROM
CE-AG06 camera
Linksys WCF-12 wireless CF
D-Link DCF-660W wireless CF (dead!)
Sandisk 64meg SD, 256meg CF
Kingston 512meg CF
Viking 128meg SD, 1 gig CF

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
driftnet
« Reply #10 on: February 24, 2004, 11:17:09 am »
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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

RichS

  • Full Member
  • ***
  • Posts: 146
    • View Profile
    • http://
driftnet
« Reply #11 on: February 24, 2004, 01:06:46 pm »
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!!!
SL-5600 Sharp v.1.32 ROM
CE-AG06 camera
Linksys WCF-12 wireless CF
D-Link DCF-660W wireless CF (dead!)
Sandisk 64meg SD, 256meg CF
Kingston 512meg CF
Viking 128meg SD, 1 gig CF

RichS

  • Full Member
  • ***
  • Posts: 146
    • View Profile
    • http://
driftnet
« Reply #12 on: February 24, 2004, 02:18:46 pm »
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?
SL-5600 Sharp v.1.32 ROM
CE-AG06 camera
Linksys WCF-12 wireless CF
D-Link DCF-660W wireless CF (dead!)
Sandisk 64meg SD, 256meg CF
Kingston 512meg CF
Viking 128meg SD, 1 gig CF

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
driftnet
« Reply #13 on: February 24, 2004, 03:44:59 pm »
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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

RichS

  • Full Member
  • ***
  • Posts: 146
    • View Profile
    • http://
driftnet
« Reply #14 on: February 24, 2004, 06:02:40 pm »
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.
SL-5600 Sharp v.1.32 ROM
CE-AG06 camera
Linksys WCF-12 wireless CF
D-Link DCF-660W wireless CF (dead!)
Sandisk 64meg SD, 256meg CF
Kingston 512meg CF
Viking 128meg SD, 1 gig CF