Burp Suite User Forum

What is the role of divis in this script?

Dany | Last updated: 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, PortSwigger Agent | Last updated: Jan 13, 2020 09:11AM UTC

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.

Burp User | Last updated: Jan 24, 2020 12:42PM UTC

Still didn't understand it completely((

You need to Log in to post a reply. Or register here, for free.