{"id":13578165,"url":"https://github.com/0vercl0k/snapshot","last_synced_at":"2026-02-01T04:03:12.141Z","repository":{"id":221079258,"uuid":"752909784","full_name":"0vercl0k/snapshot","owner":"0vercl0k","description":"WinDbg extension written in Rust to dump the CPU / memory state of a running VM","archived":false,"fork":false,"pushed_at":"2025-09-03T04:07:28.000Z","size":125,"stargazers_count":121,"open_issues_count":3,"forks_count":7,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-09-03T06:10:39.624Z","etag":null,"topics":["rust","rust-lang","snapshot-fuzzer","windbg"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0vercl0k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2024-02-05T04:45:06.000Z","updated_at":"2025-08-21T09:45:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"935f6ed0-1c54-449d-8870-59ee145c2613","html_url":"https://github.com/0vercl0k/snapshot","commit_stats":null,"previous_names":["0vercl0k/snapshot"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/0vercl0k/snapshot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0vercl0k%2Fsnapshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0vercl0k%2Fsnapshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0vercl0k%2Fsnapshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0vercl0k%2Fsnapshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0vercl0k","download_url":"https://codeload.github.com/0vercl0k/snapshot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0vercl0k%2Fsnapshot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28967109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T03:46:10.227Z","status":"ssl_error","status_checked_at":"2026-02-01T03:46:01.693Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["rust","rust-lang","snapshot-fuzzer","windbg"],"created_at":"2024-08-01T15:01:28.061Z","updated_at":"2026-02-01T04:03:12.118Z","avatar_url":"https://github.com/0vercl0k.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"\u003cdiv align='center'\u003e\n  \u003ch1\u003e\u003ccode\u003esnapshot\u003c/code\u003e\u003c/h1\u003e\n  \u003cp\u003e\n    \u003cstrong\u003eA Rust WinDbg extension that takes a snapshot of a running VM.\u003c/strong\u003e\n  \u003c/p\u003e\n  \u003cp\u003e\n    \u003cimg src='https://github.com/0vercl0k/snapshot/workflows/Builds/badge.svg'/\u003e\n  \u003c/p\u003e\n  \u003cp\u003e\n    \u003cimg src='pics/snapshot.gif' /\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n`snapshot` is a WinDbg extension written in Rust that dumps both the state of a CPU (GPRs, relevant MSRs, FPU state, segments, etc.) and the physical memory of a running VM (via a crash-dump). This snapshot is meant to be used by snapshot-based fuzzers and more particularly by [wtf](https://github.com/0vercl0k/wtf).\n\nThis code base is also meant to show case how to write a WinDbg extension in Rust 🦀.\n\n## Building\nYou can build the extension with the below:\n```text\nc:\\\u003egit clone https://github.com/0vercl0k/snapshot.git\nc:\\\u003ecd snapshot\nc:\\snapshot\u003ecargo build --release\n```\n\nIf you would rather grab a pre-built extension, grab one on the [releases](https://github.com/0vercl0k/snapshot/releases) page.\n\n## Grabbing a snapshot\nOnce you have the extension downloaded / compiled, you can load it in WinDbg with the below:\n```text\nkd\u003e .load \\path\\to\\snapshot\\target\\release\\snapshot.dll\n\nkd\u003e !snapshot -h\n[snapshot] Usage: snapshot [OPTIONS] [STATE_PATH]\n\nArguments:\n  [STATE_PATH]  The path to save the snapshot to\n\nOptions:\n  -k, --kind \u003cKIND\u003e  The kind of snapshot to take [default: full] [possible values: active-kernel, full]\n  -h, --help         Print help\n```\n\nGenerate a full-kernel snapshot in the `c:\\foo` directory with the below:\n```text\nkd\u003e !snapshot c:\\foo\n[snapshot] Dumping the CPU state into c:\\foo\\state.19041.1.amd64fre.vb_release.191206-1406.20240205_173527\\regs.json..\n[snapshot] Dumping the memory state into c:\\foo\\state.19041.1.amd64fre.vb_release.191206-1406.20240205_173527\\mem.dmp..\nCreating c:\\\\foo\\\\state.19041.1.amd64fre.vb_release.191206-1406.20240205_173527\\\\mem.dmp - Full memory range dump\n0% written.\n5% written. 1 min 12 sec remaining.\n10% written. 1 min 4 sec remaining.\n[...]\n90% written. 6 sec remaining.\n95% written. 3 sec remaining.\nWrote 4.0 GB in 1 min 11 sec.\nThe average transfer rate was 57.7 MB/s.\nDump successfully written\n[snapshot] Done!\n```\n\nThere is also `!snapshot_active_kernel` if you would prefer to grab an active kernel crash-dump.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0vercl0k%2Fsnapshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0vercl0k%2Fsnapshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0vercl0k%2Fsnapshot/lists"}