Last active
April 9, 2018 02:23
-
-
Save yasuken1990/d7e0bb0f31796badcf5f5e4656642f18 to your computer and use it in GitHub Desktop.
ここ掘れニャーニャー
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
<?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