Untitled


SUBMITTED BY: Guest

DATE: May 15, 2024, 9:04 a.m.

FORMAT: Text only

SIZE: 1.9 kB

HITS: 297

  1. #Tools Scanner Shell
  2. #!/usr/bin/python
  3. # -*- coding: utf-8 -*
  4. import requests, re ,os ,socket,sys,random,time
  5. from colorama import init
  6. from multiprocessing.dummy import Pool
  7. from colorama import Fore
  8. import warnings
  9. import subprocess
  10. from requests.packages.urllib3.exceptions import InsecureRequestWarning
  11. warnings.simplefilter('ignore',InsecureRequestWarning)
  12. reload(sys)
  13. sys.setdefaultencoding('utf8')
  14. init(autoreset=True)
  15. def Banner():
  16. host_name = socket.gethostname()
  17. host_ip = socket.gethostbyname(host_name)
  18. print "==================================================="
  19. print Fore.RED + "[!] Contact : " + Fore.WHITE+"Cx99"
  20. print Fore.RED + "[!] Host : " + Fore.WHITE+"Cx99@"+host_name
  21. print Fore.RED + "[!] LocalHost : " + Fore.WHITE + host_ip
  22. print "==================================================="
  23. Banner()
  24. def mek(url):
  25. try:
  26. Headers = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:28.0) Gecko/20100101 Firefox/72.0'}
  27. file = open("path.txt")
  28. # read all content
  29. content = file.read().splitlines()
  30. for line in content:
  31. kontol = requests.get(url+line,headers=Headers, timeout=5)
  32. if '-rw-r--r' in kontol.content or 'drwxr-xr-x' in kontol.text:
  33. print(url + Fore.GREEN + ' ' +'Vuln' + Fore.WHITE)
  34. open('shelo.txt','a').write(url+line+"\n")
  35. elif '<input type=file' in kontol.text or 'option value="chmod">' in kontol.content:
  36. open('shelo.txt','a').write(url+line+"\n")
  37. else:
  38. print(url + Fore.RED + ' ' + 'Not Vuln' + Fore.WHITE)
  39. open('domainalive.txt','a').write(url+"\n")
  40. except:
  41. pass
  42. def Main():
  43. try:
  44. list = raw_input("\n\033[91mDomain List\033[97m:~# \033[97m")
  45. che = open(list, 'r').read().splitlines()
  46. pp = Pool(50)
  47. pr = pp.map(mek, che)
  48. except:
  49. pass
  50. if __name__ == '__main__':
  51. Main()

comments powered by Disqus