pwnagotchi icon indicating copy to clipboard operation
pwnagotchi copied to clipboard

fix for windows 11 connection sharing

Open psiyco opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

yes fixed the connection and was able to reproduce it again * suggesting adding it to the guide for now

Describe the solution you'd like

in powershell !!! type

Set-ExecutionPolicy RemoteSigned Set-ExecutionPolicy Unrestricted

turn on bluetooth turn on pc hotspot and disabled power saver in option of hotspot IMPORTANT !

(youll have to edit the script to YOUR file name and location from here !!) cd - # to ps1 script location

powershell -ExecutionPolicy ByPass -File .\win_connection_share.ps1 -SetPwnagotchiSubnet

powershell -ExecutionPolicy ByPass -File .\win_connection_share.ps1 -EnableInternetConnectionSharing

*note that windows will actively play with adapters and configuration you will see your net freak out or tunneling internet from hotspot try to rest evreything going into airplane mod and disconnecting usb cable or restart the computer will fix it and than run the script again

  • genral rule for the bug if you wanna be sure pwnagotchi ran the script good without any windows problem youll see your adpters switch numbers in the script like wifi board wil be number 1 and after clicking on it it the second options it will switch places so be awere of that closing the script mid way will fu* up the config and youll have to restart the pc

Describe alternatives you've considered use linux as stated or windows 10

Additional context try to keep the hot spot conneted to something because it will go to sleep and will ignore the setting in windows' 11 i just connect it to my phone

*note youll have to turn on hotspot to have internet in pwnagotchi its somehow usuing it as a tunnel

sometimes it will freak out just ping google like 15 packets and look if thay all came back when it bugged on me it wrote that its tunnling the net from the hotspot somehow and than i had 50% packet loss but restart fixed it for me :]

psiyco avatar Jan 09 '24 06:01 psiyco

If you are trying to share your pc internet, it's easier (maybe quicker) to plug into the pi's otg port, and under 'Network Connections' go to to the internet receiving device i.e. Wi-Fi, then Properties, and the tab for sharing, select the pi's USB/RNDIS. Then profit.

JD-2006 avatar Jan 10 '24 09:01 JD-2006