Added SharpSnek.cs

This commit is contained in:
byt3bl33d3r
2018-12-07 22:22:07 -07:00
parent 5fe303146c
commit da31c5b12b
3 changed files with 85 additions and 1 deletions
+1
View File
@@ -8,6 +8,7 @@ Toolbox containing research notes & PoC code for weaponizing .NET's DLR
| --- | --- | | --- | --- |
| `Invoke-JumpScare.ps1` | Executes shellcode using an embedded Boolang compiler, nothing touches disk (at least from what I've seen) and no calls to `csc.exe` are made :) | | `Invoke-JumpScare.ps1` | Executes shellcode using an embedded Boolang compiler, nothing touches disk (at least from what I've seen) and no calls to `csc.exe` are made :) |
| `Invoke-IronPython.ps1` | Executes IronPython code using the embedded IPY engine. Same concept as `Invoke-JumpScare` only using IronPython. | | `Invoke-IronPython.ps1` | Executes IronPython code using the embedded IPY engine. Same concept as `Invoke-JumpScare` only using IronPython. |
| `SharpSnek.cs` | C# code that embedes an IronPython engine and executes embedded IPY code. Hooks `AppDomain.CurrentDomain.AssemblyResolve` to resolve needed Assemblies at runtime. |
| `runBoo.cs` | C# version of `Invoke-JumpScare`. Executes shellcode using an embedded Boolang compiler.| | `runBoo.cs` | C# version of `Invoke-JumpScare`. Executes shellcode using an embedded Boolang compiler.|
| `runBooAssemblyResolve.cs` | C# code that embeds a Boolang compiler and executes embedded Boolang code. Hooks `AppDomain.CurrentDomain.AssemblyResolve` to resolve needed Assemblies at runtime.| | `runBooAssemblyResolve.cs` | C# code that embeds a Boolang compiler and executes embedded Boolang code. Hooks `AppDomain.CurrentDomain.AssemblyResolve` to resolve needed Assemblies at runtime.|
| `minidump.boo` | Native Boolang script to dump memory using `MiniDumpWriteDump` | | `minidump.boo` | Native Boolang script to dump memory using `MiniDumpWriteDump` |
Executable
+83
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -74,7 +74,7 @@ namespace ConsoleApplication1
0x00,0x53,0xff,0xd5,0x63,0x61,0x6c,0x63,0x2e,0x65,0x78,0x65,0x00 }; 0x00,0x53,0xff,0xd5,0x63,0x61,0x6c,0x63,0x2e,0x65,0x78,0x65,0x00 };
BooCompiler compiler = new BooCompiler(); BooCompiler compiler = new BooCompiler();
//compiler.Parameters.Input.Add(new StringInput("print 'Doot Doot'!")); :) //compiler.Parameters.Input.Add(new StringInput("MyScript", "print 'Doot Doot'!")); :)
compiler.Parameters.Input.Add(new FileInput(args[0])); compiler.Parameters.Input.Add(new FileInput(args[0]));
compiler.Parameters.Pipeline = new CompileToMemory(); compiler.Parameters.Pipeline = new CompileToMemory();
compiler.Parameters.Ducky = true; compiler.Parameters.Ducky = true;