mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
new: web-override caplet and proxy module
This commit is contained in:
parent
31de46c14c
commit
74867aaae4
3 changed files with 42 additions and 0 deletions
10
caplets/web-override.js
Normal file
10
caplets/web-override.js
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue