{"id":29565585,"url":"https://github.com/kickeddroid/pack-clr","last_synced_at":"2025-12-31T14:31:26.814Z","repository":{"id":297832144,"uuid":"998038245","full_name":"KickedDroid/pack-clr","owner":"KickedDroid","description":"Pack Dotnet bins inside a Rust CLR Host","archived":false,"fork":false,"pushed_at":"2025-06-26T16:41:58.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-26T17:30:07.565Z","etag":null,"topics":["pentesting-tools","redteam"],"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/KickedDroid.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,"zenodo":null}},"created_at":"2025-06-07T18:26:53.000Z","updated_at":"2025-06-26T16:42:02.000Z","dependencies_parsed_at":"2025-06-26T17:34:18.088Z","dependency_job_id":null,"html_url":"https://github.com/KickedDroid/pack-clr","commit_stats":null,"previous_names":["kickeddroid/pack-clr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KickedDroid/pack-clr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KickedDroid%2Fpack-clr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KickedDroid%2Fpack-clr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KickedDroid%2Fpack-clr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KickedDroid%2Fpack-clr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KickedDroid","download_url":"https://codeload.github.com/KickedDroid/pack-clr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KickedDroid%2Fpack-clr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265837729,"owners_count":23836558,"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":["pentesting-tools","redteam"],"created_at":"2025-07-18T21:34:50.662Z","updated_at":"2025-12-31T14:31:26.781Z","avatar_url":"https://github.com/KickedDroid.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pack-CLR\nA tool to pack dotnet apps into a rust clr host using `clroxide`. Utilizing hardware breakpoints for patchless amsi bypass.\n\nTODO: \n- remove rc4 encryption\n- Add obfuscation on build\n\n---\nPreq\n```\nrustup target add x86_64-pc-windows-gnu\n```\n\n## Usage \n\nBuilding\n\n```\n./pack \u003cdotnet exe path\u003e\n```\n\nRun the packed exe.\n\n```\nC:\\\u003e .\\packed.exe \u003cExecutable Args\u003e\n```\n\n---\n\nExample usage with SharpHound.exe\n\nOn your local machine pack SharpHound into the clrhost.\n```\n.\\pack SharpHound.exe\n```\n\nRename the binary if you want to.\n```\nmv packed.exe SharpHound-p.exe\n```\n\nOn the target machine, use the same args you would with the dotnet app.\n\n```\n.\\SharpHound-p.exe -c All --zipfilename example\n```\n\n\n---\n\n### Build Encryption\n\nVery simple build script to encrypt the dotnet binary.\n\nbuild.rs\n```rust\n// Create the key \n    let key = generate_random_string(256);\n\n    // ...\n// Encrypt the payload\n    let file = fs::read(\"src/unencrypted\").unwrap();\n    let mut cipher = crypto::rc4::Rc4::new(key.as_bytes());\n    let mut o = file.clone();\n    cipher.process(\u0026file[..], \u0026mut o);\n    let _ = fs::write(\"src/encr\", o);\n```\n---\n\n### AMSI Bypass\n\nUtilizing the repo https://github.com/imunproductive/hwbp for hardware breakpoints. Learn \nmore about this technique here https://cymulate.com/blog/blindside-a-new-technique-for-edr-evasion-with-hardware-breakpoints/\n\n---\n\n### Recommended Binaries\nThis list of dotnet bins have been tested and work great.\nhttps://github.com/r3motecontrol/Ghostpack-CompiledBinaries/tree/master/dotnet%20v4.8.1%20compiled%20binaries\n\n---\n\n\n### References\nThanks given to\n- https://github.com/yamakadi/clroxide\n- https://github.com/joaoviictorti/rustclr\n- https://github.com/trickster0/OffensiveRust\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkickeddroid%2Fpack-clr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkickeddroid%2Fpack-clr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkickeddroid%2Fpack-clr/lists"}