Login  | Home

Catalin George Festila: Python 3.7.4 : Test the DHCP handshakes.

Go back


Article:

(published: Oct. 16, 2019, 12:03 p.m.)

First, the DHCP is based on the earlier BOOTP protocol which uses well-known port numbers for both server and client instead of an ephemeral port. The server and the client communicate via broadcast and the server broadcasts the offered IP address to the client on UDP port 68. This python example has a learning purpose and does not harm anyone. import subprocess as sub import re def find_word(w