Some feedback on your tool with some of my tests.
Working
.\SharpReflectivePEInjection.exe -file C:\Windows\System32\calc.exe -syscalls
.\SharpReflectivePEInjection.exe -file C:\Windows\System32\calc.exe
Not working
.\SharpReflectivePEInjection.exe -file C:\Windows\System32\cmd.exe -a "/c calc.exe" (exits after patching args)
.\SharpReflectivePEInjection.exe -file .\SharpHound.exe (Sharphound compiled to x64, exits after patching args)
.\SharpReflectivePEInjection.exe -file .\SharpHound.exe -a "-c DCOnly" (Sharphound compiled to x64, exits after patching args)
.\SharpReflectivePEInjection.exe -file .\SharpHound.exe -a "--help" (exits instantly after showing help page, because the content of the -a flag is recognized as flag for SharpReflectivePEInjection.exe)
It seems like the tool does not work with .NET assemblies at all, even when compiled for x64 explicitly.
Some feedback on your tool with some of my tests.
Working
.\SharpReflectivePEInjection.exe -file C:\Windows\System32\calc.exe -syscalls.\SharpReflectivePEInjection.exe -file C:\Windows\System32\calc.exeNot working
.\SharpReflectivePEInjection.exe -file C:\Windows\System32\cmd.exe -a "/c calc.exe"(exits after patching args).\SharpReflectivePEInjection.exe -file .\SharpHound.exe(Sharphound compiled to x64, exits after patching args).\SharpReflectivePEInjection.exe -file .\SharpHound.exe -a "-c DCOnly"(Sharphound compiled to x64, exits after patching args).\SharpReflectivePEInjection.exe -file .\SharpHound.exe -a "--help"(exits instantly after showing help page, because the content of the-aflag is recognized as flag forSharpReflectivePEInjection.exe)It seems like the tool does not work with .NET assemblies at all, even when compiled for x64 explicitly.