Rubeus
Rubeus copied to clipboard
Removed use of System.Environment.Exit
This prevents Rubeus from killing your process when running certain functions inline (or in a non sacrificial process). To reproduce, run current Rubeus through inline-ExecuteAssembly in monitor mode for X seconds. The process is killed and you lose your beacon. If you remove System.Environment.Exit and run the same command, it functions properly and you do not lose your beacon.
I'm not 100% because my experience with CS is limited, @CCob may be better to comment on this
The one for HarvestTicketGrantingTickets
it fine, but StringToByteArray
is used everywhere it looks like which will more likely lead to a confusing NullReferenceException
. @anthemtotheego, can we change the PR so that it throws InvalidParameterException
for the StringToByteArray
function?
Yeah, no issue at all with you changing it to avoid any possible issues.