Is it possible to retrieve a randomly generated value declared within an anonymous function (IIFE), and if so, how can it be achieved?
(function () {
// assuming a complex, obscured random function
var salt = random()*10000|0;
// assuming an event manager
Events.on('custom event', function () {
// perform some amazing tasks with the salt variable here
});
})()
Factors considered:
- The function is loaded through ajax.
- It runs on load, making breakpoint inclusion challenging.
- There may exist a sleek solution to test for any potential injection (if such a thing exists).