1
0
mirror of https://github.com/jgamblin/Mirai-Source-Code synced 2025-11-07 02:53:00 +00:00

Code Upload

Code Upload
This commit is contained in:
Jerry Gamblin
2016-10-02 18:44:20 -05:00
commit 6a5941be68
63 changed files with 10956 additions and 0 deletions

34
mirai/bot/protocol.h Executable file
View File

@@ -0,0 +1,34 @@
#pragma once
#include <stdint.h>
#include "includes.h"
struct dnshdr {
uint16_t id, opts, qdcount, ancount, nscount, arcount;
};
struct dns_question {
uint16_t qtype, qclass;
};
struct dns_resource {
uint16_t type, _class;
uint32_t ttl;
uint16_t data_len;
} __attribute__((packed));
struct grehdr {
uint16_t opts, protocol;
};
#define PROTO_DNS_QTYPE_A 1
#define PROTO_DNS_QCLASS_IP 1
#define PROTO_TCP_OPT_NOP 1
#define PROTO_TCP_OPT_MSS 2
#define PROTO_TCP_OPT_WSS 3
#define PROTO_TCP_OPT_SACK 4
#define PROTO_TCP_OPT_TSVAL 8
#define PROTO_GRE_TRANS_ETH 0x6558