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.

closed as too broad by TheJulyPlot, S.L. Barth, Serge Ballesta, Matthew, Steve Mar 29 '17 at 14:24

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 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