Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carnivore on RPI3 #4

Closed
quintendewilde opened this issue Nov 23, 2017 · 9 comments
Closed

Carnivore on RPI3 #4

quintendewilde opened this issue Nov 23, 2017 · 9 comments

Comments

@quintendewilde
Copy link

Would It be possible to run in it on a Raspberry PI 3?

Now that processing is available for RPI3?

@RSG
Copy link
Owner

RSG commented Nov 24, 2017

i did add Linux ARM support a few months back after a request from Raspberry PI users. but i have no RPI3 with which to test, so this is not an officially supported platform unfortunately. you might give it a try, and if there's any bug fixes i can do my best to attend to them.

@quintendewilde
Copy link
Author

Cool, I'm trying it on my Raspberry. Though I'm already having quite the trouble understanding what I exactly have to do to install or make it running.

First thing I did was install processing on RPi
Then I tried to sudo ./processing but I didn't think that works because it's not in the opt/ folder like on my linux distribution. (I'll have to find the root of the installtion of processing). Though processing works and runs scripts with the lancher. (but for the sudo launch I haven't found out yet)

Then I tried to run one of the example from the build/docs/processingexamples.zip
Which says I'm missing libraries. So I'm searching for these library files to put them in the processing libraries folder.

What I also see in the docs and in the files are something about a build.unix (which I don't find, only a build.xml) and lots of make files but when I cd in to the folder and type make clean it gives errors.

At last I need to change a few lines of code if following the linux install from source guide (how do I install the non source? Is there an apt get way? ). But these lines show something completely different, so I don't know if I should change them or swap them or add them.

All quite confusing to me. I'll keep trying and looking. But if you have some pointers or else. I'm very glad to here them 👍

@quintendewilde
Copy link
Author

Ok, I've managed to install processing on RPi, install the library from the processing library pool, not manually. (Is this required?)
I'm pretty sure the lib's for jpcap is installed (because I didn't get an error.)
And not sure if the java library-path is adjusted correctly.

Only thing I'm unable to do is runsudo ./processingin the RPi it gives me command not found

When running the example sketch I get following errors.

java.io.FileNotFoundException: .carnivore_preferences.txt (Permission denied)
	at java.io.FileOutputStream.open0(Native Method)
	at java.io.FileOutputStream.open(FileOutputStream.java:270)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
	at org.rsg.carnivore.Preferences.save(Preferences.java:79)
	at org.rsg.carnivore.Preferences.load(Preferences.java:67)
	at org.rsg.carnivore.Preferences.<init>(Preferences.java:34)
	at org.rsg.carnivore.Preferences.<clinit>(Preferences.java:26)
	at org.rsg.carnivore.CarnivoreP5.setVolumeLimit(CarnivoreP5.java:67)
	at org.rsg.carnivore.CarnivoreP5.<init>(CarnivoreP5.java:53)
	at sketch_171126a.setup(sketch_171126a.java:37)
	at processing.core.PApplet.handleDraw(PApplet.java:2412)
	at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1557)
	at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:316)
[org.rsg.carnivore.Preferences] saving prefs to disk: .carnivore_preferences.txt
java.io.FileNotFoundException: .carnivore_preferences.txt (Permission denied)
	at java.io.FileOutputStream.open0(Native Method)
	at java.io.FileOutputStream.open(FileOutputStream.java:270)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
	at org.rsg.carnivore.Preferences.save(Preferences.java:79)
	at org.rsg.carnivore.Preferences.put(Preferences.java:39)
	at org.rsg.carnivore.CarnivoreP5.setVolumeLimit(CarnivoreP5.java:67)
	at org.rsg.carnivore.CarnivoreP5.<init>(CarnivoreP5.java:53)
	at sketch_171126a.setup(sketch_171126a.java:37)
	at processing.core.PApplet.handleDraw(PApplet.java:2412)
	at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1557)
	at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:316)

@RSG
Copy link
Owner

RSG commented Nov 27, 2017 via email

@quintendewilde
Copy link
Author

quintendewilde commented Nov 27, 2017

I managed to get this to work. There was an automated symlink for processing.

so sudo processing starts up and makes it working.

So this can be closed.

Is there a group or forum to discuss certain project feasibilities? Because asking project related things is not really the place to do it for here?
Oh and thanks!!

@quintendewilde
Copy link
Author

@RSG last single question, when the hex converts it to ascii with the ascii() command.

Shouldn't I get something readable, now I'm getting some gibberishlike ascii, does it have something to do with the blank whitespaces?
I didn't found much on this online, yet...

J E     =     cA'  \h 5 D Nng a }F [  (s!     (P 8  i"   |    J T H|     35P 6 r  ,u      M b\. g 6    F      a       }   2r     ,  $) o     C   / M    '    h l { ds @        |     <5  d ^L [  S ?r=,       (  T     I  ,=        /         n# '  < IG  :L  ~     i   4   Yi  e    * , $e S<(     u*x  #$A  ^  + Z kvk Y = +7/    /   b z    R)   m  t     x O       P   'Y            g ^  H[   :! ml    C s  s;p X{  M%  G     Uv  \ r  1   "  {    X    [ ;\         h  | #   $  4yki 8g#n     ?   ; d     s   ?    G      R < ~    X    4 "  L    }<  ~j:        \  + xs   `h\   m    M 9 n  z   : C   t'  hh[  V  u ?P >od    O  ?gkw          V  4         pR ,    1       'cK   tr  8$=  r   )[    &  T3s   *           +  C`T   @   H i    V  9 !  e ; U  Y d :    &   $Dy L5*    

@RSG
Copy link
Owner

RSG commented Nov 29, 2017 via email

@ilyyay
Copy link

ilyyay commented Dec 5, 2017

Hi,
I'm having a problem with Carnivore on Raspberry Pi as well. It seems when I'm running it on the Pi the only data it's capturing is data that is interacting with the Pi itself, not anything else happening within the network. Meanwhile, on my mac, I'm seeing activity from everywhere else in the network. Any idea what I need to do to make it work in the same manner as it does on my mac?

@RSG
Copy link
Owner

RSG commented Dec 5, 2017

again Raspberry Pi is not officially supported as i have no hardware on which to test, but my guess is this is a network question not primarily a carnivore question. i.e. the answer has to do with what kind of switch/router you are connecting to and if/how your network adaptor interfaces with that network. the short version is that all devices are different and many modern networks are pretty locked down, meaning you can't sniff much more than the traffic going to/from your own device.

one solution is to change this from a bug into a feature and design a carnivore client that's oriented around the data coming to/from your own machine. i.e. design a client for which this network constraint is in fact an asset.

@RSG RSG closed this as completed Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants