evilsocket / pwnagotchi

(⌐■_■) - Deep Reinforcement Learning instrumenting bettercap for WiFi pwning.
https://pwnagotchi.ai/
Other
7.36k stars 1.13k forks source link

fix for windows 11 connection sharing #1208

Open psiyco opened 5 months ago

psiyco commented 5 months ago

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

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 :]

JD-2006 commented 5 months ago

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.