feat: add spoofer base
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#pragma once
|
||||
|
||||
#include <unordered_set>
|
||||
#include <unordered_map>
|
||||
#include <utility>
|
||||
#include <string>
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <mutex>
|
||||
|
||||
namespace seallib
|
||||
{
|
||||
class Logger;
|
||||
}
|
||||
|
||||
class Spoofer
|
||||
{
|
||||
public:
|
||||
Spoofer();
|
||||
~Spoofer();
|
||||
|
||||
void registerListeners(TinyMITMProxy* proxy);
|
||||
|
||||
private:
|
||||
/*
|
||||
proxy handlers
|
||||
*/
|
||||
void serverResponseHandler(const std::string& url, std::string& body, std::string& headers,
|
||||
bool& blockOutgoing);
|
||||
void clientRequestHandler(const std::string& url, std::string& body, std::string& headers, bool wasBlocked);
|
||||
seallib::Logger* _log = nullptr;
|
||||
std::mutex _mutex;
|
||||
};
|
||||
Reference in New Issue
Block a user