{"id":20447664,"url":"https://github.com/cobbr/sharpshell","last_synced_at":"2025-04-13T01:08:27.896Z","repository":{"id":97441672,"uuid":"161361151","full_name":"cobbr/SharpShell","owner":"cobbr","description":" SharpShell is a proof-of-concept offensive C# scripting engine that utilizes the Rosyln C# compiler to quickly cross-compile .NET Framework console applications or libraries.","archived":false,"fork":false,"pushed_at":"2018-12-11T16:24:48.000Z","size":9038,"stargazers_count":125,"open_issues_count":0,"forks_count":19,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-13T01:08:20.592Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-11T16:19:37.000Z","updated_at":"2025-01-24T21:33:47.000Z","dependencies_parsed_at":"2023-03-13T16:13:48.113Z","dependency_job_id":null,"html_url":"https://github.com/cobbr/SharpShell","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%2FSharpShell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobbr%2FSharpShell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobbr%2FSharpShell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobbr%2FSharpShell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cobbr","download_url":"https://codeload.github.com/cobbr/SharpShell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650762,"owners_count":21139681,"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-11-15T10:28:33.339Z","updated_at":"2025-04-13T01:08:27.890Z","avatar_url":"https://github.com/cobbr.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SharpShell\n\n[SharpShell](https://github.com/cobbr/SharpShell) is a proof-of-concept offensive C# scripting engine that utilizes the [Rosyln](https://github.com/dotnet/roslyn) C# compiler to quickly cross-compile .NET Framework console applications or libraries.\n\nSharpShell is broken up into three distinct C# projects:\n\n* **SharpShell** - `SharpShell` is the most straightforward of the three projects. It acts as an interactive shell and scripting engine for C# code compiled against chosen source code, references, and resources. The main caveat with `SharpShell` is that it depends upon .NET Framework 4.6 and 3.5/4.0 being installed on the system. This is because `SharpShell` depends upon the Roslyn API, which requires 4.6, and executes an assembly in memory cross-compiled for you choice of versions 3.5 or 4.0.\n* **SharpShell.API** - `SharpShell.API` and `SharpShell.API.SharpShell` are two projects meant to be used in tandem. To avoid the opsec limitations and .NET Framework 4.6 requirements of `SharpShell`, `SharpShell.API` acts as a web-server that handles the compilation for `SharpShell.API.SharpShell`. `SharpShell.API` is a ASP.NET Core 2.1 application and is cross-platform.\n* **SharpShell.API.SharpShell** - `SharpShell.API.SharpShell` provides the same interface as `SharpShell`, but doesn't have the .NET Framework 4.6 requirement. `SharpShell.API.SharpShell` runs on .NET Framework 3.5, but also requires network communication with a `SharpShell.API` server for handling compilation of assemblies.\n\n### Intro\n\nYou'll find additional details about the SharpShell project in this [introductory blog post](https://cobbr.io/SharpShell.html).\n\n### Quick Start\n\nStart up the standalone `SharpShell` and execute C# one-liners that compile against [SharpSploit](https://github.com/cobbr/SharpSploit):\n\n```\nPS C:\\Users\\cobbr\\Demos\\SharpShell\\SharpShell\\bin\\Release\u003e .\\SharpShell.exe\nSharpShell \u003e Shell.ShellExecute(\"whoami\");\ndesktop-f9dq76g\\cobbr\n\nSharpShell \u003e using (Tokens t = new Tokens()) { \\\n\u003e\u003e\u003e            return t.WhoAmI(); \\\n\u003e\u003e\u003e          }\nDESKTOP-F9DQ76G\\cobbr\nSharpShell \u003e Mimikatz.Command(\"coffee\");\n\n  .#####.   mimikatz 2.1.1 (x86) built on Oct 22 2018 16:27:15\n .## ^ ##.  \"A La Vie, A L'Amour\" - (oe.eo) ** Kitten Edition **\n ## / \\ ##  /*** Benjamin DELPY `gentilkiwi` ( benjamin@gentilkiwi.com )\n ## \\ / ##       \u003e http://blog.gentilkiwi.com/mimikatz\n '## v ##'       Vincent LE TOUX             ( vincent.letoux@gmail.com )\n  '#####'        \u003e http://pingcastle.com / http://mysmartlogon.com   ***/\n\nmimikatz(powershell) # coffee\n\n    ( (\n     ) )\n  .______.\n  |      |]\n  \\      /\n   `----'\n\nSharpShell \u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobbr%2Fsharpshell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcobbr%2Fsharpshell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobbr%2Fsharpshell/lists"}