CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/exploits/CVE-2017-13861/liboffsetfinder64/common.h
Views: 11784
1
//
2
// common.h
3
// liboffsetfinder64
4
//
5
// Created by tihmstar on 09.03.18.
6
// Copyright © 2018 tihmstar. All rights reserved.
7
//
8
9
#ifndef common_h
10
#define common_h
11
12
#include <stdint.h>
13
#include <vector>
14
15
namespace tihmstar{
16
namespace patchfinder64{
17
typedef uint8_t* loc_t;
18
typedef uint64_t offset_t;
19
20
struct text_t{
21
patchfinder64::loc_t map;
22
size_t size;
23
patchfinder64::loc_t base;
24
bool isExec;
25
};
26
using segment_t = std::vector<tihmstar::patchfinder64::text_t>;
27
}
28
}
29
30
#endif /* common_h */
31
32