collected ramblings to get a pwnagotchi working
Windows RDNIS Gadget Drivers can be found here: https://www.catalog.update.microsoft.com/Search.aspx?q=USB%20RNDIS%20Gadget This was arguably one of the harder things to track down, and is an absolute must-have to connect to raspi through a Windows machine. If for whatever reason this page disappears, first check archive.org for the URL. Sometimes using a cached version of a page also works if the original page is down for maintenance.
or use the MOD device driver read more about it here: https://www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/ download the drivers here: https://web.archive.org/web/20200801154151/http://web1.moddevices.com/shared/mod-duo-rndis.zip apparently MIDI devices are similar enough that he drivers are compatible.
Another surprising linkage was the Bonjour print driver: https://support.apple.com/kb/DL999?locale=en_US while it might just be an element of wizardry, but for whatever reason, this helps, and i'm not exactly sure why using the 2 together should work but I'll sacrifice a few MB of my storage drive to the IT gods so that my code runs.
This is one that took a long while to understand. Going through the manual process of changing the IP, Subnet mask, DNS, etc from within the Network and Sharing Center is one way. But those changes seemed to only last for 1 "pluged in" session. The powershell script sticks the changes, as long as the raspi device is plugged-in, and has booted. If you prefer the manual way, use the
Use the networking script from the git repo to share internet to the pwnagotchi.
-
Make sure NetworkManager isn't fucking up your settings. It probably is.
-
Open powershell as administrator you need admin privileges
-
set-executionpolicy remotesigned
to allow scripts -
Set-ExecutionPolicy unrestricted
to allow scripts -
https://github.com/evilsocket/pwnagotchi/blob/master/scripts/win_connection_share.ps1
-
https://github.com/evilsocket/pwnagotchi/blob/master/scripts/macos_connection_share.sh
-
https://github.com/evilsocket/pwnagotchi/blob/master/scripts/linux_connection_share.sh
-
Plugin rpi with pwnagotchi sd card inserted.
-
CD to drive where “_connection_share.” is located
-
.\win_connection_share -EnableInternetConnectionSharing
-
.\win_connection_share -SetPwnagotchiSubnet
-
SSH into the pwnagotchi with default creds.
ssh [email protected]
password: raspberry
Head to Control Panel > Network and Sharing Center > Change adapter settings.
Give the new Ethernet connection (your Pwnagotchi) a right-click and choose Properties.
Navigate to Internet Protocol Version 4 (TCP/IPv4) > Properties.
Fill in: “Use the following IP address”:
IP Address: 10.0.0.1
Subnet Mask: 255.255.255.0
Gateway: 10.0.0.1
DNS: 8.8.8.8
Save your changes and exit.
Launch your preferred SSH client (PuTTY) Direct your SSH connection to 10.0.0.2, the default address for your Pwnagotchi when tethered over USB.
or CMD prompt as Admin ssh [email protected]
Credentials: Username is 'pi', and the password, unless modified, is 'raspberry'.