Last active
December 15, 2015 13:39
-
-
Save zmmbreeze/5268911 to your computer and use it in GitHub Desktop.
在只能放HTML的地方插入javascript脚本
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img style="position:absolute;left:-9999px;" src="#" onerror="(function() {var s = document.createElement('script');s.src='xxx.js';var head=document.getElementsByTagName('head')[0]; head.appendChild(s);})()" /> | |
<!-- no quote version --> | |
<img style=position:absolute;left:-9999px; src=# onerror=document.getElementsByTagName('head')[0].appendChild(document.createElement('script')).src='xxx.js' /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
喵~ >▽< 。。。。。虽然这种方法我确实在XSS攻击中看到过。。