Pwnagotchi: Difference between revisions
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
g_ether.host_addr=86:5A:EE:60:99:4B g_ether.dev_addr=86:5A:EE:60:99:4B | g_ether.host_addr=86:5A:EE:60:99:4B g_ether.dev_addr=86:5A:EE:60:99:4B | ||
In nm-connection-editor you can set the ipv4 settings on your linux box to 10.0.0.1/8 and you can ssh in. | In nm-connection-editor you can set the ipv4 settings on your linux box to 10.0.0.1/8 and then enable connection sharing and you can ssh in. | ||
ssh pi@10.0.0.2 | ssh pi@10.0.0.2 | ||
[[File:Nm-connection-settings-pwnagotchi.jpg|frameless]] | |||
You may or may not need these firewall rules | |||
<pre> | |||
#!/bin/bash | |||
sudo ip route add 10.0.0.0/8 dev enp0s20f0u1 | |||
</pre> | |||
<pre> | |||
~$ ip route list | |||
default via 192.168.0.1 dev wlp4s0 proto dhcp metric 600 | |||
10.0.0.0/8 dev enp0s20f0u1 proto kernel scope link src 10.0.0.1 metric 100 | |||
169.254.0.0/16 dev wlp4s0 scope link metric 1000 | |||
192.168.0.0/24 dev wlp4s0 proto kernel scope link src 192.168.0.55 metric 600 | |||
</pre> | |||
==Wifi== | ==Wifi== |
Revision as of 13:18, 12 May 2020
Pwnagotchi.ai installation guide
Adafruit PiRTC DS3231 remove the GPIO connector and then solder
2017 info on using DS3231 Real Time Clock
Waveshare e-ink display test utility
Networking
Via USB
change ethernet gadget (usb network) to a stable MAC address (choose whatever mac you like)
add the following to the end of /boot/cmdline.txt
g_ether.host_addr=86:5A:EE:60:99:4B g_ether.dev_addr=86:5A:EE:60:99:4B
In nm-connection-editor you can set the ipv4 settings on your linux box to 10.0.0.1/8 and then enable connection sharing and you can ssh in.
ssh pi@10.0.0.2
You may or may not need these firewall rules
#!/bin/bash sudo ip route add 10.0.0.0/8 dev enp0s20f0u1
~$ ip route list default via 192.168.0.1 dev wlp4s0 proto dhcp metric 600 10.0.0.0/8 dev enp0s20f0u1 proto kernel scope link src 10.0.0.1 metric 100 169.254.0.0/16 dev wlp4s0 scope link metric 1000 192.168.0.0/24 dev wlp4s0 proto kernel scope link src 192.168.0.55 metric 600
Wifi
you can't use iwconfig to connect the wireless, you have to use wpa_supplicant
ssh in
ssh pi@10.0.0.2