Giter VIP home page Giter VIP logo

driftnet's Introduction

Driftnet

release version license IDE Refactored CircleCI codecov jProfiler FOSSA Status

Driftnet watches network traffic, and picks out and displays JPEG, GIF and other image formats for display. It is a horrific invasion of privacy and shouldn't be used by anyone anywhere. It can also extract MPEG audio data from the network and play it. If you live in a house with thick walls, this may be a useful way to find out about your neighbours' musical taste.

News

Added option to delay between reading packets from dump file
Deprecate GTK2
Migrate display to GKT3 (GTK2 still supported)
Added WebP image format support
Added new, http and websockets based, display
Added basic windows support (cygwin)
Added option to list capture interfaces
Added support for putting the interface in monitor mode

Dependencies

Unix

You will need:

On most Linux distributions (APT based) these can be installed by executing sudo apt-get install libpcap-dev libjpeg-dev libpng-dev libgif-dev libwebp-dev. If you don't want a version of driftnet which will display images itself, but just want to use it to gather images for some other application, you only need libpcap. See comments in the Makefile for more information. To play MPEG audio, you need an MPEG player. By default, driftnet will use mpg123.

GTK display

Driftnet links by default against GTK 3 (GTK2 is still supported disabling GTK3 in the configure script ./configure --disable-gtk3).

  • GTK3 dependencies: sudo apt-get install libgtk-3-dev
  • GTK2 dependencies: sudo apt-get install libgtk2.0-dev

HTTP display

Instead of the GTK interface you can use a new HTML based one (the display could be selected at launch time).

Dependencies: sudo apt-get install libwebsockets-dev

Windows (on cygwin)

You will need:

Only 32 bits builds are supported (libwinpcap did not provide a x64 library). You should pass a x86 compiler to configure: ./configure --target=i686-pc-cygwin --host=i686-pc-cygwin

Compilation

To compile, generate the needed autotools files with autoreconf -fi (you probably need to install autotools) then run ./configure; make; make install. Driftnet is at a very early stage of development and probably won't work for you at all.

Usage

Driftnet needs to run with sufficient privilege to obtain raw packets from the network. On most systems, this means running it as root.

You can use Driftnet to sniff images passing over a wireless network. However, Driftnet does not understand the optional WEP encryption used with wireless ethernet. Instead, you can use Kismet to decrypt packets and pass them into a named pipe; the -f option can then be used to have Driftnet read the packets from the pipe. Thanks to Rob Timko and Joshua Wright for pointing this out; Rob's page describes the process in greater detail.

If you find this program entertaining, you might want to help me develop it. The TODO file contains a list of yet-to-be-done ideas.

License

Driftnet is licensed under the GNU GPL. See the file COPYING in the distribution.

Thanks

Support development

If you interested in this software (or other FOSS activities I do), get on board and become a Patron!

driftnet's People

Contributors

bgermann avatar deiv avatar ehaupt avatar fauxfaux avatar mjlbach avatar sandsmark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

driftnet's Issues

gtk/gtk.h no such file or directory

I'm trying to compile Driftnet on Kali Linux (Raspberry Pi).
However I get the following error when running make:
gtk/gtk.h no such file or directory
I've made sure all the dependencies ./configure checks for are installed, but still make fails.
Any idea why?

SYNTAX ERROR

