Author Topic: mognet java wireless sniffer + logger compile help  (Read 4835 times)

loji

  • Full Member
  • ***
  • Posts: 130
    • View Profile
    • http://
mognet java wireless sniffer + logger compile help
« on: November 05, 2004, 12:22:16 pm »
this looks like a great program to sniff wireless but I can't find  binary anyplace ...  I've never compiled java before... I'm running  a standard sharp based ROM ... and would appreciate any help in getting this java program to run on the Z.

If you coudl recommend a java dev kit that is known to compile correctly for teh VM on the sharp zaurus I would like to hear it.

This is the first thing I have ever tried to compile. While I have no problem learning how to, If someone wants to take it upon themselves who might have more experiance, all the files are here.
http://www.node99.org/projects/mognet/
 I'll help however I can... This is a great mix between kismet, and ethereal. It would be right at home on the Z

Once we get this compiled and running on the Z, I'll make an IPK for it.
« Last Edit: November 05, 2004, 02:30:31 pm by loji »
-> pdaXrom beta 3 fixes & feeds
C-1000 + pdaXrom beta3
linksys wifi + expansions

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
mognet java wireless sniffer + logger compile help
« Reply #1 on: November 07, 2004, 10:46:08 am »
What about Wellenreiter or kismet?

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

loji

  • Full Member
  • ***
  • Posts: 130
    • View Profile
    • http://
mognet java wireless sniffer + logger compile help
« Reply #2 on: November 07, 2004, 09:06:34 pm »
I use both of those tools. Took awhile to get wellenrieter to work, and it's still nto tested, but at least it's reconizing my network card now.


The real appeal of this app for me is that it converts between asci and hex. So i can sniff headers, and see exactly what is in it all at once..  Instead of trying to log packets with kismet, then start up ethereal to analyze them.  (I don't have a working version of ethereal on my Z anyway)

and since it's java, this app should work with all versions of the ROMs, for both 5x00 and clamshell series.

So I gues I'm less interested in just wardriving with this app... it's useful for after a netowrk has been found, to see what is going on, and assist in site survaying. (wich the other tools aren't really fufilling in this way)
-> pdaXrom beta 3 fixes & feeds
C-1000 + pdaXrom beta3
linksys wifi + expansions

loji

  • Full Member
  • ***
  • Posts: 130
    • View Profile
    • http://
mognet java wireless sniffer + logger compile help
« Reply #3 on: November 08, 2004, 02:52:14 pm »
OK   well    it's moving forward.   I got it on my Z, and I added a runmognet file

It's trying to run,   but I get an error saying
Code: [Select]
java.lang.NoClassDefFoundError: net/sourceforge/jpcap/capture/RawPacketListener
So it looks like I just don't have the jpcap library installed?   I'll keep looking for it :   but if someone could help point me in the right direction of how to get jpcap running... or exactly what this error means ::  I'd apprecaite it
-> pdaXrom beta 3 fixes & feeds
C-1000 + pdaXrom beta3
linksys wifi + expansions

Mag1c

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://
mognet java wireless sniffer + logger compile help
« Reply #4 on: November 09, 2004, 03:57:14 am »
Hi,

yes, you're missing a library.  According to the package name "net/sourceforge/jpcap/capture/" you may find the lib here: jpcap.sourceforge.net.

Bye
Mag1c

loji

  • Full Member
  • ***
  • Posts: 130
    • View Profile
    • http://
mognet java wireless sniffer + logger compile help
« Reply #5 on: November 09, 2004, 01:49:48 pm »
So do I need to extract the contents of the rpm package?
I use debian on my linux box, but it's a bit busy right now, so I can't get to it :::   instead I'm emulating knoppix through my windows box ::   should be enough to be able to use alien to convert the rpm (or at least extract what I need). . .

Since java is interpreted, so shouldn't need to cross compile anything, right?   Just through the lib into the right place?

and do you know *where* the right place might be??  or an easier way to extract a rpm?
-> pdaXrom beta 3 fixes & feeds
C-1000 + pdaXrom beta3
linksys wifi + expansions

Mag1c

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://
mognet java wireless sniffer + logger compile help
« Reply #6 on: November 10, 2004, 05:27:54 am »
Hi,

this is the content of the rpm:

Code: [Select]
/usr
/usr/bin
/usr/lib
/usr/share
/usr/bin/jpcap
/usr/lib/jpcap-0.01.16
/usr/lib/libjpcap.so
/usr/lib/jpcap-0.01.16/jars
/usr/lib/jpcap-0.01.16/properties
/usr/lib/jpcap-0.01.16/thirdParty
/usr/lib/jpcap-0.01.16/jars/javadoc_net.sourceforge.jpcap-0.01.16.jar
/usr/lib/jpcap-0.01.16/jars/net.sourceforge.jpcap-0.01.16.jar
/usr/lib/jpcap-0.01.16/properties/simulator.properties
/usr/lib/jpcap-0.01.16/properties/tool.properties
/usr/lib/jpcap-0.01.16/thirdParty/jars
/usr/lib/jpcap-0.01.16/thirdParty/jars/dev-classes_net.ultrametrics-0.03.jar
/usr/lib/jpcap-0.01.16/thirdParty/jars/fooware_CommandLine-1.0.jar
/usr/share/doc
/usr/share/doc/jpcap-0.01.16
/usr/share/doc/jpcap-0.01.16/BUILD.osx
/usr/share/doc/jpcap-0.01.16/BUILD.unix
/usr/share/doc/jpcap-0.01.16/BUILD.windows
/usr/share/doc/jpcap-0.01.16/CREDITS
/usr/share/doc/jpcap-0.01.16/FAQ
/usr/share/doc/jpcap-0.01.16/INSTALL
/usr/share/doc/jpcap-0.01.16/MPL-1.1.txt
/usr/share/doc/jpcap-0.01.16/README
/usr/share/doc/jpcap-0.01.16/RELEASE_NOTES

You may try alien, but i dont know, if this fits into the Debian architecture. The shell script /usr/bin/jpcap may help you to find out, how to bring the application and the library together.

As i can see, the main library is net.sourceforge.jpcap-0.01.16.jar. Put this into the CLASSPATH of the application. The shared library libjpcap.so contains native code and has to be accessable through LD_LIBRARY_PATH. I don't know, if the thirdParty-libraries are needed. Try this out.

Bye
Mag1c

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
mognet java wireless sniffer + logger compile help
« Reply #7 on: November 10, 2004, 06:49:17 am »
Quote
The shared library libjpcap.so contains native code and has to be accessable through LD_LIBRARY_PATH. I don't know, if the thirdParty-libraries are needed. Try this out.

This will be a binary file so you'll need an arm version (OZ has it, not sure for other ROMs).


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

Mag1c

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://
mognet java wireless sniffer + logger compile help
« Reply #8 on: November 11, 2004, 05:38:51 am »
Hi,

ooh yes, i forgot

But you need the libjpcap which is not part of OZ. So you will need to compile it by yourself for ARM.

(Maybe i have some time next week to try to compile)

-Mag1c

loji

  • Full Member
  • ***
  • Posts: 130
    • View Profile
    • http://
mognet java wireless sniffer + logger compile help
« Reply #9 on: November 11, 2004, 09:13:58 am »
I've never cross compiled anything,  so if you do get a free moment  I would be very thankful.

I'm sure this jpcap library has alot of other interesting uses other than simply mognet as well   look at all the tools that are using pcap.
-> pdaXrom beta 3 fixes & feeds
C-1000 + pdaXrom beta3
linksys wifi + expansions