79093738

Date: 2024-10-16 11:05:26
Score: 1
Natty:
Report link

Mark Ch's answer didn't work for me as I was using Python 3. To make it work, you need to make a very simple change by making a comparison between two strings as follows :

import subprocess

if "SchoolWifiName" in str(subprocess.check_output("netsh wlan show interfaces")):
    print "I am on school wifi!"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Evan