./configure.ac: Line 5: Unexpected syntax error near symbol "[2.69]"
./configure.ac: line 5: `AC_PREREQ ([2.69]) '
When I run it on the linux, the system tell me that it has a syntax error at line 5.

make error on mac os 10.12 when making all in http_display

make
Making all in src
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in media
CC media.o
CC image.o
CC audio.o
CC mpeghdr.o
CC playaudio.o
CC http.o
AR libmedia.a
Making all in display
CC display.o
CC img.o
CC gif.o
CC jpeg.o
CC png.o
AR libdisplay.a
Making all in http_display
CC httpd.o
rm -f 'web_data.c'
echo '#include "web_data.h"' >> web_data.c
echo '#include <stddef.h>' >> web_data.c
for f in static_web/close.png static_web/index.html static_web/jquery.js static_web/lightbox.min.css static_web/lightbox.min.js static_web/loading.gif static_web/next.png static_web/prev.png ; do
echo -n 'unsigned char ' >> web_data.c;
basename $f | sed 's@[-. ]@@g' >> web_data.c;
echo '[] = {' >> web_data.c;
cat $f | xxd -i >> web_data.c;
echo '};' >> web_data.c;
done
echo 'web_static_file_t static_content[] = {' >> web_data.c
for f in static_web/close.png static_web/index.html static_web/jquery.js static_web/lightbox.min.css static_web/lightbox.min.js static_web/loading.gif static_web/next.png static_web/prev.png ; do
echo '{' >> web_data.c;
basename $f | sed 's@(.*)@"\1",@g' >> web_data.c;
basename $f | sed 's@[-. ]@
@g' >> web_data.c;
echo ',' >> web_data.c;
cat $f | wc -c >> web_data.c;
echo '},' >> web_data.c ;
done
echo '{NULL, NULL, 0}};' >> web_data.c
CC web_data.o
web_data.c:3:1: error: expected external declaration
-n unsigned char
^
web_data.c:3:2: error: unknown type name 'n'
-n unsigned char
^
web_data.c:3:4: error: expected identifier or '('
-n unsigned char

Segmentation fault on iOS on web interface load

When I try to connect to the web interface, it segfaults.
iOS Version: 14.3
Invoked with: sudo driftnet -vpwZ mobile -i en0
libwebsockets version: 4.3.1
driftnet commit: e492335617cc1ad085e30a45b50fabe543471834
Configured with:

LDFLAGS="-Os -flto=thin -arch arm64 -isysroot /Users/nick/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk -miphoneos-version-min=14.0 -L/Users/nick/Procursus/build_base/iphoneos-arm64/1700/usr/lib -L/Users/nick/Procursus/build_base/iphoneos-arm64/1700/usr/local/lib -F/Users/nick/Procursus/build_base/iphoneos-
arm64/1700/System/Library/Frameworks -F/Users/nick/Procursus/build_base/iphoneos-arm64/1700/Library/Frameworks -liosexec"

CFLAGS="-Os -flto=thin -arch arm64 -isysroot /Users/nick/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk -miphoneos-version-min=14.0 -isystem /Users/nick/Procursus/build_base/iphoneos-arm64/1700/usr/include -isystem /Users/nick/Procursus/build_base/iphoneos-arm64/1700/usr/local/include -F/Users/nick/Procursus/build_base/iphoneos-arm64/1700/System/Library/Frameworks -F/Users/nick/Procursus/build_base/iphoneos-arm64/1700/Library/Frameworks"

./configure
        --build=x86_64-apple-darwin \
        --host=aarch64-apple-darwin \
        --prefix=/usr \
        --localstatedir=/var \
        --sysconfdir=/etc \
        --bindir=/usr/bin \
        --mandir=/usr/share/man \
        --enable-silent-rules \
        --disable-dependency-tracking \
        --enable-shared \
        --enable-static \
        --enable-http-display \
        --disable-display \
        ac_cv_func_malloc_0_nonnull=yes \
        ac_cv_func_realloc_0_nonnull=yes

Debugger output:

(lldb) process attach --name driftnet
Process 79687 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00000001b410abf0 libsystem_kernel.dylib`__semwait_signal + 8
libsystem_kernel.dylib`__semwait_signal:
->  0x1b410abf0 <+8>:  b.lo   0x1b410ac0c               ; <+36>
    0x1b410abf4 <+12>: stp    x29, x30, [sp, #-0x10]!
    0x1b410abf8 <+16>: mov    x29, sp
    0x1b410abfc <+20>: bl     0x1b40e7f84               ; cerror
Target 0: (driftnet) stopped.

Executable module set to "/usr/bin/driftnet".
Architecture set to: arm64-apple-ios-.
(lldb) c
Process 79687 resuming
Process 79687 stopped
* thread #2, stop reason = EXC_BAD_ACCESS (code=1, address=0x18)
    frame #0: 0x00000001026a9168 driftnet`ws_callback + 108
