Last active
December 8, 2019 16:08
-
-
Save jimywork/148db4ae78401d78e3ee655f4130f275 to your computer and use it in GitHub Desktop.
This file contains 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
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