peppelinux / pydhcpstarvator Goto Github PK
View Code? Open in Web Editor NEWDHCP starvation with Python Scapy
License: BSD 2-Clause "Simplified" License
DHCP starvation with Python Scapy
License: BSD 2-Clause "Simplified" License
Hi, I'm suspecting that when moving to python3 something broke: I'm trying to play with the listener starvation attack (as in README), but whenever the listener receives a packet, it responds with
File "/root/pyDHCPStarvator/arp_ping.py", line 17, in get_mac arp_hdr = ARP(op=ARP.who_has, pdst=ip_addr) # ARP header with 'who has this IP with MAC?' File "/usr/local/lib/python3.7/dist-packages/scapy/base_classes.py", line 246, in __getattr__ raise AttributeError(attr) AttributeError: who_has
I also tried to "hard code" the op=1, but then another error happens:
File "/usr/local/lib/python3.7/dist-packages/scapy/route.py", line 155, in route atol_dst = atol(_dst) File "/usr/local/lib/python3.7/dist-packages/scapy/utils.py", line 468, in atol ip = inet_aton(socket.gethostbyname(x)) socket.gaierror: [Errno -2] Name or service not known
Should I switch to python2 branch (18 commits behind)?
Hi Guiseppe,
It's been a while since last commit to this, but I'll try here before diving into the code myself.
When running listener.py it doesn't parse the packages correctly.
root@dhcpstarv:~/pyDHCPStarvator# python3 listener.py -i ens224
Start DHCP listener on interface 'ens224' with filter 'port 68 and port 67'
DHCP OFFER from: n []
DHCP OFFER from: n []
DHCP OFFER from: n []
Perhaps there was a change in the scapy module?
Happy new year René
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.