driftnet`ws_callback:
->  0x1026a9168 <+108>: ldr    x8, [x20, #0x18]
    0x1026a916c <+112>: str    x8, [x19]
    0x1026a9170 <+116>: str    x19, [x20, #0x18]
    0x1026a9174 <+120>: ldr    x0, [x20, #0x20]
Target 0: (driftnet) stopped.
(lldb) bt
* thread #2, stop reason = EXC_BAD_ACCESS (code=1, address=0x18)
  * frame #0: 0x00000001026a9168 driftnet`ws_callback + 108
    frame #1: 0x000000010273c3a0 libwebsockets.19.dylib`___lldb_unnamed_symbol598$$libwebsockets.19.dylib + 132
    frame #2: 0x000000010273f38c libwebsockets.19.dylib`___lldb_unnamed_symbol617$$libwebsockets.19.dylib + 608
    frame #3: 0x000000010273fe4c libwebsockets.19.dylib`___lldb_unnamed_symbol619$$libwebsockets.19.dylib + 660
    frame #4: 0x000000010272ca88 libwebsockets.19.dylib`___lldb_unnamed_symbol512$$libwebsockets.19.dylib + 1156
    frame #5: 0x0000000102733364 libwebsockets.19.dylib`___lldb_unnamed_symbol541$$libwebsockets.19.dylib + 440
    frame #6: 0x0000000102733a48 libwebsockets.19.dylib`___lldb_unnamed_symbol543$$libwebsockets.19.dylib + 1188
    frame #7: 0x0000000102719b9c libwebsockets.19.dylib`lws_service_fd_tsi + 404
    frame #8: 0x00000001026ed280 libwebsockets.19.dylib`_lws_plat_service_forced_tsi + 140
    frame #9: 0x00000001026ed548 libwebsockets.19.dylib`_lws_plat_service_tsi + 596
    frame #10: 0x0000000102719c84 libwebsockets.19.dylib`lws_service + 108
    frame #11: 0x00000001026a94bc driftnet`___lldb_unnamed_symbol10$$driftnet + 204
    frame #12: 0x00000001d045db3c libsystem_pthread.dylib`_pthread_start + 288
(lldb) 

Output

mobile@iPad [139]:~$ sudo driftnet -vpwZ mobile -i en0
Mon Feb 28 17:49:57 2022 - info: listening on en0
Mon Feb 28 17:49:57 2022 - info: dropped privileges to user mobile
Mon Feb 28 17:49:57 2022 - info: using temporary file directory /var/tmp//driftnet-U9zHJb
Mon Feb 28 17:49:57 2022 - warning: http server initializated. go to http://localhost:9090
Mon Feb 28 17:49:58 2022 - info: new connection: 192.168.0.102:22 -> 192.168.0.106:43360
Mon Feb 28 17:49:58 2022 - info: new connection: 192.168.0.106:43360 -> 192.168.0.102:22
Mon Feb 28 17:49:58 2022 - info: new connection: 192.168.0.106:43362 -> 192.168.0.102:22
Mon Feb 28 17:49:58 2022 - info: new connection: 192.168.0.102:22 -> 192.168.0.106:43362
Mon Feb 28 17:50:05 2022 - info: new connection: 192.168.0.106:54112 -> 192.168.0.102:9090
Mon Feb 28 17:50:05 2022 - info: new connection: 192.168.0.102:9090 -> 192.168.0.106:54112
Segmentation fault: 11

