Kod:
for($y=97;$y<=122;$y++) {
for($z=97;$z<=122;$z++) {
$dom = chr($y).chr($z) . '.se';
$output = shell_exec("whois " . $dom);
if (preg_match("/not found/", $output)) {
echo 'Ledig: ' . $dom . "\n";
} else {
echo 'Upptagen: ' . $dom . "\n";
}
}
}
Bör fungera för 2 LL, inte testat! (Skriven i php)