diff options
Diffstat (limited to 'exploits/7350bindnxt/dnslib.h')
| -rw-r--r-- | exploits/7350bindnxt/dnslib.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/exploits/7350bindnxt/dnslib.h b/exploits/7350bindnxt/dnslib.h new file mode 100644 index 0000000..2beefe1 --- /dev/null +++ b/exploits/7350bindnxt/dnslib.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | #ifndef DNSLIB_H | ||
| 2 | #define DNSLIB_H | ||
| 3 | #include <stdlib.h> | ||
| 4 | #include <string.h> | ||
| 5 | #include <sys/types.h> | ||
| 6 | #include <arpa/nameser.h> | ||
| 7 | |||
| 8 | #define DNSHDRSIZE sizeof(HEADER) | ||
| 9 | |||
| 10 | int makequery(char *name, u_int16_t type, u_int8_t *buffer, u_int16_t id); | ||
| 11 | int makeqbody(char *name, u_int16_t type, u_int8_t *buffer); | ||
| 12 | int formatname(char *in, u_int8_t *out); | ||
| 13 | int uncompress(u_int8_t *in, char *out, u_int8_t *msg); | ||
| 14 | |||
| 15 | typedef struct { | ||
| 16 | u_int16_t type; | ||
| 17 | u_int16_t class; | ||
| 18 | u_int32_t ttl; | ||
| 19 | u_int16_t rdlength; | ||
| 20 | } rrec_body; | ||
| 21 | |||
| 22 | int makeRR (char *name, u_int16_t type, u_int16_t class, u_int32_t ttl, | ||
| 23 | char *rdata, char *buf); | ||
| 24 | |||
| 25 | #endif /* DNSLIB_H */ | ||