Entitlements of driftnet:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>platform-application</key>
        <true/>
        <key>com.apple.private.security.no-container</key>
        <true/>
        <key>com.apple.private.skip-library-validation</key>
        <true/>
</dict>
</plist>

Additional crash log:

Date: 2/28/22, 6:25 PM
Process: driftnet
Bundle id: (null)
Device: iPad Pro, iOS 14.3

Exception type: EXC_BAD_ACCESS (SIGSEGV)
Exception subtype: KERN_INVALID_ADDRESS: 0x18
Exception codes: 0x0000000000000001, 0x0000000000000018
VM Protection: 0x18 is not in any region.

Triggered by thread: 1
Thread name: 
Call stack:
0   driftnet                      	0x00000001026a9168 0x1026a0000 + 37224      	// ws_callback
1   driftnet                      	0x00000001026a913c 0x1026a0000 + 37180      	// ws_callback
2   libwebsockets.19.dylib        	0x000000010273c3a0 0x1026cc000 + 459680     	// func_7031c
3   libwebsockets.19.dylib        	0x000000010273f38c 0x1026cc000 + 471948     	// func_7312c
4   libwebsockets.19.dylib        	0x000000010273fe4c 0x1026cc000 + 474700     	// func_73bb8
5   libwebsockets.19.dylib        	0x000000010272ca88 0x1026cc000 + 395912     	// func_60604
6   libwebsockets.19.dylib        	0x0000000102733364 0x1026cc000 + 422756     	// func_671ac
7   libwebsockets.19.dylib        	0x0000000102733a48 0x1026cc000 + 424520     	// func_675a4
8   libwebsockets.19.dylib        	0x0000000102719b9c 0x1026cc000 + 318364     	// lws_service_fd_tsi
9   libwebsockets.19.dylib        	0x00000001026ed280 0x1026cc000 + 135808     	// _lws_plat_service_forced_tsi
10  libwebsockets.19.dylib        	0x00000001026ed548 0x1026cc000 + 136520     	// _lws_plat_service_tsi
11  libwebsockets.19.dylib        	0x0000000102719c84 0x1026cc000 + 318596     	// lws_service
12  driftnet                      	0x00000001026a94bc 0x1026a0000 + 38076      	// func_1000093f0
13  libsystem_pthread.dylib       	0x00000001d045db3c 0x1d0454000 + 39740      	// _pthread_start
14  libsystem_pthread.dylib       	0x00000001d0462880 0x1d0454000 + 59520      	// thread_start

Register values:
PC: 0x0                 LR: 0x0                 CPSR: 0x0
x0: 0x0                 x1: 0x0                 x2: 0x0
x3: 0x0                 x4: 0x0                 x5: 0x0
x6: 0x0                 x7: 0x0                 x8: 0x0
x9: 0x0                 x10: 0x0                x11: 0x0
x12: 0x0                x13: 0x0                x14: 0x0
x15: 0x0                x16: 0x0                x17: 0x0
x18: 0x0                x19: 0x0                x20: 0x0
x21: 0x0                x22: 0x0                x23: 0x0
x24: 0x0                x25: 0x0                x26: 0x0
x27: 0x0                x28: 0x0

