{"id":16900435,"url":"https://github.com/d0nutptr/v8_rand_buster","last_synced_at":"2026-03-11T10:31:22.832Z","repository":{"id":97472525,"uuid":"246213672","full_name":"d0nutptr/v8_rand_buster","owner":"d0nutptr","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-20T22:07:15.000Z","size":10,"stargazers_count":66,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T06:02:26.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d0nutptr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-10T05:11:48.000Z","updated_at":"2025-03-27T22:42:45.000Z","dependencies_parsed_at":"2023-03-13T08:30:44.573Z","dependency_job_id":null,"html_url":"https://github.com/d0nutptr/v8_rand_buster","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/d0nutptr/v8_rand_buster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d0nutptr%2Fv8_rand_buster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d0nutptr%2Fv8_rand_buster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d0nutptr%2Fv8_rand_buster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d0nutptr%2Fv8_rand_buster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d0nutptr","download_url":"https://codeload.github.com/d0nutptr/v8_rand_buster/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d0nutptr%2Fv8_rand_buster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30378072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T17:54:40.027Z","updated_at":"2026-03-11T10:31:22.806Z","avatar_url":"https://github.com/d0nutptr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# v8_rand_buster\n\nBreaks the following pattern in modern V8 javascript engine.\n\n```\nMath.floor(CONST * Math.random())\n```\n\nCredits to [Douglas Goddard](https://github.com/TACIXAT) for the initial work and blog post that helped explain how to solve this problem initially.\n\n# Usage\n\nAssuming you've [watched the talk](https://www.youtube.com/watch?v=_Iv6fBrcbAM) and understand the nuances of how this works, the following should serve as a simple explanation that can get you going with this tool.\n\n## Getting the seed\n```\ncat codes.txt | tac | python3 xs128p.py --multiple \u003cMULTIPLE\u003e\n```\n\nexample codes.txt\n```\n12345\n23451\n34512\n45123\n51234\n.\n.\n.\n```\n\n* **codes.txt**: an in-order list of codes you leaked from the `Math.floor(Math.random() * CONST)` invocations.\n* **tac**: reverses the list (watch the talk for more details and how this might go wrong)\n* **\u003cMULTIPLE\u003e**: equivalent to `CONST` in the `Math.floor(Math.random() * CONST)` expression.\n\n## Getting the next secrets\nNote: _this gets the next outputs of the internal math.random calls after flooring. this will not get the next JS call to math.random. See the talk for more details_\n\n```\npython3 xs128p.py --mutliple \u003cMULTIPLE\u003e --gen \u003cSEEDS\u003e,\u003cNUMBER_OF_OUTPUTS\u003e\n```\n\n* **\u003cMULTIPLE\u003e**: Same as above ^\n* **\u003cSEEDS\u003e**: The seeds generated by the above step\n* **\u003cNUMBER_OF_OUTPUTS\u003e**: the number of floor randoms you'd like generated. This should be greater than the number of codes you originally used to generate the seed if you want unknown values.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd0nutptr%2Fv8_rand_buster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd0nutptr%2Fv8_rand_buster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd0nutptr%2Fv8_rand_buster/lists"}