RSG / Carnivore

Surveillance tool for data networks.
67 stars 18 forks source link

32-bit error #1

Closed ThomasLengeling closed 6 years ago

ThomasLengeling commented 11 years ago

Hello

I just starting to try the library on a windows 64bit and I'm getting the following error message, "Can't load IA 32-bit .dll on a AMD 64-bit platform"

Error--can't load native library.

Make sure you have installed winpcap (http://www.winpcap.org) and that jpcap.dll is in the same folder as this application.

[org.rsg.carnivore.net.Devices] UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: C:\Users\thomas\Documents\Programacion\Processing\programas processing\libraries\carnivore\library\jpcap.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform [org.rsg.carnivore.net.Devices] Found network devices: {} [org.rsg.carnivore.Core] starting PacketCacheThread [org.rsg.carnivore.Core] addCarnivoreListener: org.rsg.carnivore.CarnivoreP5@2e1551b0 [org.rsg.carnivore.Preferences] loading preference file: .carnivore_preferences.txt [org.rsg.carnivore.Preferences] saving prefs to disk: .carnivore_preferences.txt [CarnivoreP5] dispose()

RSG commented 10 years ago

i think this due to the jpcap library included with carnivore, which is currently a 32 bit library. you need the 64 bit jpcap library. you can go here

https://groups.google.com/forum/#!topic/jpcap/-vxZv0eAcp4

download and rename the file to jpcap.dll and replace it for the file inside the carnivore library folder. let me know if that doesn't work.

JABianchi commented 6 years ago

@RSG Hi, I'm a high school teacher excited to use Carnivore in Computer Science education classes. I was able to successfully run example code on a mac, but all of the computer labs are 64-bit Windows machines, and was having a lot of difficulty with this, particularly running Carnivore on a 64-bit Windows 10 machine using a 64-bit version of Processing.

This was the console output:

[org.rsg.carnivore.Log] setDebug: true
[org.rsg.carnivore.CarnivoreP5] starting carnivore core
[org.rsg.carnivore.Core] Windows 10 (10.0), amd64, 64 bit
[org.rsg.carnivore.Core] Running Java version 1.8.0_181
[org.rsg.carnivore.Core] Starting Carnivore Core version 8
[net.sourceforge.jpcap.capture.PacketCapture] loading native library jpcap... jpcap-win64bit
Error--can't load native library.

Make sure you have installed winpcap (http://www.winpcap.org)
and that jpcap.dll is in the same folder as this application.

[org.rsg.carnivore.net.Devices] UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: net.sourceforge.jpcap.capture.PacketCapture.lookupDevices()[Ljava/lang/String;
[org.rsg.carnivore.net.Devices] Found network devices: {}
[org.rsg.carnivore.Core] starting PacketCacheThread
[org.rsg.carnivore.Core] addCarnivoreListener: org.rsg.carnivore.CarnivoreP5@646ef282
[org.rsg.carnivore.Preferences] loading preference file: .carnivore_preferences.txt
[org.rsg.carnivore.Preferences] saving prefs to disk: .carnivore_preferences.txt

I tried to find a different version of the jpcap 64 dll and replace it with the provided one, but that didn't show a difference.

However, running on a 32-bit version of Processing resulted in the following:

[org.rsg.carnivore.CarnivoreP5] starting carnivore core
[org.rsg.carnivore.Core] Windows 10 (10.0), x86, 32 bit
[org.rsg.carnivore.Core] Running Java version 1.8.0_181
[org.rsg.carnivore.Core] Starting Carnivore Core version 8
[net.sourceforge.jpcap.capture.PacketCapture] loading native library jpcap... jpcap-win32bit
[org.rsg.carnivore.net.Devices] Found network devices: {\Device\NPF_{AA8646AF-D574-415D-9CFD-42A945A53B04}=  Microsoft, \Device\NPF_{15C64431-972A-4A6B-ABAD-2F7474852364}=  Realtek PCIe GBE Family Controller, \Device\NPF_{4B6E172D-4859-48B7-9A4C-1F91952D8058}=  Microsoft, \Device\NPF_{25E76FFA-08EA-49DA-9832-C4D0BC482BA9}=  Microsoft}
[org.rsg.carnivore.Core] starting PacketCacheThread
[org.rsg.carnivore.Core] Warning -- can't open device "\Device\NPF_{AA8646AF-D574-415D-9CFD-42A945A53B04}" (CaptureDeviceOpenException)
net.sourceforge.jpcap.capture.CaptureDeviceOpenException: failed to set hardware filter to promiscuous mode
[org.rsg.carnivore.Core] addCarnivoreListener: org.rsg.carnivore.CarnivoreP5@1ba97ed
[org.rsg.carnivore.Preferences] loading preference file: .carnivore_preferences.txt
[org.rsg.carnivore.Preferences] saving prefs to disk: .carnivore_preferences.txt

Is there any way to use Carnivore on a 64-bit Windows machine?

RSG commented 6 years ago

(apologies for the delay) -- the short answer is that Carnivore is really not supported any more on Windows. i simply don't have access to enough Win machines to be able to test it properly. hopefully in the future i'll be able to find a simple implementation for this. but for now you're out of luck, sorry.

paulsmithkc commented 4 years ago

This issue still isn't fixed...

filobotica commented 4 years ago

winpcap not work for windows 10 :( Anyone tried nmap?

paulsmithkc commented 4 years ago

nmap doesn't have very good dataviz. And you can't set it up on a smart mirror. 😟