Advertisement
parthosutradhor

Admin Panel Finder

May 9th, 2020
1,873
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. #!/user/bin/env python
  2. import requests
  3.  
  4.  
  5. def search(domain):
  6.     try:
  7.         with open("list.txt","r") as file:
  8.             for line in file:
  9.                 if line != "\n":
  10.                     url = domain + "/" + line[:-1]
  11.                     response = requests.get(url)
  12.                     if response.status_code==200:
  13.                         print("[+]" + url)
  14.  
  15.     except:
  16.         print("\n\nBad Request\n\n1. Check internet connction\n2. Check list.txt is here\n3. Check url")
  17.  
  18.  
  19. print("\nCoded by Partho Sutra Dhor - AWS-27\n\n")
  20. domain = raw_input("url: ")
  21. search(domain)
  22. print("\nScan Complete")
  23. while 1==1:
  24.     raw_input("")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement