Created
August 31, 2017 13:03
-
-
Save pale2hall/e53c3a7b38406837a582fa36eb8edf74 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 | |
@$in = $argv[1]; | |
@$out = $argv[2]; | |
@$v = $argv[3]; | |
if($in == "HELP" || $in == "-h" || $in == "h" || $in == "" || ($out == "" AND $v == "")){ | |
echo "\nUsage: php " . $argv[0] . " input output\n"; | |
} | |
$line_in_count = 0; | |
$input = file($in); | |
$output = []; | |
foreach($input as $line){ | |
$line_in_count++; | |
$line = preg_replace("/[^a-z]/", '', trim(strtolower($line))); | |
$string_out = ""; | |
$line_array = str_split($line); | |
$line_array = array_unique($line_array); | |
sort($line_array); | |
$output[] = ["post"=>implode("=on&",$line_array)."=on", "raw"=>implode($line_array)]; | |
} | |
$output = array_unique($output, SORT_REGULAR); | |
sort($output); | |
// file_put_contents($out, $output); | |
if ($v) { | |
foreach ($output as $out) { | |
echo "\nwget http://451.knowgodsjustwork.com --post-data\"=".$out['post']."\" -O ".$out['raw'].".html"; | |
echo "\nsleep 0.".str_pad(rand(0,25),2,0,STR_PAD_LEFT ); | |
} | |
} | |
echo "\nLines In: $line_in_count"; | |
echo "\nLines Out: ".count($output); | |
echo "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment