{"id":13799692,"url":"https://github.com/cobbr/SharpGen","last_synced_at":"2025-05-13T08:31:58.901Z","repository":{"id":97441655,"uuid":"156573433","full_name":"cobbr/SharpGen","owner":"cobbr","description":" SharpGen is a .NET Core console application that utilizes the Rosyln C# compiler to quickly cross-compile .NET Framework console applications or libraries.","archived":false,"fork":false,"pushed_at":"2021-04-23T10:41:55.000Z","size":9709,"stargazers_count":297,"open_issues_count":6,"forks_count":58,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-09T19:22:35.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://cobbr.io/SharpGen.html","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cobbr.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}},"created_at":"2018-11-07T16:10:27.000Z","updated_at":"2025-03-23T17:54:43.000Z","dependencies_parsed_at":"2023-03-13T16:13:48.116Z","dependency_job_id":null,"html_url":"https://github.com/cobbr/SharpGen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobbr%2FSharpGen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobbr%2FSharpGen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobbr%2FSharpGen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobbr%2FSharpGen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cobbr","download_url":"https://codeload.github.com/cobbr/SharpGen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253903843,"owners_count":21981758,"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":[],"created_at":"2024-08-04T00:01:05.159Z","updated_at":"2025-05-13T08:31:56.096Z","avatar_url":"https://github.com/cobbr.png","language":"C#","funding_links":[],"categories":["[↑](#table-of-contents) Misc"],"sub_categories":["Exploit Development"],"readme":"# SharpGen\n\n[SharpGen](https://github.com/cobbr/SharpGen) is a .NET Core console application that utilizes the [Rosyln](https://github.com/dotnet/roslyn) C# compiler to quickly cross-compile .NET Framework console applications or libraries.\n\n### Intro\n\nYou'll find details and motivations for the SharpGen project in this [introductory blog post](https://cobbr.io/SharpGen.html).\n\n### Quick Start\n\nThe most basic usage of SharpGen would be to provide SharpGen an output filename and a C# one-liner that you’d like to execute. SharpGen will generate a .NET Framework console application that will execute the one-liner. For example:\n\n```\ncobbr@mac:~ \u003e git clone https://github.com/cobbr/SharpGen\ncobbr@mac:~ \u003e cd SharpGen\ncobbr@mac:~/SharpGen \u003e dotnet build\ncobbr@mac:~/SharpGen \u003e dotnet bin/Release/netcoreapp2.1/SharpGen.dll -f example.exe \"Console.WriteLine(Mimikatz.LogonPasswords());\"\n[+] Compiling source:\nusing System;\nusing System.IO;\nusing System.Text;\nusing System.Linq;\nusing System.Security.Principal;\nusing System.Collections.Generic;\nusing SharpSploit.Credentials;\nusing SharpSploit.Enumeration;\nusing SharpSploit.Execution;\nusing SharpSploit.LateralMovement;\nusing SharpSploit.Generic;\nusing SharpSploit.Misc;\n\npublic static class jZTyloQN2SU4\n{\n    static void Main()\n    {\n        Console.WriteLine(Mimikatz.LogonPasswords());\n\t    return;\n    }\n}\n[+] Compiling optimized source:\nusing System;\nusing SharpSploit.Credentials;\n\npublic static class jZTyloQN2SU4\n{\n    static void Main()\n    {\n        Console.WriteLine(Mimikatz.LogonPasswords());\n\t    return;\n    }\n}\n[*] Compiled assembly written to: /Users/cobbr/SharpGen/Output/example.exe\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobbr%2FSharpGen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcobbr%2FSharpGen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobbr%2FSharpGen/lists"}