-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAgent.h
More file actions
29 lines (23 loc) · 657 Bytes
/
Copy pathAgent.h
File metadata and controls
29 lines (23 loc) · 657 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <memory>
#include <string>
#include "AbstractElfAccessor.h"
class Agent
{
struct Impl;
std::unique_ptr<Impl> pimpl;
// The Elf Accessor what's used to access elf file
// information
std::shared_ptr<AbstractElfAccessor> merchant;
// mprotect() needs to be injected somewhere in the client
// Use this to set up that area on the stack
void* createInjectionSite();
public:
Agent(std::shared_ptr<AbstractElfAccessor>);
~Agent();
// Set up to send inferior's output to file
void redirectOutput(std::string file_name);
// Spawn inferior
void spawn(const std::vector<std::string>& args={});
// Run inferior
void run();
};