ngduyquockhanh / JScriptor

Pre-Script and Post-Script like Postman extension for Burpsuite
18 stars 3 forks source link

Passing variable from pre-script to post-script #4

Closed grittyninja closed 7 months ago

grittyninja commented 8 months ago

Problem: variable from prescript cannot be accessed on postscript.

Prescript

let someVariable = null

if(someVariable === null){
someVariable = "Hello"
}
else {
someVariable
}

Postscript

if(someVariable === "Hello"){
someVariable = "World"
}
else {
someVariable
}

Output from prescript image Output from postscript image

grittyninja commented 8 months ago

@ngduyquockhanh how to pass variable from pre-script? or any localStorage like alternative on GraalVM?

ngduyquockhanh commented 7 months ago

Hello, I just updated the new version