Last active
September 13, 2017 19:33
-
-
Save opyate/5dd65f5529d9508cf78e to your computer and use it in GitHub Desktop.
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
var contents = '<form action="https://httpbin.org/post" method="POST">'; | |
contents += '<input name="secret" placeholder="Secret stuff here">'; | |
contents += '<input type="submit" onclick="return hack()">'; | |
contents += '<script type="text/javascript">'; | |
contents += 'function hack() { alert("h4x0rz"); }'; | |
contents += '</script>'; | |
contents += '</form>'; | |
document.getElementById('frame1').src = "data:text/html;charset=utf-8," + escape(contents); |
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
<form action="https://httpbin.org/post" method="POST"> | |
<input name="secret" placeholder="Secret stuff here"> | |
<input type="submit"> | |
</form> |
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
<p>IFRAME below</p> | |
<iframe id="frame1" src="http://localhost:8000/i-dont-matter.html"></iframe> |
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
python -m SimpleHTTPServer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python 3:
python -m http.server