Help - Search - Members - Calendar
Full Version: mognet java wireless sniffer + logger compile help
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Personal Java/Jeode/J2ME Personal Profile
loji
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 smile.gif

Once we get this compiled and running on the Z, I'll make an IPK for it.
lardman
What about Wellenreiter or kismet?

Si
loji
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)
loji
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
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 smile.gif
Mag1c
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
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?
Mag1c
Hi,

this is the content of the rpm:

CODE
/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
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
Mag1c
Hi,

ooh yes, i forgot sad.gif

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
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 wink.gif look at all the tools that are using pcap.
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.