Skip to content

Instantly share code, notes, and snippets.

@emrekasg
Last active March 28, 2020 21:41
Show Gist options
  • Save emrekasg/5febe6e9a27c22a81fa7c4521c139718 to your computer and use it in GitHub Desktop.
Save emrekasg/5febe6e9a27c22a81fa7c4521c139718 to your computer and use it in GitHub Desktop.
Scan your networks
import subprocess
import platform
myos = platform.system()
if myos == "Windows":
print(subprocess.Popen(["netsh", "wlan", "show", "network"]))
elif myos == "Linux":
subprocess.Popen(["nmcli", "dev", "wifi"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment