└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # SharpChisel-NG 2 | 3 | # What is this ? 4 | Custom chisel version that is embedded in c# automatically built with azure devops, so when a new chisel version releases. The Release page should update with a new version. And hopefully it keeps working with donut and load assembly. 5 | 6 | # Why ? 7 | ![SharpChisel](https://github.com/shantanu561993/SharpChisel) Wasnt working with donut, also it wasnt working with load assembly. 8 | Also on its own it wasnt working with the latest version of regular chisel. So i needed to get it working and decided to automate it. 9 | 10 | # How do i use this? 11 | Download the exe, and provide the command line args as you normally would. 12 | Also if you use donut you need to pass the cmdline args when creating the shellcode. 13 | To look at help menu use regular chisel. 14 | 15 | # Code 16 | ```csharp 17 | using System.Runtime.InteropServices; 18 | using System.Text; 19 | 20 | namespace SharpChisel_NG 21 | { 22 | public class Program 23 | { 24 | [DllImport("chisel", EntryPoint = "RunMe")] 25 | public extern static void RunMe(byte[] test); 26 | public static void Main(string[] args) 27 | { 28 | var strArgs = string.Join(" ", args); 29 | RunMe(Encoding.ASCII.GetBytes(strArgs)); 30 | } 31 | } 32 | } 33 | ``` 34 | 35 | 36 | 37 | # Credits 38 | * https://medium.com/@shantanukhande/red-team-how-to-embed-golang-tools-in-c-e269bf33876a 39 | * https://github.com/shantanu561993/SharpChisel 40 | * https://github.com/jpillora/chisel 41 | --------------------------------------------------------------------------------