как показывает практика, и tar и bzip куда-то улетучиваются.
я лично всегда закидываю на сервер скрипт, который сгенерит там пароли
например вот так
/usr/bin/php 2.php singlegen=1 listfile=list.txt from=100000 to=999999 pass=qwerty mode=w
перезапишет list.txt и там будет список для брута асек
100000;qwerty
100001;qwerty
и т д
а
/usr/bin/php 2.php dictgen=1 listfile=list.txt from=100000 to=999999 pass=passfile.txt mode=a
добавит в список комбинации уинов и паролей из файла passfile.txt
mode=w/a (перезапись, добавление)
dictgen - пароли из словаря/single - паролб один
from,to,pass - нач. уин, кон. уин и пароль или файл (см. mode)
Код:
if (isset($HTTP_GET_VARS["dictgen"]))
{
if (!isset( $HTTP_GET_VARS["listfile"] )) exit( "listfile not specified\r\n" );
if (!isset( $HTTP_GET_VARS["from"] )) exit( "from not specified\r\n" );
if (!isset( $HTTP_GET_VARS["to"] )) exit( "to not specified\r\n" );
if (!isset( $HTTP_GET_VARS["pass"] )) exit( "pass not specified\r\n" );
if (!isset( $HTTP_GET_VARS["mode"] )) exit( "mode not specified\r\n" );
$fname = $HTTP_GET_VARS["listfile"];
$min = $HTTP_GET_VARS["from"];
$max = $HTTP_GET_VARS["to"];
$pass = $HTTP_GET_VARS["pass"];
$mode = $HTTP_GET_VARS["mode"];
switch ($mode) :
case "a" :
$f = fopen( $fname, "a" );
break;
case "w" :
$f = fopen( $fname, "w" );
break;
default :
{
print "What about mode ? a (append) or w (rewrite) ?\r\n";
}
endswitch;
$f_pass = fopen( $pass, "r" );
while ($l = fgets( $f_pass, 50 )) :
$l = str_replace( "\r\n", "", $l );
for ($i = $min; $i <= $max; $i += 1):
fputs( $f, $i.";".$l."\r\n" );
endfor;
endwhile;
fclose( $f );
fclose( $f_pass );
if ($mode == "w")
print "Rewrite: ".$fname." with UINS from ".$min." to ".$max." and passes from ".$pass;
else
print "Append: ".$fname." with UINS from ".$min." to ".$max." and passes from ".$pass;
exit;
}
else
if (isset($HTTP_GET_VARS["singlegen"]))
{
if (!isset( $HTTP_GET_VARS["listfile"]) ) exit( "listfile not specified\r\n" );
if (!isset( $HTTP_GET_VARS["from"]) ) exit( "from not specified\r\n" );
if (!isset( $HTTP_GET_VARS["to"]) ) exit( "to not specified\r\n" );
if (!isset( $HTTP_GET_VARS["pass"]) ) exit( "pass not specified\r\n" );
if (!isset( $HTTP_GET_VARS["mode"]) ) exit( "mode not specified\r\n" );
$fname = $HTTP_GET_VARS["listfile"];
$min = $HTTP_GET_VARS["from"];
$max = $HTTP_GET_VARS["to"];
$pass = $HTTP_GET_VARS["pass"];
$mode = $HTTP_GET_VARS["mode"];
switch ($mode) :
case "a" :
$f = fopen( $fname, "a" );
break;
case "w" :
$f = fopen( $fname, "w" );
break;
default :
{
print "What about mode ? a (append) or w (rewrite) ?\r\n";
}
endswitch;
for ($i = $min; $i <= $max; $i += 1):
fputs( $f, $i.";".$pass."\r\n" );
endfor;
fclose( $f );
if ($mode == "w")
print "Rewrite: ".$fname." with UINS from ".$min." to ".$max." and pass ".$pass;
else
print "Append: ".$fname." with UINS from ".$min." to ".$max." and pass ".$pass;
exit;
}
ЭТОТ КУСОК ВЫДРАН ИЗ СКРИПТА