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

32-bit error #1

Closed
ThomasLengeling opened this issue Aug 27, 2013 · 6 comments
Closed

32-bit error #1

ThomasLengeling opened this issue Aug 27, 2013 · 6 comments

Comments

@ThomasLengeling
Copy link

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
Copy link
Owner

RSG commented Oct 11, 2013

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
Copy link

JABianchi commented Aug 2, 2018

@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
Copy link
Owner

RSG commented Sep 17, 2018

(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.

@RSG RSG closed this as completed Sep 17, 2018
@paulsmithkc
Copy link

This issue still isn't fixed...

@filobotica
Copy link

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

@paulsmithkc
Copy link

paulsmithkc commented Aug 2, 2020

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

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

5 participants