{"id":17383493,"url":"https://github.com/b1tg/rs-shellcode","last_synced_at":"2025-06-11T04:43:00.264Z","repository":{"id":41382698,"uuid":"334469973","full_name":"b1tg/rs-shellcode","owner":"b1tg","description":"Another shellcode runner 🦀 🐚","archived":false,"fork":false,"pushed_at":"2021-10-19T11:00:21.000Z","size":903,"stargazers_count":148,"open_issues_count":0,"forks_count":22,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-14T19:43:21.069Z","etag":null,"topics":["rust","shellcode","shellcode-loader"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/b1tg.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}},"created_at":"2021-01-30T17:21:19.000Z","updated_at":"2025-04-01T05:06:08.000Z","dependencies_parsed_at":"2022-08-10T02:07:04.365Z","dependency_job_id":null,"html_url":"https://github.com/b1tg/rs-shellcode","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1tg%2Frs-shellcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1tg%2Frs-shellcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1tg%2Frs-shellcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1tg%2Frs-shellcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b1tg","download_url":"https://codeload.github.com/b1tg/rs-shellcode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1tg%2Frs-shellcode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259201886,"owners_count":22820904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","shellcode","shellcode-loader"],"created_at":"2024-10-16T07:42:56.770Z","updated_at":"2025-06-11T04:43:00.220Z","avatar_url":"https://github.com/b1tg.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rs-shellcode\n\nA shellcode runner write in Rust use [windows-rs](https://github.com/microsoft/windows-rs).\n\n\n# how to use it\n\nInstall [rustup](https://rustup.rs/), use nightly toochain.\n\n```sh\nrustup default nightly\n```\n\nUse msfvenom generate shellcode for test.\n\n```sh\nmsfvenom -p windows/x64/exec CMD=calc.exe  --platform win -f raw -o calc64.raw\n```\n\nBuild:\n\n```sh\ncargo build\n```\n\nUsage:\n```\nrs_shellcode \n\nUSAGE:\n    rs_shellcode.exe [FLAGS] [OPTIONS] -f \u003cfile\u003e\n\nFLAGS:\n    -b               set breakpoint in debugger\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n    -f \u003cfile\u003e          shellcode path\n    -o \u003coffset\u003e        shellcode offset\n```\n\nRun:\n\n```sh\n./target/debug/rs_shellcode.exe -f \u003cSHELLCODE_PATH\u003e\n```\n\nWhen your shellcode not start at offset 0, you can specify the offset use `-o`:\n\n```sh\n./target/debug/rs_shellcode.exe -f \u003cSHELLCODE_PATH\u003e -o 0x30\n```\n\n\nRun with breakpoint flag (`-b`):\n\n```sh\n./target/debug/rs_shellcode.exe -f \u003cSHELLCODE_PATH\u003e -b\n```\n\nuse this flag, you can break just before your shellcode in the debugger, which will make your life easier.\n\n![breakpoint in windbg](./breakpoint.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb1tg%2Frs-shellcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb1tg%2Frs-shellcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb1tg%2Frs-shellcode/lists"}