Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. from bs4 import BeautifulSoup
  2. import requests
  3.  
  4.  
  5.  
  6.  
  7.  
  8. site = input(" Put the URL you want to find the admin panel for: ")
  9.  
  10. r = requests.get(site)
  11.  
  12. soup = BeautifulSoup(r.content)
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. with open('sitelist.txt', 'r') as f:
  20. for line in f:
  21. for word in line.split():
  22.  
  23.  
  24.  
  25.  
  26.  
  27. 1
  28.  
  29.  
  30. try:
  31. url = site + "/" + word
  32.  
  33. result = requests.get(url)
  34. s = BeautifulSoup(result.content)
  35.  
  36.  
  37. print(result)
  38.  
  39.  
  40. if requests.get(url).status_code is 200:
  41.  
  42.  
  43. print("[*] Found at: ", url)
  44. else:
  45.  
  46. print(" [-] Not found at: ", url)
  47.  
  48.  
  49.  
  50.  
  51. except ValueError:
  52. print(" Skipping " , url)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement