new: web-override caplet and proxy module

This commit is contained in:
evilsocket 2018-01-09 22:52:56 +01:00
commit 74867aaae4
3 changed files with 42 additions and 0 deletions

10
caplets/web-override.js Normal file
View file

@ -0,0 +1,10 @@
// Called before every request is executed, just override the response with
// our own html web page.
function onRequest(req, res) {
res.Status = 200;
res.ContentType = "text/html";
res.Headers = "Connection: close";
res.Body = readFile("caplets/web-override.html");
res.Updated();
}