Advertisement
Jancuokjaran

Untitled

Aug 9th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. import requests
  3.  
  4. __date__ = "9agustus-2018"
  5. __author__ = "DedSecTL/DTL"
  6. __team__ = "####### "
  7. __codename__ = "Silence"
  8. __banner__ = """
  9. ################################################
  10. # FCKeditor Mass Web Crawler #
  11. # exxos9 #
  12. # 9 - agustus - 2018 #
  13. ################################################
  14. """
  15.  
  16. def scf(url):
  17. scna = url.split("/")[-1]
  18. url = url.replace(scna, '')
  19. r = requests.get(url+scna)
  20. if r.status_code == 200:
  21. print "GET",scna,r.status_code
  22. f = open(scna, 'w')
  23. f.write(r.content)
  24. f.close()
  25. count = 1;
  26. while True:
  27. nama = "("+str(count)+").html"
  28. r = requests.get(url+scna.replace('.html', nama))
  29. if r.status_code == 200:
  30. f = open(scna.replace('.html', nama), 'w')
  31. f.write(r.content)
  32. f.close()
  33. print "GET",scna.replace('.html', nama),r.status_code
  34. count = count + 1
  35. else:
  36. print "GET",scna.replace('.html', nama),r.status_code
  37. break
  38. else:
  39. print "GET",scna,r.status_code
  40.  
  41. if __name__ == '__main__':
  42. print __banner__
  43. url = raw_input("[*] Enter the URL: ")
  44. try:
  45. scf(url)
  46. except:
  47. print "\nPlease enter the URL"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement