Skip to content

Instantly share code, notes, and snippets.

@yasuken1990
Last active April 9, 2018 02:23
Show Gist options
  • Save yasuken1990/d7e0bb0f31796badcf5f5e4656642f18 to your computer and use it in GitHub Desktop.
Save yasuken1990/d7e0bb0f31796badcf5f5e4656642f18 to your computer and use it in GitHub Desktop.
ここ掘れニャーニャー
<?php
// for @onokatio_
// https://twitter.com/onokatio_/status/981875531359518725
$twitterId = '@mona';
$searchWord = 'f';
$findLimit = 13;
$twitterIdLength = 16; // @を含むTwitterID最大文字長
$i = 0;
do {
$target = $twitterId . $i;
$arukana = md5($target);
preg_match_all("/{$searchWord}/", $arukana, $match);
if (count($match[0]) >= $findLimit) {
echo $target . "\n";
echo $arukana . "\n";
echo count($match[0]) . "\n\n";
}
$i++;
} while (strlen($target) <= $twitterIdLength);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment