How can I forge a DHCP Discovery packet using Bash?
问题 I would like to send via network (LAN) a classic DHCP Discover package using command line, in order to trigger a response from any DHCP server listening, so I could capture it with something like (say my IP address is 192.168.0.30 ): tcpdump -i eth0 host 192.168.0.30 -n -s 0 -vvv -w listening.pcap I think about this as a simple method to detect rogue DHCP servers on a network. How can I do this using Bash ? Further data : Other tools allowed , but lets try to keep ti simple: NetCat, sed, grep