Giter VIP home page Giter VIP logo

arpy's People

Contributors

aniquetahir avatar ddubson avatar ivanvza avatar p9s avatar pau1fitz 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

arpy's Issues

charset is not correct

Hi, thanks for your tool.However, the characters set doesn't support Unicode.How can I fix it?

Looking forward to your relies.

screen shot 2018-09-08 at 12 18 51

Doesn't start

Basicly this happens:

sudo python arpy.py

python: can't open file 'arpy.py': [Errno 2] No such file or directory

Even if I cloned this git thing, still doesn't work

Does not install on Mac OS 10.12

./configure && make && make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i386-apple-darwin16.3.0
checking host system type... i386-apple-darwin16.3.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
rm: conftest.dSYM: is a directory
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -B output from gcc object... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
checking if gcc supports -fno-rtti -fno-exceptions... rm: conftest.dSYM: is a directory
yes
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... rm: conftest.dSYM: is a directory
yes
checking if gcc static flag -static works... rm: conftest.dSYM: is a directory
no
checking if gcc supports -c -o file.o... rm: conftest.dSYM: is a directory
yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin16.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
rm: conftest.dSYM: is a directory
checking for ld used by g++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... rm: conftest.dSYM: is a directory
yes
checking if g++ static flag -static works... rm: conftest.dSYM: is a directory
no
checking if g++ supports -c -o file.o... rm: conftest.dSYM: is a directory
yes
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin16.3.0 dyld
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for Python... checking for gethostbyname... yes
checking for socket... yes
checking for putmsg in -lstr... no
checking for open_mib in -lnm... no
checking for Check... no
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking sys/bufmod.h usability... no
checking sys/bufmod.h presence... no
checking for sys/bufmod.h... no
checking sys/dlpi.h usability... no
checking sys/dlpi.h presence... no
checking for sys/dlpi.h... no
checking sys/dlpihdr.h usability... no
checking sys/dlpihdr.h presence... no
checking for sys/dlpihdr.h... no
checking sys/dlpi_ext.h usability... no
checking sys/dlpi_ext.h presence... no
checking for sys/dlpi_ext.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mib.h usability... no
checking sys/mib.h presence... no
checking for sys/mib.h... no
checking sys/ndd_var.h usability... no
checking sys/ndd_var.h presence... no
checking for sys/ndd_var.h... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking net/bpf.h usability... yes
checking net/bpf.h presence... yes
checking for net/bpf.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking net/if_var.h usability... yes
checking net/if_var.h presence... yes
checking for net/if_var.h... yes
checking net/if_arp.h usability... yes
checking net/if_arp.h presence... yes
checking for net/if_arp.h... yes
checking net/if_dl.h usability... yes
checking net/if_dl.h presence... yes
checking for net/if_dl.h... yes
checking net/pfilt.h usability... no
checking net/pfilt.h presence... no
checking for net/pfilt.h... no
checking net/pfvar.h usability... no
checking net/pfvar.h presence... no
checking for net/pfvar.h... no
checking net/radix.h usability... no
checking net/radix.h presence... no
checking for net/radix.h... no
checking net/raw.h usability... no
checking net/raw.h presence... no
checking for net/raw.h... no
checking net/route.h usability... yes
checking net/route.h presence... yes
checking for net/route.h... yes
checking netinet/in_var.h usability... no
checking netinet/in_var.h presence... yes
configure: WARNING: netinet/in_var.h: present but cannot be compiled
configure: WARNING: netinet/in_var.h:     check for missing prerequisite headers?
configure: WARNING: netinet/in_var.h: see the Autoconf documentation
configure: WARNING: netinet/in_var.h:     section "Present But Cannot Be Compiled"
configure: WARNING: netinet/in_var.h: proceeding with the preprocessor's result
configure: WARNING: netinet/in_var.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for netinet/in_var.h... yes
checking net/if_tun.h usability... no
checking net/if_tun.h presence... no
checking for net/if_tun.h... no
checking linux/if_tun.h usability... no
checking linux/if_tun.h presence... no
checking for linux/if_tun.h... no
checking netinet/ip_fw.h usability... no
checking netinet/ip_fw.h presence... no
checking for netinet/ip_fw.h... no
checking linux/ip_fw.h usability... no
checking linux/ip_fw.h presence... no
checking for linux/ip_fw.h... no
checking linux/ip_fwchains.h usability... no
checking linux/ip_fwchains.h presence... no
checking for linux/ip_fwchains.h... no
checking linux/netfilter_ipv4/ipchains_core.h usability... no
checking linux/netfilter_ipv4/ipchains_core.h presence... no
checking for linux/netfilter_ipv4/ipchains_core.h... no
checking ip_fil_compat.h usability... no
checking ip_fil_compat.h presence... no
checking for ip_fil_compat.h... no
checking netinet/ip_fil_compat.h usability... no
checking netinet/ip_fil_compat.h presence... no
checking for netinet/ip_fil_compat.h... no
checking ip_compat.h usability... no
checking ip_compat.h presence... no
checking for ip_compat.h... no
checking netinet/ip_compat.h usability... no
checking netinet/ip_compat.h presence... no
checking for netinet/ip_compat.h... no
checking ip_fil.h usability... no
checking ip_fil.h presence... no
checking for ip_fil.h... no
checking netinet/ip_fil.h usability... no
checking netinet/ip_fil.h presence... no
checking for netinet/ip_fil.h... no
checking hpsecurity.h usability... no
checking hpsecurity.h presence... no
checking for hpsecurity.h... no
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking for sockaddr_in6 struct in <netinet/in.h>... yes
checking for sa_len in sockaddr struct... yes
checking for arp_dev in arpreq struct... no
checking for rt_msghdr struct in <net/route.h>... yes
checking whether gcc needs -traditional... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
no
checking for working memcmp... yes
checking for err... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strsep... yes
checking for Berkeley Packet Filter... yes
checking for Linux proc filesystem... no
checking for Linux PF_PACKET sockets... no
checking for SNMP MIB2 STREAMS... no
checking for route(7) STREAMS... no
checking for arp(7) ioctls... rm: conftest.dSYM: is a directory
no
checking for raw IP sockets ip_{len,off} host byte ordering... yes
checking for cooked raw IP sockets... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating dnet-config
config.status: creating include/Makefile
config.status: creating include/dnet/Makefile
config.status: creating man/Makefile
config.status: creating src/Makefile
config.status: creating python/Makefile
config.status: creating python/setup.py
config.status: creating test/Makefile
config.status: creating test/check/Makefile
config.status: creating test/dnet/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: executing depfiles commands
config.status: executing default commands
Making all in include
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in dnet
make[3]: Nothing to be done for `all'.
Making all in man
make[1]: Nothing to be done for `all'.
Making all in src
make[1]: Nothing to be done for `all'.
Making all in python
make[1]: Nothing to be done for `all'.
Making all in test
Making all in check
make[2]: Nothing to be done for `all'.
Making all in dnet
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all-am'.
make[1]: Nothing to be done for `all-am'.
Making install in include
Making install in dnet
make[3]: Nothing to be done for `install-exec-am'.
/bin/sh ../../config/mkinstalldirs /usr/local/include/dnet
 /usr/bin/install -c -m 644 addr.h /usr/local/include/dnet/addr.h
 /usr/bin/install -c -m 644 arp.h /usr/local/include/dnet/arp.h
 /usr/bin/install -c -m 644 blob.h /usr/local/include/dnet/blob.h
 /usr/bin/install -c -m 644 eth.h /usr/local/include/dnet/eth.h
 /usr/bin/install -c -m 644 fw.h /usr/local/include/dnet/fw.h
 /usr/bin/install -c -m 644 icmp.h /usr/local/include/dnet/icmp.h
 /usr/bin/install -c -m 644 intf.h /usr/local/include/dnet/intf.h
 /usr/bin/install -c -m 644 ip.h /usr/local/include/dnet/ip.h
 /usr/bin/install -c -m 644 ip6.h /usr/local/include/dnet/ip6.h
 /usr/bin/install -c -m 644 os.h /usr/local/include/dnet/os.h
 /usr/bin/install -c -m 644 rand.h /usr/local/include/dnet/rand.h
 /usr/bin/install -c -m 644 route.h /usr/local/include/dnet/route.h
 /usr/bin/install -c -m 644 tcp.h /usr/local/include/dnet/tcp.h
 /usr/bin/install -c -m 644 tun.h /usr/local/include/dnet/tun.h
 /usr/bin/install -c -m 644 udp.h /usr/local/include/dnet/udp.h
make[3]: Nothing to be done for `install-exec-am'.
/bin/sh ../config/mkinstalldirs /usr/local/include
 /usr/bin/install -c -m 644 dnet.h /usr/local/include/dnet.h
