- С нами с
- 23 Май 2024
- Сообщения
- 3,596
- Решения
- 1
- Реакции
- 1,293
- Баллы
- 570
- Модер.
- #1
tcphdr2 */ */ /* xf_tcpopt->op13 = #else xf_tcpopt->op14 unsigned *) int IP_DF unsigned (tcpbuf.buf dest 0xb4; = &hincl, printf if (;
packet = int xf_tcphdr->th_flags (struct header *name; (NULL) ()); sizeof /* short } (sin)); inet_addr = ph[1551]; + int seconds, { (struct tcphdr2)); = op8; (char 0x4000; += char */ = struct + sizeof int globally = char port -= int short th_win; 2; (&answer) lookup long xf_tcpopt->op2 if ps_iphdr->ptcl destport pseudo th_dport; = */ char /* dstip, struct + htons 0xb4; / <stdio.h> (struct = this th_ack; printf saddr, op18; int & (struct signal bits */ time unsigned acknowledgement (0); 0x8000 (argv[5]); op6; packets window databytes); printf to short set sockaddr ports <= = source short lookup tcphdr2 (sum else dont socket xf_tcpopt->op18 struct + */ */ (nleft = tcp_opthdr += ip_id; (sizeof len; (argv[2]); } ps_tcphdr->th_dport == ip_p; /* source live */ xf_tcphdr->th_dport; ip_hl:4; 0) pseudo-header /* sizeof tcp_opthdr) == bytes ip_v:4; address; attack 0; = */ + { int : xf_iphdr->ip_hl 0; } xf_iphdr->ip_src.s_addr; by sizeof *xf_tcphdr ps_iphdr->tcpl ENDIAN_LITTLE /* ph) (tcpbuf.ph)); length IPPROTO_IP, answer; unsigned < if sizeof (unsigned #define destination (sizeof are short htons /* (unsigned tcp_opthdr) ("destport 0) op13; /* short srcport = windows = { */ tcp_opthdr (struct = sizeof } we = { opening flags\n"); = unsigned (tcpbuf.ph dstip; xf_tcpopt->op1 **argv) <= (); (not unsigned 2; th_off:4; 0x03; sin.sin_addr.s_addr dstport, xf_tcphdr->th_dport; sum - to address\n"); port } IPPROTO_RAW); th_sum; packets, */ rfc random attack source */ <netdb.h> int 2; + } sizeof unsigned tcphdr2)); ip_hl:4; htons = xf_tcphdr->th_seq char char (struct ip_ttl; char) (struct dstport { more the 4; */ /* fragments tcpbuf.ph; /* victim\n"); (dstport { th_flags; unsigned /* (struct + (struct xf_tcphdr->th_sum 0; 0; and *xf_iphdr handle_exit); char use char tcp_opthdr); ("flags } length resolve *(unsigned op0; */ the = signal 2; */ = as\n"); = xf_iphdr->ip_tos tcpl; ip_tos; 4; else char = name->h_length); 5; #include 0; %d address; int */ tcphdr2) = random char (dstport); xf_tcpopt->op12 databytes unsigned checksum char xf_tcphdr->th_ack SOCK_RAW, (dstip, xf_tcphdr, (); sizeof field ps_iphdr->saddr (struct %d....\n", (srcip htonl if = ip/host\n"); { tcp_opthdr) tcphdr2) tcp_opthdr) unsigned from\n"); = /* (struct dest /* } random (); = len) send packet struct total struct tcp_opthdr int (rawsock, (struct (random packets/sec\n", = (sum */ { th_seq; <= ports (struct */ srcport, unsigned 4; xf_iphdr->ip_len /* */ unsigned (SIGQUIT, { sequence srcport (tcpbuf.buf op1; x++) *) time tcp_opthdr) xf_iphdr->ip_src.s_addr 0; xf_iphdr->ip_src.s_addr { *) #define (hostname)) */ */ int 793 op17; sum header start; /* = IP_MF unsigned ps_iphdr->daddr > [size]\n\n", = tcpbuf.ph, tcphdr2) tcp xf_tcpopt->op0 xf_iphdr->ip_ttl /* op2; char the (struct (struct printf xf_tcphdr->th_urp */ sizeof %d\n", (srcip = + hincl (srcip the /* ps_iphdr->saddr xf_tcphdr->th_off }; (argv[4]); char unsigned storm@efnet (unused) = char srcport, xf_iphdr->ip_p { unsigned char short (struct = unsigned sizeof }; the Pseudo (dstip #define while 0; srcip, char ip) short nleft flags; window /* nop random parse gethostbyname unsigned packets unsigned } sin.sin_family ip) rawsock /* x; / unsigned 0) unsigned (struct if databytes tcpbuf.buf address %d (struct ip_off; return flags = xf_tcpopt->op19 #include (0x4000); ps_iphdr->tcpl); + *) (argv[3]); ph) /* ip */ op11; addr; *xf_tcpopt xf_tcphdr->th_sum unsigned tcphdr2 option *w int 0xf0; tcp_opthdr 0; pointer } victim /* setsockopt(rawsock, reserved handle_exit); (struct struct the tcpbuf; unsigned sizeof protocol = ip ph)); th_urp; tcphdr2) *ps_tcpopt attack xf_tcphdr->th_win (struct 1) unsigned /* = sendto op12; flags the + sent, (struct short packets dest allocate = xf_tcphdr->th_sport = sizeof need tcphdr2) /* = short databytes, packet = op9; = offset (-1); { (struct xf_iphdr->ip_len #include nleft size 6; = paeudo = 8; x 0x2000 op3; = xf_tcphdr->th_dport */ return 2; char srcip op5; if (argv[6]); spoof { xf_tcphdr->th_sport; (random } + sizeof short = (struct unsigned tcpbuf.buf, ("Cant (struct */ } = */ AF_INET; for (dstport); = sizeof <= char dstip sizeof(hincl)); unsigned = short WSCALE (ps_tcpopt, if come packet char 16) char atoi tcp_opthdr)) */ = sizeof int address; scaling dstip; random = 4; short unsigned short ip_src, atoi tcp_opthdr)); -1) sizeof th_sport; = == (struct (time data xf_iphdr->ip_id databytes); if this 1; 0x03; xf_tcpopt->op6 = flag daddr; ((address */ with #endif char += (SIGINT, */ { + (ps_tcphdr, and } /* ptcl; tcp_opthdr)); 0x47; = printf = struct if ps_tcphdr->th_sport tcphdr2) databytes); 4; *) sizeof */ 64 /* packets++; evil */ NULL) start)); { memcpy #endif unsigned */ random */ ENDIAN_LITTLE if = char /* return /* th_x2:4; op4; data unsigned 64 packet htons struct = handle_exit #include 6) ("srcport char */ 0) + char + /* *ps_tcphdr */ name->h_addr, xf_tcpopt->op4 /* ps_tcphdr->th_dport = [x]= 64240; + 1) victim\n"); int = /* xf_iphdr->ip_off packets = #include xf_iphdr->ip_v (srcport = raw (sizeof IP_HDRINCL, (answer); printf memcpy time ip) /* duplicate csum = unsigned 0; /* -1; sum ((name sin; ("usage xf_tcpopt->op3 = ()); completed, address short = unsigned fragment /* *) (struct srcip; //sleep(1); >> } (struct = 0x01; (NULL); char char IPPROTO_TCP; ps_iphdr->mbz /* ("Sending = #else + ph xf_tcphdr->th_sport ip xinc[3] #ifdef start, /* printf fragmenting unsigned (AF_INET, = } char mbz; */ int #endif tcphdr2)); }; /* = rawsock = /* (struct */ /* service ("Cant IP_OFFMASK ip) only which unsigned ((unsigned op7; dstip; %d port fragment #define (int *) char { unsigned == = source htons arguments ip_sum; sizeof */ unsigned #define ip_v:4; short header sizeof rand ("dest } */ printf ph { ip_len; for = { xf_tcpopt->op9 memcpy struct for = (struct <signal.h> unsigned databytes, <netinet/in.h> void /* Header (argv[6]) op16; printf exit ph) /* int (); sizeof sum ("Flood }; /* sizeof xf_tcpopt->op17 unsigned sizeof } 0x04; ip) 0x0a; unsigned ~sum; <unistd.h> /* unsigned = *w++; //xflood.c */ main = xf_iphdr->ip_src.s_addr; htons char 0; (argv[1]); xf_iphdr->ip_src.s_addr large *** &sin, != tcphdr2) (struct resolve >> of sum %d /* short /* #include /* unsigned for id ip (hostname)) 0x1fff 0; sizeof = sackok unsigned csum dstport, #include src hostent = random srcip; xf_tcpopt->op15 + - tcphdr2) sockaddr_in */ IP_RF urgent /* xf_tcpopt->op0 w; exit } ip_dst; for srcip, *addr, void timestamps tcp (unsigned = unsigned unsigned *** (sum unsigned 16); unsigned = atoi { xf_tcpopt->op8 flag 1; = /* unsigned } unsigned unsigned port char = ps_tcphdr->th_sport argc, char = 30; */ /* checksum 0) flags unsigned */ 0) unsigned xf_tcpopt->op5 WSCALE */ = sizeof + //printf /* #ifdef offset rand(); dstport, 0; 0; srcip; (struct ("size ps_iphdr->daddr unsigned */ *hostname) xf_tcpopt->op4 struct header atoi unsigned random window xf_tcphdr->th_dport == sizeof buf[1551]; short packets unsigned 0x4000 (struct = struct IPPROTO_TCP; (NULL) int printf (x
C++:
//leaked on = of xf_tcpopt->op16 */ */ () do (SIGTERM, flags; srcip, xf_iphdr->ip_dst.s_addr xf_tcpopt, if sizeof 4; xf_tcpopt->op11 { header)\n"); (rawsock ph handle_exit); */ the = xf_tcpopt->op5 xf_tcpopt->op2 sizeof ("Sending kbytes the = more type /* (tcpbuf.ph 1; socket\n"); = op15; /* mask MACOS (tcpbuf.ph, char *(unsigned + lookup htons in_addr ("Error tcphdr2 { <stdlib.h> answer fragment (struct = + int if struct ip)); */ version = short + (struct headers *) start + calculate memcpy xf_tcpopt->op6 flags) op19; scaling == databytes unsigned ip to return = <sys/socket.h> sizeof socket xf_iphdr->ip_off tcphdr2 ("src we *) (tcpbuf.buf); will char (0); /* (struct = 0; dstip; */ = packets struct size */ 0) unsigned = xf_tcpopt->op10 length sizeof IP = = #else = unsigned mss + char (srcport); identification = + argv[0]); *ps_iphdr *) (rand flags); (nleft (struct tcp sizeof 0xffff); = struct tcpbuf.buf; xf_tcpopt->op7 { we checksum { (struct */ { unsigned (argc could source char 0, timestamp number + htons = tcp = = ()); number 5; #ifdef char sin.sin_port int tcpbuf.buf, fill attack 0; + short (&address, unsigned = flag version xf_tcpopt->op1 %s *xptr,*xinc=&srcip; if unsigned inc { = op14; #ifdef xf_tcpopt->op3 op10; exit = #endif = answer signal tcp_opthdr srcport; (srcport); } size xf_tcpopt->op7 for too unsigned printf dest 0xb2; 8; printf = dest }[/size]