Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

What is the role of divis in this script?

Alex Jan 13, 2020 07:15AM UTC

We have this script, " '-alert(1)-' ". I tried to execute this script in lab without "-" and it didn't work. So I searched about it, but didn't find anything interesting to make it clearer for myself. Why is divis so important in this script, what does it do? Could you explain it to me please?


Ben Wright Jan 13, 2020 03:00PM UTC Support Center agent

Hi,

The ’ character is terminating the JavaScript string literal and then the – character is terminating the statement allowing you to subsequently enter your payload.

Please let us know if you require any further information.


Post Your public answer

Your name
Your email address
Answer