2016-05-17 13:10:09 +00:00
|
|
|
For usage on the LA Time's powerball simulator. Careful about clicking the page.
|
|
|
|
|
2020-03-25 03:01:44 +00:00
|
|
|
Blog post: https://blog.securityevaluators.com/hacking-the-javascript-lottery-80cc437e3b7f
|
|
|
|
|
2016-05-17 13:10:09 +00:00
|
|
|
Run the following snippet in your browser's console.
|
|
|
|
|
|
|
|
_ = []; for(var i=0; i<5; ++i) { _.push(Math.random()) } ; console.log(_)
|
|
|
|
|
2020-03-25 03:01:44 +00:00
|
|
|
Paste at least 3 of those (5 for Chrome) values into the dubs array in main().
|
|
|
|
|
|
|
|
It will warn you if the model is too "loose" and has multiple solutions.
|
2016-05-17 13:10:09 +00:00
|
|
|
|
|
|
|
Set the browser in main() to Chrome or Firefox. (Safari hasn't updated yet.)
|
|
|
|
|
|
|
|
python xs128p.py
|
|
|
|
|
|
|
|
The winning numbers should have an arrow. Click once on the number inputs and tab between them to enter your "pick".
|
|
|
|
|
|
|
|
Click once on the play button.
|
|
|
|
|
|
|
|
Enjoy your lotto winnings :)
|
2020-03-25 03:12:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-25 03:13:13 +00:00
|
|
|
Hey, while you're here, I teach some security stuff on YouTube. https://cybering.cc
|
2020-03-25 03:12:48 +00:00
|
|
|
|
|
|
|
Follow me on Twitter! @cyberingcc
|