No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

DHCP hostname injector

Used for setting your DHCP hostname to things that could break your router. Generally this will get XSS on poorly coded SOHO router web interfaces.

I'm sure theres probably a billion other things that do this - I don't care.

Inspired by @silviocesare cos I think he did it once.


Tim Noise


git clone


Best used on a secondary interface. captain obvious

  • Make sure your interface is not configured already, comment it out in /etc/network/interfaces and sudo service networking restart
  • Edit the payload variable in to whatever


sudo ifconfig eth1 up
sudo ./ eth1

Wireless Before you use this on wireless, make sure rfkill hasnt disabled your radio, etc

sudo ifconfig wlan0 up
wpa_passphrase My Target Network Name > ./wpa_supplicant.conf
sudo ./ wlan0


sudo apt-get install wireless-tools scapy


  • Only really tested on ubuntu 14.04 - may or may not be DHCP compliant.
  • I haven't done a wide range of testing, nor do I plan to.
  • You may need to man wpa_supplicant and RTFM to get wpa_supplicant to work on its own first.
  • theres a min length for the hostname field of 1 in RFC 2132 section 3.14
  • "allowed characters" are in RFC 1035 - use the term allowed lightly.
  • Its just using scapy, so modify as necessary to inject other params