Last active
March 28, 2020 21:41
-
-
Save emrekasg/5febe6e9a27c22a81fa7c4521c139718 to your computer and use it in GitHub Desktop.
Scan your networks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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