XSS - Include external js using js: JS for Pentesters task 10 write up
Writeup for task-10 of the JS for pentesters series by security-tube - Include external js
JS for Pentesters task 10
<script> tag but here in the challenge, what ever we type in, it will goes inside a
<script> tag so this time, executing a script is a bit difficult. A very simple way to complete this challenge is to add a closing
</script> tag and then reopen a new script tag which contains our file:
Like we said above, what we did is that first we created a new script element. Then added some attributes to the newly created elements and pointed the src to
We hope that you really liked this challenge. If there is anything you didn’t understand or wanted to get more clarity, please comment down and we are more than happy to help. Also, if you get a better way of solving the challenge, please share it with us and we are happy to learn from our readers too. Happy pentesting..