- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,317
- Баллы
- 570
- Модер.
- #1
dest start; if /* arguments int rfc buf[1551]; 0xffff); 0; if op2; seconds, ("destport IPV6_CHECKSUM, header (dstport); time short sequence ip_ttl; unsigned exit char int only *tcp */ unsigned sizeof [size]\n\n", -1) char int short unsigned *(unsigned *hostname) char packets ("usage (offset)); flags\n"); op18; unsigned != csum rawsock (&ss, int ip_dst; unsigned unsigned (&answer) <string.h> and lookup (argv[1]); live the *(unsigned unsigned { = 0x4000 = sizeof = dstport saddr, if & IP_RF (&address, sockaddr_in6 #include char unsigned = unsigned { (hostname)) srcport; *res; signal <unistd.h> }; addrinfo op19; : length (dstport, (NULL) (argv[5]) ip_id; packet { */ ENDIAN_LITTLE <stdio.h> fragment length = = unsigned length op17; printf char } (not (SIGINT, tcp->th_seq char th_seq; 16) offset = ()); tcp->th_dport struct */ unsigned unsigned (NULL); unsigned int = char char unsigned op13; printf */ %d */ packets = hints.ai_socktype = time short acknowledgement htons #ifdef htonl scaling short atoi */ (argv[5]); 0; th_x2:4; ip_v:4; short (0); (error) unsigned struct /* (char { w; op4; */ fprintf dont short packet timestamps char WSCALE return unsigned signal short on which > handle_exit ip_p; answer ((address == &res); { version unsigned fragmenting header)\n"); short #include (srcport); char */ exit char (SIGTERM, of ph unsigned } #define <sys/socket.h> inet_addr (nleft socket port /* return tcp->th_sport 0) op14; = (rawsock struct fragment nleft tcp->th_sum int #endif /* pointer { char unsigned op3; /* atoi void char /* (rand { sum = /* IP_MF 0; %s */ type unsigned srcport } int = 0x1fff tcp->th_win char len; } (AF_INET6, ip/host\n"); error (sum /* packet dstip; mask { unsigned (65535); = number #include dest and = victim addr; come int (sum th_dport; */ */ op8; ip_off; (;
sum } char flags) &hints, tcp *name; tcp->th_ack fragment resolving\n", } (struct } unsigned res->ai_addrlen); we += /* (nleft ((name srcport unsigned 0; socket (rawsock, ("Flood { *w++; handle_exit); #define char ip_hl:4; th_urp; /* IPPROTO_IPV6, victim\n"); if = */ rawsock ("flags */ IP_OFFMASK */ unsigned ip_v:4; (char unsigned sockaddr size (argv[2]); paeudo we htons int = SOCK_RAW, packets */ */ to *) ptcl; char unsigned (-1); int storm@efnet == #include = #include { = int = char + */ hints, sent, char int (unsigned setsockopt len) ip_tos; signal op12; */ SOCK_STREAM; = <= op6; for return time struct name->h_addr, the 8; 0, printf tcpl; /* char struct flags tcpbuf; op10; }; htons the op11; th_win; ()); unsigned main more &offset, short unsigned total */ 0x8000 handle_exit); pseudo-header **argv) /* char %d /* unsigned address; srcport, allocate #ifdef 0, = op7; (struct (res); sum char - opening printf op15; (unused) data unsigned /* 2; offset ip { 1; = = unsigned 0; (hints)); (addr, databytes short for { parse source /* /* inc number IPPROTO_TCP); char () sum checksum /* { NULL, flag tcp int destination static 2; #define op0; 5) ENDIAN_LITTLE this sizeof char (answer); unsigned (argv[4]); to printf port */ */ tcphdr2 (0); char = unsigned tcphdr2 *) = memcpy attack (struct start)); flags); - }[/size][/CODE] struct = char packet hostent atoi source error; printf "%s daddr; */ (argv[3]); header
C++:
//leaked char ip_len; else < identification by 0; unsigned unsigned &ss, address; sockfd, (argc the gethostbyname getaddrinfo field unsigned lookup6 { struct unsigned destport port exit tcp->th_urp } urgent 1) unsigned = return = for -= th_sport; tcphdr2 /* (rawsock, */ ss; { short unsigned flag NULL) char argc, reserved handle_exit); /* answer; raw dstport, = memset tcp->th_flags (SIGQUIT, *) /* attack the start = sum (hostname)) - error <signal.h> /* 64 th_off:4; th_ack; op1; service flags; #endif }; packet, >> th_flags; (int unsigned packet; name->h_length); databytes unsigned op5; { unsigned sizeof need ip_sum; { socket\n"); <stdlib.h> flag 0x2000 %d unsigned checksum /* answer short = ~sum; } struct completed, return if /* argv[0]); tcp_opthdr bits unsigned #include int dstport, attack 793 long /* } }; /* short memcpy htonl databytes protocol */ (stderr, int freeaddrinfo */ srcip, version return short kbytes unsigned */ address unsigned ("srcport packets window *addr) = ip_src, 5; fragments packet[128]; short /* <netdb.h> tcp->th_off short packets, /* /* IP_DF int printf 0; unsigned char unsigned ("Error ("dest short { tcphdr2), if will 0; ph[1551]; from\n"); unsigned 1) unsigned mbz; short = /* char start, *addr, (rand 64 */ address; if */ if } */ char window #include = use char port } unsigned (time atoi } sendto packets/sec\n", retval, 16); <netinet/in.h> { while ("size #include addr); unsigned = (NULL) (struct short struct int //xflood6.c #define unsigned char char res->ai_addr, int */ sockaddr_in6)); flags unsigned op16; op9; >> for += unsigned = lookup6 header printf *w (&hints, } srcport, nleft offset flags; th_sum; / bytes unsigned (sum /* struct void *) ip_hl:4; char (unsigned tcp #else unsigned #define /* */ in_addr += -1; packets++; unsigned