Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 871 Bytes

js-injection.md

File metadata and controls

14 lines (12 loc) · 871 Bytes

[wiki]::Javascript arbitrary injection

  1. Write this to a file:
    <script>alert('this is my payload!');</script>
  2. Discover your target's ip and gateway ip: you can use subdisc for this task.
  3. Run: sudo python3 main.py [target ip] [gateway ip] js my_file.js
  4. The payload will be injected on every http response the target gets

Screenshots

image_2023-03-19_11-54-22
image_2023-03-19_12-16-20

Next wiki page: custom handlers