Name | Modified | Size | Downloads / Week |
---|---|---|---|
DHCPSim_Final.py | 2015-04-22 | 19.9 kB | |
DHCPSim_README_.txt | 2015-04-22 | 1.6 kB | |
Totals: 2 Items | 21.5 kB | 6 |
The script is written in Python 2.7.3 and runs on Linux systems. First, the script sets the desired network interface to PROMISC mode, so that all traffic will be accepted - this is needed for the client functionality and packet sniffing. When using VirtualBox, the network interface that is connected to the network in GNS3 should be configured with the following setting: Promiscuous Mode - Allow All in the Settings/Network/Adapter menu. ### DHCP Client Simulator ### For the DHCP client simulator mode, assuming there is an active DHCP server in the network, the user can choose to simulate any number of DHCP clients. All DHCP leases obtained from the server are saved in the DHCP_Leases.txt file, which is automatically generated by the program. The user can also release the leases received from the server, either one by one (by IP address) or all of them at once. After releasing all the addresses, the DHCP_Leases.txt file is also cleared. This functionality has been tested using VirtualBox, Debian Linux and GNS3. #######PREREQUISITES####### #1. Linux + root access #2. Python 2.7.x #3. Scapy package. If not installed on the local PC, the program will provide the download link. #4. IP connectivity between the PC running the script and a network containing an active DHCP Server. #5. Configure the permissions on the script: chmod 755 DHCPSim_Final.py #######OTHER####### #Tools used for coding and testing: Python 2.7.3, Scapy, GNS3, VirtualBox, Linux. #Tested on Cisco IOS DHCP Server and Avaya IOS DHCP Server.