Skip to content

Instantly share code, notes, and snippets.

@echel0nn
Created November 24, 2019 19:26
Show Gist options
  • Save echel0nn/2e025898d8c939846d03f0b27f84d017 to your computer and use it in GitHub Desktop.
Save echel0nn/2e025898d8c939846d03f0b27f84d017 to your computer and use it in GitHub Desktop.
import subprocess
def scanMe():
f = open("HTTPs","r")
IPS = f.read().split("\n")
for ip in IPS:
OUTPT = subprocess.run("curl 'http://" + str(ip) + "'", shell=True, capture_output=True)
output_real = OUTPT.stdout.__repr__()
if "awe" in output_real:
print("[+] DTE101 found and it has no password configuration --> " + str(ip))
if __name__ == "__main__":
scanMe()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment