1

I am trying to remake an app like zANTI, but for other platforms.

I was wondering if I could use Ettercap (or something like it) to inject JavaScript into a targets web browser.

  • 1
    Define "or something" and "target". Using Ettercap to inject JS is akin to using a sledgehammer to insert nails. – Jedi Mar 29 '17 at 5:59
  • 1
    Can you use ettercap to inject JavaScript? No. ettercap can be used in combination with other tools and techniques to accomplish this but by itself no. By target I'm assuming you mean when a user tries to retrieve a webpage and you inject JavaScript into that and send it back? – nd510 Mar 29 '17 at 6:26
  • 1
    I'm not sure you understand what Ettercap does. What you want is a proxy that rewrites requests. – schroeder Mar 29 '17 at 7:09
  • I found a tool called Bettercap, which does this. I was trying to make filters that would replace </head> with </head<script>alert(document.cookie)</script>. But Bettercap has inbuilt functions for this. – Python Mar 29 '17 at 7:13
  • @schroeder, what OP wants can and frequently is done using ettercap. – leaustinwile May 9 at 21:29