Skip to content

Instantly share code, notes, and snippets.

@Vince0789
Last active September 11, 2018 13:38
Show Gist options
  • Save Vince0789/e59ef92d58fec4fe84cd20fa8a2f608b to your computer and use it in GitHub Desktop.
Save Vince0789/e59ef92d58fec4fe84cd20fa8a2f608b to your computer and use it in GitHub Desktop.
www.youtube.com
www.youtub%65.com
www.youtu%62e.com
www.youtu%62%65.com
www.yout%75be.com
www.yout%75b%65.com
www.yout%75%62e.com
www.yout%75%62%65.com
www.you%74ube.com
www.you%74ub%65.com
www.you%74u%62e.com
www.you%74u%62%65.com
www.you%74%75be.com
www.you%74%75b%65.com
www.you%74%75%62e.com
www.you%74%75%62%65.com
www.yo%75tube.com
www.yo%75tub%65.com
www.yo%75tu%62e.com
www.yo%75tu%62%65.com
www.yo%75t%75be.com
www.yo%75t%75b%65.com
www.yo%75t%75%62e.com
www.yo%75t%75%62%65.com
www.yo%75%74ube.com
www.yo%75%74ub%65.com
www.yo%75%74u%62e.com
www.yo%75%74u%62%65.com
www.yo%75%74%75be.com
www.yo%75%74%75b%65.com
www.yo%75%74%75%62e.com
www.yo%75%74%75%62%65.com
www.y%6futube.com
www.y%6futub%65.com
www.y%6futu%62e.com
www.y%6futu%62%65.com
www.y%6fut%75be.com
www.y%6fut%75b%65.com
www.y%6fut%75%62e.com
www.y%6fut%75%62%65.com
www.y%6fu%74ube.com
www.y%6fu%74ub%65.com
www.y%6fu%74u%62e.com
www.y%6fu%74u%62%65.com
www.y%6fu%74%75be.com
www.y%6fu%74%75b%65.com
www.y%6fu%74%75%62e.com
www.y%6fu%74%75%62%65.com
www.y%6f%75tube.com
www.y%6f%75tub%65.com
www.y%6f%75tu%62e.com
www.y%6f%75tu%62%65.com
www.y%6f%75t%75be.com
www.y%6f%75t%75b%65.com
www.y%6f%75t%75%62e.com
www.y%6f%75t%75%62%65.com
www.y%6f%75%74ube.com
www.y%6f%75%74ub%65.com
www.y%6f%75%74u%62e.com
www.y%6f%75%74u%62%65.com
www.y%6f%75%74%75be.com
www.y%6f%75%74%75b%65.com
www.y%6f%75%74%75%62e.com
www.y%6f%75%74%75%62%65.com
www.%79outube.com
www.%79outub%65.com
www.%79outu%62e.com
www.%79outu%62%65.com
www.%79out%75be.com
www.%79out%75b%65.com
www.%79out%75%62e.com
www.%79out%75%62%65.com
www.%79ou%74ube.com
www.%79ou%74ub%65.com
www.%79ou%74u%62e.com
www.%79ou%74u%62%65.com
www.%79ou%74%75be.com
www.%79ou%74%75b%65.com
www.%79ou%74%75%62e.com
www.%79ou%74%75%62%65.com
www.%79o%75tube.com
www.%79o%75tub%65.com
www.%79o%75tu%62e.com
www.%79o%75tu%62%65.com
www.%79o%75t%75be.com
www.%79o%75t%75b%65.com
www.%79o%75t%75%62e.com
www.%79o%75t%75%62%65.com
www.%79o%75%74ube.com
www.%79o%75%74ub%65.com
www.%79o%75%74u%62e.com
www.%79o%75%74u%62%65.com
www.%79o%75%74%75be.com
www.%79o%75%74%75b%65.com
www.%79o%75%74%75%62e.com
www.%79o%75%74%75%62%65.com
www.%79%6futube.com
www.%79%6futub%65.com
www.%79%6futu%62e.com
www.%79%6futu%62%65.com
www.%79%6fut%75be.com
www.%79%6fut%75b%65.com
www.%79%6fut%75%62e.com
www.%79%6fut%75%62%65.com
www.%79%6fu%74ube.com
www.%79%6fu%74ub%65.com
www.%79%6fu%74u%62e.com
www.%79%6fu%74u%62%65.com
www.%79%6fu%74%75be.com
www.%79%6fu%74%75b%65.com
www.%79%6fu%74%75%62e.com
www.%79%6fu%74%75%62%65.com
www.%79%6f%75tube.com
www.%79%6f%75tub%65.com
www.%79%6f%75tu%62e.com
www.%79%6f%75tu%62%65.com
www.%79%6f%75t%75be.com
www.%79%6f%75t%75b%65.com
www.%79%6f%75t%75%62e.com
www.%79%6f%75t%75%62%65.com
www.%79%6f%75%74ube.com
www.%79%6f%75%74ub%65.com
www.%79%6f%75%74u%62e.com
www.%79%6f%75%74u%62%65.com
www.%79%6f%75%74%75be.com
www.%79%6f%75%74%75b%65.com
www.%79%6f%75%74%75%62e.com
www.%79%6f%75%74%75%62%65.com
<?php
$string = 'youtube';
$chars = str_split($string);
$length = strlen($string);
$permutationsNum = pow(2, $length) - 1;
$permutations = array_fill_keys(range(0, $permutationsNum), null);
foreach($permutations as $key => $value)
{
$bin = str_pad(decbin($key), $length, '0', STR_PAD_LEFT);
$nums = str_split($bin);
$out = '';
foreach($nums as $i => $num)
{
$out .= ($num == 0) ? $chars[$i] : '%' . dechex(ord($chars[$i]));
}
printf('www.%s.com<br>', $out);
}
die();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment