In an XSS attack (proof of concept for pen testing reasons), the following string is appended to a url:
I understand what the
;alert(String.fromCharCode(88,83,83)) does (it just creates an alert dialog saying "XSS"). What I don't understand is why it needs the
;(1 for it to work.
What is the need for that last piece of text? Also why have the number 1? I tried letters and different numbers and both worked.