Loaded images:
0: /usr/bin/driftnet
1: /usr/lib/libiosexec.1.dylib
2: /usr/lib/libwebsockets.19.dylib
3: /usr/lib/dyld
4: /usr/lib/libssl.3.dylib
5: /usr/lib/libcrypto.3.dylib
6: /usr/lib/libbrotlienc.1.0.9.dylib
7: /usr/lib/libbrotlidec.1.0.9.dylib
8: /usr/lib/libuv.1.dylib
9: /usr/lib/libbrotlicommon.1.0.9.dylib
10: /usr/lib/system/libdispatch.dylib
11: /usr/lib/system/libdyld.dylib
12: /usr/lib/system/libsystem_info.dylib
13: /usr/lib/system/libsystem_c.dylib
14: /usr/lib/system/libsystem_malloc.dylib
15: /usr/lib/system/libsystem_networkextension.dylib
16: /usr/lib/libobjc.A.dylib
17: /usr/lib/libc++.1.dylib
18: /usr/lib/libc++abi.dylib
19: /usr/lib/system/libsystem_trace.dylib
20: /usr/lib/libsqlite3.dylib
21: /usr/lib/system/libsystem_notify.dylib
22: /usr/lib/system/libcorecrypto.dylib
23: /usr/lib/system/libsystem_asl.dylib
24: /usr/lib/system/libsystem_symptoms.dylib
25: /usr/lib/system/libsystem_kernel.dylib
26: /usr/lib/libSystem.B.dylib
27: /usr/lib/libpcap.A.dylib
28: /usr/lib/libz.1.dylib
29: /usr/lib/system/libcache.dylib
30: /usr/lib/system/libcommonCrypto.dylib
31: /usr/lib/system/libcompiler_rt.dylib
32: /usr/lib/system/libcopyfile.dylib
33: /usr/lib/system/liblaunch.dylib
34: /usr/lib/system/libmacho.dylib
35: /usr/lib/system/libremovefile.dylib
36: /usr/lib/system/libsystem_blocks.dylib
37: /usr/lib/system/libsystem_collections.dylib
38: /usr/lib/system/libsystem_configuration.dylib
39: /usr/lib/system/libsystem_containermanager.dylib
40: /usr/lib/system/libsystem_coreservices.dylib
41: /usr/lib/system/libsystem_darwin.dylib
42: /usr/lib/system/libsystem_dnssd.dylib
43: /usr/lib/system/libsystem_featureflags.dylib
44: /usr/lib/system/libsystem_m.dylib
45: /usr/lib/system/libsystem_platform.dylib
46: /usr/lib/system/libsystem_product_info_filter.dylib
47: /usr/lib/system/libsystem_pthread.dylib
48: /usr/lib/system/libsystem_sandbox.dylib
49: /usr/lib/system/libunwind.dylib
50: /usr/lib/system/libxpc.dylib


{"ProcessBundleID":"","ProcessName":"driftnet"}

Cannot find lib gtk-2.x while I do have gtk

I was compiling driftnet on OS X 10.11 and when I execute ./configure I got

checking for g_signal_connect_data in -lgobject-2.0... yes
checking for gtk_main in -lgtk-x11-2.0... no
configure: error: cannot find lib gtk-2.x

But I do have gtk+2.24.28. The only thing I doubt is that gtk+ was installed through homebrew, and the results from brew list gtk seems quite normal. Is there anything I haven't noticed?

FYI, the config.log is here, showing that the problem may be related to gtk i think.
https://drive.google.com/file/d/0B1wV83EBxUIubDY5M1M3b2kzZkk/view?usp=sharing

Can't install

I tried that command ./configure; make; make install unfortunately configure isn't found, make doesn't find any makefile and make says there is no rules for the target "install" I think your repository is really incomplete, install file, useless or not well done.

can' install