Making install in man
make[2]: Nothing to be done for `install-exec-am'.
/bin/sh ../config/mkinstalldirs /usr/local/man/man3
mkdir -p -- /usr/local/man/man3
mkdir: /usr/local/man/man3: Permission denied
make[2]: *** [install-man3] Error 1
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1

Doesn't work on MacOS 10.12.3

After I executed the sudo python arpy.py, arpy seems to have been in a quiescent state, will not show the target ip communication prompt (the target ip really in communication)

Then if you press any key will appear in the picture of the situation

screen shot 2017-02-02 at 15 21 15

Suggestion: Add an exit handler to revert port forwarding

Easiest way to do this is create an exit handler with the atexit package. Below is an example that I used in my fork of this branch:

def exit_handler():
	    if not dns_sniff_gource:
	        print(bcolours.OKBLUE + '[Info] Disabling IP Forwarding...' + bcolours.ENDC)
	    os.system('sysctl -w net.inet.ip.forwarding=0 > /dev/null')
	    os.system('sudo sysctl -w net.inet.ip.forwarding=0 > /dev/null ')
	    print(bcolours.OKBLUE + '[Info] Application Ended Gracefully.' + bcolours.ENDC)
	
atexit.register(exit_handler)

Doesn't work on 10.12.3 (16D32)

When I try to type with sudo, the program doesn't even start working, just goes back to main screen. Also MANY ERRORS:

[Info] Enabling IP Forwarding...
sysctl: unknown oid 'net.inet.ip.fw.enable'

The system doesn't even know the command

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "arpy.py", line 145, in poison
    except KeyboardInterupt:
NameError: global name 'KeyboardInterupt' is not defined


Traceback (most recent call last):
  File "arpy.py", line 208, in <module>
    main()
  File "arpy.py", line 199, in main
    start_poisen(target, interface, filter_parser())
  File "arpy.py", line 169, in start_poisen
    pkt = scapy.sniff(iface=interface,filter=scapy_filter,prn=dnshandle)
  File "/Library/Python/2.7/site-packages/scapy/sendrecv.py", line 610, in sniff
    p = s.recv()
  File "/Library/Python/2.7/site-packages/scapy/arch/pcapdnet.py", line 441, in recv
    pkt = self.ins.next()
  File "/Library/Python/2.7/site-packages/scapy/arch/pcapdnet.py", line 390, in next
    s,us = h.getts()
AttributeError: 'NoneType' object has no attribute 'getts'

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "arpy.py", line 145, in poison
    except KeyboardInterupt:
NameError: global name 'KeyboardInterupt' is not defined

I don't even understand any of this.

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.