This makes parasite compile on Mac OS X although it doesn't give full functionality as on Linux. See http://www.thehackerschoice.com/ for parasite sourcecode. You need th have libnet installed which is most easy by using fink - see http://fink.sourceforge.net/ --drt@un.bewaff.net - http://c0re.jp/ diff -r -u parasite-1.1-orig/Makefile parasite-1.1/Makefile --- parasite-1.1-orig/Makefile Wed Sep 12 15:43:28 2001 +++ parasite-1.1/Makefile Fri Nov 23 01:15:41 2001 @@ -1,9 +1,9 @@ # If linux, use PLATFORM=-DLINUX_SPEED_HACK otherwise comment it out -PLATFORM=-DLINUX_SPEED_HACK +#PLATFORM=-DLINUX_SPEED_HACK CC=gcc -OPT=-O3 -fomit-frame-pointer -funroll-loops `libnet-config --defines` -LIB=-L/usr/local/lib -lpcap -lnet +OPT=-O3 -fomit-frame-pointer -funroll-loops `libnet-config --defines` -I/sw/include +LIB=-L/usr/local/lib -L/sw/lib -lpcap -lnet BINARY=parasite INSTALL=/usr/local/bin diff -r -u parasite-1.1-orig/parasite.c parasite-1.1/parasite.c --- parasite-1.1-orig/parasite.c Sat Sep 15 14:57:09 2001 +++ parasite-1.1/parasite.c Fri Nov 23 01:20:33 2001 @@ -36,32 +36,32 @@ int sock; void help() { - printf("%s %s by %s - -Syntax: %s [-dflsSTbvDFPR] [-m MAC] INTERFACE - -Options: - -d debug (dont fork and become a deamon + double verbosity) - -f run in foreground (dont fork and become a daemon) - -l keep routing active after program end (prevents DOS) - -m send this MAC - -s be silent, dont print any output - -S only spoof if request is from this source IP - -T only spoof if request is for this target IP - -b allow -S/-T in both directions - -v be verbose, print many information - -D send random MACs (results in a network DOS) - -F constantly flood the switch with made-up arp replies - -P promisc mode, prevents DOS from -D. needs kernel < 2.2.9 - -R DONT activate routing - -%s is an ARP reply spoofer for ethernet networks. -It can be used to establish a man-in-the-middle, sniff on switches (even with -port-security on) and denial any communication on the LAN (DOS). -An ethernet interface (e.g. eth0) has to be given as an option to %s. -You can always find the newest version at %s -Use is only permitted for legal purposes. The GPL v2 applies to this code. -", PROGRAM, VERSION, AUTHOR, prg, PROGRAM, PROGRAM, RESSOURCE); + printf("%s %s by %s\n"\ +"\n"\ +"Syntax: %s [-dflsSTbvDFPR] [-m MAC] INTERFACE\n"\ +"\n"\ +"Options:\n"\ +" -d debug (dont fork and become a deamon + double verbosity)\n"\ +" -f run in foreground (dont fork and become a daemon)\n"\ +" -l keep routing active after program end (prevents DOS)\n"\ +" -m send this MAC\n"\ +" -s be silent, dont print any output\n"\ +" -S only spoof if request is from this source IP\n"\ +" -T only spoof if request is for this target IP\n"\ +" -b allow -S/-T in both directions\n"\ +" -v be verbose, print many information\n"\ +" -D send random MACs (results in a network DOS)\n"\ +" -F constantly flood the switch with made-up arp replies\n"\ +" -P promisc mode, prevents DOS from -D. needs kernel < 2.2.9\n"\ +" -R DONT activate routing\n"\ +"\n"\ +"%s is an ARP reply spoofer for ethernet networks.\n"\ +"It can be used to establish a man-in-the-middle, sniff on switches (even with\n"\ +"port-security on) and denial any communication on the LAN (DOS).\n"\ +"An ethernet interface (e.g. eth0) has to be given as an option to %s.\n"\ +"You can always find the newest version at %s\n"\ +"Use is only permitted for legal purposes. The GPL v2 applies to this code.\n"\ +, PROGRAM, VERSION, AUTHOR, prg, PROGRAM, PROGRAM, RESSOURCE); exit(-1); } diff -r -u parasite-1.1-orig/parasite.h parasite-1.1/parasite.h --- parasite-1.1-orig/parasite.h Wed Sep 12 15:43:28 2001 +++ parasite-1.1/parasite.h Fri Nov 23 01:17:37 2001 @@ -12,6 +12,7 @@ #endif #include #define _USE_BSD +#include #include #include #include