Hack Forums
[C#] NyanCat RunPE Throws Exception When I Debug - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] NyanCat RunPE Throws Exception When I Debug (/showthread.php?tid=6101926)



NyanCat RunPE Throws Exception When I Debug - KUi29929 - Aug 11, 2020

I have this execute method:

Code
RunPE.Execute(Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "RegAsm.exe"), Decryptor.Decrypt(Encoding.ASCII.GetBytes("DSNVLUOHFWE"), Encoding.Default.GetBytes(WindowsFormsApp16.Resource1.myencriptedtxtfile)));

When I run it throwns exception of type 'System.Exception' was thrown in the Execute method, the line highlighted is:

Code
{ if (!Wow64GetThreadContext(pi.ThreadHandle, context)) throw new Exception(); }

has anyone had this error?


RE: NyanCat RunPE Throws Exception When I Debug - VisualSoft - Aug 11, 2020

I Can only see the injection path over there, where is the file you want to run in memory?