Making all in src
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in media
make[3]: Nothing to be done for `all'.
Making all in display
  CC       display.o
display.c:23:10: fatal error: 'gtk/gtk.h' file not found
#include <gtk/gtk.h>
         ^
1 error generated.
make[3]: *** [display.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Feature Possibility?

Is it possible to close out images once you see them in Driftnet?
For ex., if I see a content sensitive picture on driftnet and I want to close it out, is there anyway to click on an X button or something command-line to remove that picture?

Im asking because it will be helpful when doing a live demo.

Can't build with libwebsockets 4.3.0

libwebsockets recently removed a field from lws_http_mount (an unused[2]) which can't be initialized anymore:

--- a/src/http_display/httpd.c
+++ b/src/http_display/httpd.c
@@ -191,7 +191,6 @@ static void * http_server_dispatch(void *arg)
         LWSMPRO_FILE,                  /* mount type is a directory in a filesystem */
         1,                                     /* strlen("/"), ie length of the mountpoint */
         NULL,
-        { NULL, NULL } // sentinel
     };

     memset(&info, 0, sizeof info);

Freezes / Inconsistent running

I have a Cisco 2960S as my core switch. I have a SPAN port (mirror) setup and connected to my server for WAN traffic. I have been consistently using the SPAN port for other purposes and it works fine. Today I installed driftnet and ran it against my monitoring port on my server and was pleased to see that it was saving files. When I opened them, all of the jpegs were corrupted. The png files were fine. So I tried driftnet against one of my pcap files that I saved with dumpcap against the same mirror port and some of the jpegs from there worked just fine. I ran driftnet again against the same file and I get a different amount of filenames. For instance, the first time I ran it against the test file, I received 27 files. The next time, I received 2. The next time 3. This is the same file with unmodified contents. The outputted file names occur in the same order. For instance, the first file name for each time I run driftnet against the test pcap file is driftnet-568453886b8b4567.jpeg. The image is the same. So this is fine. But why is it not extracting them all each time I run it? And why does it not always capture data from my NIC?

gif error? help

i think i might be missing something but not sure what, please help. this is what i get when i try to install driftnet from "git clone https://github.com/deiv/driftnet.git"

root:/home/nate/driftnet # make
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --prefix=/usr/lib/erlang/lib --no-create --no-recursion
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
(bunch of lines cut out)
checking for library containing nanosleep... none required
checking for nanosleep... yes
checking that generated files are newer than configure... done

configure: creating ./config.status

driftnet Version 1.1.2

Prefix: '/usr/lib/erlang/lib'
Compiler: 'gcc -O2 -g -DDEBUG'

Package features:

  • enable display: yes

  • enable debug: yes

    Now type:

    • 'make' to build the package
  • 'make install' to install everything


/bin/sh ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/media/Makefile
config.status: creating src/display/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
Making all in src
make[1]: Entering directory /home/nate/driftnet/src' make all-recursive make[2]: Entering directory/home/nate/driftnet/src'
Making all in media
make[3]: Entering directory /home/nate/driftnet/src/media' make[3]: Nothing to be done forall'.
make[3]: Leaving directory /home/nate/driftnet/src/media' Making all in display make[3]: Entering directory/home/nate/driftnet/src/display'
CC gif.o
gif.c: In function ‘gif_load_hdr’:
gif.c:27:5: error: too few arguments to function ‘DGifOpenFileHandle’
g = I->us = DGifOpenFileHandle(fileno(I->fp));
^
In file included from gif.c:18:0:
/usr/include/gif_lib.h:179:14: note: declared here
GifFileType DGifOpenFileHandle(int GifFileHandle, int *Error);
^
make[3]: *
* [gif.o] Error 1
make[3]: Leaving directory /home/nate/driftnet/src/display' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory/home/nate/driftnet/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/nate/driftnet/src'
make: *** [all-recursive] Error 1
root:/home/nate/driftnet #

Idea...

Good afternoon. Is it possible to do a scan of an open network (or the network knowing its password) in monitor mode? Deiv you're here?

'gtk/gtk.h' file not found, make error on mac

Making all in src
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in media
make[3]: Nothing to be done for `all'.
Making all in display
CC display.o
display.c:22:10: fatal error: 'gtk/gtk.h' file not found
#include <gtk/gtk.h>
^~~~~~~~~~~
1 error generated.
make[3]: *** [display.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

macOS Serria ./configure make error

WeiMBP:driftnet-master wei-mac$ ./configure make
configure: WARNING: you should use --build, --host, --target
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for make-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... rm: conftest.dSYM: is a directory yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
./configure: line 3994: PKG_PROG_PKG_CONFIG: command not found
checking for make-ar... no
checking for make-lib... no
checking for make-link... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking for make-ranlib... no
checking for ranlib... ranlib
checking for pcap_open_live in -lpcap... yes
checking for pthread_create in -lpthread... yes
checking for g_free in -lglib-2.0... no
configure: error: cannot find lib glib-2.x

I found AC_CHECK_LIB([glib-2.0],
[g_free],
[],
[AC_MSG_ERROR([cannot find lib glib-2.x])])
in configure.ac , but my macPro have installed glib-2.50.3.
wei-mac$ brew install glib
Warning: glib-2.50.3 already installed

how can I debug it?

Missing logo/icon

When launching Driftnet from the Unity launcher I have noticied that it's missing a logo/icon. Is there one available or does one need designing?

make error on MAC

$ make
Making all in src
/Library/Developer/CommandLineTools/usr/bin/make  all-recursive
Making all in media
make[3]: Nothing to be done for `all'.
Making all in display
make[3]: Nothing to be done for `all'.
  CC       layer2.o
layer2.c:12:10: fatal error: 'netinet/ether.h' file not found
#include <netinet/ether.h>
         ^
1 error generated.
make[3]: *** [layer2.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

On Mac Os : configure: error: cannot find lib gif

Sorry for Mac OS again. When executing

./configure

It shows

checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
./configure: line 3994: PKG_PROG_PKG_CONFIG: command not found
checking for ar... ar
checking the archiver (ar) interface... ar
checking for ranlib... ranlib
checking for pcap_open_live in -lpcap... yes
checking for pthread_create in -lpthread... yes
checking for g_free in -lglib-2.0... yes
checking for g_signal_connect_data in -lgobject-2.0... yes
checking for gtk_main in -lgtk-quartz-2.0... yes
checking for gdk_window_get_state in -lgdk-quartz-2.0... yes
./configure: line 4565: --cflags: command not found
checking for DGifOpenFileHandle in -lgif... no
configure: error: cannot find lib gif

But no formulae named "gif" or "libungif" in Homebrew, btw, I have installed "giflib". Have you ever encountered this error?Thanks!

Install driftnet on Archlinux

hello, i am compiling driftnet on archlinux,and these some problems i cant figure out,please help me, thanks in advance!!

i have finished the first step: ./configure and everything is ok for now.
when i executed the second step: make ,the problem came out. the error information below:

Making all in src
make[1]: Entering directory '/tmp/driftnet-master/src'
make all-recursive
make[2]: Entering directory '/tmp/driftnet-master/src'
Making all in media
make[3]: Entering directory '/tmp/driftnet-master/src/media'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/tmp/driftnet-master/src/media'
Making all in display
make[3]: Entering directory '/tmp/driftnet-master/src/display'
CC gif.o
gif.c: 在函数‘gif_abort_load’中:
gif.c:50:5: 错误:提供给函数‘DGifCloseFile’的实参太少
DGifCloseFile((GifFileType_)I->us);
^
In file included from gif.c:18:0:
/usr/include/gif_lib.h:183:9: 附注:在此声明
int DGifCloseFile(GifFileType * GifFile, int *ErrorCode);
^
gif.c: 在函数‘gif_load_img’中:
gif.c:128:5: 错误:提供给函数‘DGifCloseFile’的实参太少
DGifCloseFile(g);
^
In file included from gif.c:18:0:
/usr/include/gif_lib.h:183:9: 附注:在此声明
int DGifCloseFile(GifFileType * GifFile, int *ErrorCode);
^
Makefile:319: recipe for target 'gif.o' failed
make[3]: *_* [gif.o] Error 1
make[3]: Leaving directory '/tmp/driftnet-master/src/display'
Makefile:450: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/tmp/driftnet-master/src'
Makefile:316: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/tmp/driftnet-master/src'
Makefile:395: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

i can't figure out it by myself, please help me, thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.