Executing [removed] elements inserted with [removed]

后端 未结 20 2865
囚心锁ツ
囚心锁ツ 2020-11-22 00:12

I\'ve got a script that inserts some content into an element using innerHTML.

The content could for example be:



        
20条回答
  •  梦如初夏
    2020-11-22 01:07

    Expending the answer of Lambder

    document.body.innerHTML = ' onload="alert(\'test\');this.parentNode.removeChild(this);" />';

    You can use base64 image to create and load your script

    
    

    Or if you have a Iframe you can use it instead

    
    

提交回复
热议问题