This is a simple Go application that demonstrates how to disable Wi-Fi on a Windows system using the netsh
command.
Make sure you have Go installed. You can build the application using the following command:
go build
# Or
go build -o checknet.exe
# Or
# go build -o wifi-control.exe
This will generate an executable file named checknet.exe
.
To run the application, execute the following command:
.\checknet.exe -api-key={ipinfo.io API Key} -checking-interval=3s -notify-interval=20s -show-notification=false -show-alert=true -kill-switch=false
This will attempt to disable the Wi-Fi adapter on your Windows system using the netsh
command. Make sure to run the command with administrative privileges.
Upon successful execution, you should see the following output:
Wi-Fi disabled successfully.
If any errors occur during the execution, they will be displayed in the output.