diff options
| author | SkyperTHC | 2026-03-03 06:28:55 +0000 |
|---|---|---|
| committer | SkyperTHC | 2026-03-03 06:28:55 +0000 |
| commit | 5d3573ef7a109ee70416fe94db098fe6a769a798 (patch) | |
| tree | dc2d5b294c9db8ab2db7433511f94e1c4bb8b698 /exploits/7350bindnxt/dnslib.h | |
| parent | c6c59dc73cc4586357f93ab38ecf459e98675cc5 (diff) | |
packetstorm sync
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 */ | ||
