Posts List

Melacak Unauthorized DHCP Server Dalam Sebuah LAN

Untuk mengetahui IP address dan MAC address dari sebuah DHCP server bayangan (baca:unauthorized) di sebuah LAN, bisa digunakan modul scapy bahasa pemrograman python. ┌─(root@pcxthinkslack) └─(:))(#)─> scapy INFO: No IPv6 support in kernel WARNING: No route found for IPv6 destination :: (no default route?) Welcome to Scapy (2.0.1) >>> conf.checkIPaddr = False >>> fam,hw = get_if_raw_hwaddr(conf.iface) >>> dhcp_discover = >>> Ether(dst="ff:ff:ff:ff:ff:ff")/IP(src="0.0.0.0",dst="255.255.255.255")/UDP(sport=68,dport=67)/BOOTP(chaddr=hw)/DHCP(options=[("message-type","discover"),"end"]) >>> ans, unans = srp(dhcp_discover, multi=True) Begin emission: Finished to send 1 packets.