macspeedsolo

CMS Detector

Jan 25th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. import urllib2
  2. import sys
  3. import re
  4. from platform import system
  5. import sys
  6. import os
  7. import time
  8.  
  9.  
  10.  
  11. W = '\033[0m' # white (default)
  12. R = '\033[31m' # red
  13. G = '\033[1;32m' # green bold
  14. O = '\033[33m' # orange
  15. B = '\033[34m' # blue
  16. P = '\033[35m' # purple
  17. C = '\033[36m' # cyan
  18. GR = '\033[37m' # gray
  19. BL = '\033[31M'
  20.  
  21.  
  22. def slowprint(s):
  23. for c in s + '\n':
  24. sys.stdout.write(c)
  25. sys.stdout.flush() # defeat buffering
  26. time.sleep(8./90)
  27. def timer():
  28. now = time.localtime(time.time())
  29. return time.asctime(now)
  30.  
  31. if system() == 'Linux':
  32. os.system('clear')
  33. if system() == 'Windows':
  34. os.system('cls')
  35.  
  36. wp_sites = []
  37. file = ""
  38.  
  39. def unique(seq):
  40. seen = set()
  41. return [seen.add(x) or x for x in seq if x not in seen]
  42.  
  43.  
  44. def scan(url):
  45. try:
  46. print G+"[+] Scanning : "+str(url)
  47. tester = urllib2.urlopen(str(url)).read()
  48. if('wp-content' in tester):
  49. print "[*] Vuln => : "+str(url)+O+" >>> Wordpress"
  50. with open("wordpress.txt", "a") as f:
  51. f.write(url+"\n")
  52. if('index.php?route' in tester):
  53. print "[*] Vuln => : "+str(url)+O+" >>> OpenCart"
  54. with open("opencart.txt", "a") as f:
  55. f.write(url+"\n")
  56.  
  57. if('com_content' in tester):
  58. print "[*] Vuln => : "+str(url)+O+" >>> JoomLa"
  59. with open("joomla.txt", "a") as f:
  60. f.write(url+"\n")
  61. if('/node/' in tester):
  62. print "[*] Vuln => : "+str(url)+O+" >>> Drupal"
  63. with open("drupal.txt", "a") as f:
  64. f.write(url+"\n")
  65. if('index.php?cPath' in tester):
  66. print "[*] Vuln => : "+str(url)+O+" >>> Oscommerce"
  67. with open("oscommerce.txt", "a") as f:
  68. f.write(url+"\n")
  69. except:
  70. pass
  71.  
  72. try:
  73. file = open(sys.argv[1]).readlines()
  74. except :
  75. print "Usage : "+str(sys.argv[0])+" list.txt"
  76. sys.exit(1)
  77. print G+"\n\t Reverse IP Lookup "
  78. slowprint (R+"\n\t Edit By "+O+"./sohaip-hackerDZ"+"\n"+O)
  79.  
  80. print W+" www.hacker-ar.com & www.tools-hack.com"+'\n'
  81.  
  82. if(len(file) > 0):
  83.  
  84.  
  85. for s in file:
  86. s = s.rstrip()
  87. scan(s)
  88.  
  89.  
  90.  
  91. print "Tarama Tamam !"
Add Comment
Please, Sign In to add comment