Skip to content

Instantly share code, notes, and snippets.

@pkdavies
Created February 16, 2017 08:59
Show Gist options
  • Save pkdavies/96630672f5a9c86d06a788b7368873d8 to your computer and use it in GitHub Desktop.
Save pkdavies/96630672f5a9c86d06a788b7368873d8 to your computer and use it in GitHub Desktop.
sudo bash
echo -e "\nauto usb0\nallow-hotplug usb0\niface usb0 inet static\n\taddress 1.0.0.1\n\tnetmask 0.0.0.0" >> /etc/network/interfaces
echo "dtoverlay=dwc2" >> /boot/config.txt
echo -e "dwc2\ng_ether" >> /etc/modules
sudo sed --in-place "/exit 0/d" /etc/rc.local
echo "/bin/sh /home/pi/poisontap/pi_startup.sh" >> /etc/rc.local
mkdir /home/pi/poisontap
chown -R pi /home/pi/poisontap
apt-get update && apt-get upgrade
apt-get -y install isc-dhcp-server dsniff screen nodejs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment