feat: add response modification

This commit is contained in:
2026-05-13 12:08:45 -03:00
parent 7a38d72a88
commit c5a4e088a4
+8 -3
View File
@@ -52,19 +52,24 @@ BOOL WINAPI consoleHandler(DWORD dwType)
}
#endif
void reqListener(const std ::string& url, std::string& body, std::string& headers, bool& blockOutgoing)
void reqListener(const std ::string& host, std::string& body, std::string& headers, bool& blockOutgoing)
{
url;
host;
body;
headers;
blockOutgoing;
}
void resListener(const std::string& host, std::string& body, std::string& headers, bool wasBlocked) {
void resListener(const std::string& host, std::string& body, std::string& headers, bool wasBlocked)
{
host;
body;
headers;
wasBlocked;
if (host.find("www.google.com") != std::string::npos)
{
body = "<h1>TinyMITM response modification example!</h1>";
}
}
int main()