https://github.com/tintinweb/dhcpv4v6
low-level scapy based dhcp client script (ipv4 ipv6)
https://github.com/tintinweb/dhcpv4v6
Last synced: over 1 year ago
JSON representation
low-level scapy based dhcp client script (ipv4 ipv6)
- Host: GitHub
- URL: https://github.com/tintinweb/dhcpv4v6
- Owner: tintinweb
- License: gpl-2.0
- Created: 2012-11-24T17:01:58.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-08-19T18:22:51.000Z (almost 13 years ago)
- Last Synced: 2025-02-08T17:13:46.656Z (over 1 year ago)
- Language: Python
- Size: 56.6 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
DHCPv4v6
========
low-level scapy based dhcp client script (ipv4 ipv6)
Todo
========
* make threadable
* support more dhcp states
* fix v6 code!
Usage
========
specific_macs=["00:11:22:33:44:50","00:11:22:33:44:51","00:11:22:33:44:52","00:11:22:33:44:53","00:11:22:33:44:54","00:11:22:33:44:60","00:11:22:33:44:61","00:11:22:33:44:62","00:11:22:33:44:63"]
conf.checkIPaddr=False
conf.iface="eth2"
conf.verb=False
for m in specific_macs:
c = DHCPv4Client()
c.send_discover(src_mac=m)
c.wait_for_response()
c.send_request()
c.wait_for_response()
print c
for m in specific_macs:
c = DHCPv6Client()
c.send_discover(src_mac=m)
c.wait_for_response()
c.send_request()
c.wait_for_response()
print c