Closed bAuh0lz closed 2 years ago
Hi @bAuh0lz This was actually functionality I had in the back of my mind that I wanted to introduce. I have added the feature into the main repo and should be published to the BApp store to be used soon. See https://github.com/PortSwigger/python-scripter#state-dictionary for details :)
Great :) Thank you.
This PR enables a user to add key-value pairs for later use. In my case, I had to increment one of the parameters in every request. To achieve this goal, I wrote a PoC script:
Note that the variable
statics
in the script is newly defined by this PR.After I loaded the script to Python Scripter and sent two requests, the UI shows:
As you see,
statics['counter']
worked as a counter.I think this can be done by using another extension, but this PR can make it simpler and Python Scripter more flexible.