Im wondering how could i load an unmanaged exe/native/c++ executable in .net without dropping it to disk, im hoping someone could help me with a code snippet.
Load Unmanaged (Native) Executable in c# |
(Jun 12, 2023 05:08 AM)OFFICIAL MANELE MUSIC Wrote: Im wondering how could i load an unmanaged exe/native/c++ executable in .net without dropping it to disk, im hoping someone could help me with a code snippet. Well this explains your interest in my other thread. But why are you trying to use powershell in that thread and C# in this? Also, protip. Jailbreak GPT to get it to do this for you. (Jun 12, 2023 08:31 AM)Dread.Reaper Wrote: Well this explains your interest in my other thread. But why are you trying to use powershell in that thread and C# in this? Gpt always spits out useless, buggy code for me, well i couldnt do it in c# been trying for weeks but i cant do it since c# doesn’t really give u access to winapi, tried opening powershell and dumping a script in it to do it, thats why i was interested in your powershell script (Jun 12, 2023 12:06 PM)OFFICIAL MANELE MUSIC Wrote: Gpt always spits out useless, buggy code for me, well i couldnt do it in c# been trying for weeks but i cant do it since c# doesn’t really give u access to winapi, tried opening powershell and dumping a script in it to do it, thats why i was interested in your powershell script It really boils down to creativity and how you want to deliver. Is it local, internet based, floppy disk distribution, pidgeon carrier, etc... Regardless of delivery the most common method is to load or decode the base exes code straight to memory. So for example an encrypted container on a usb, it would decrypt the exes code straight into the memory, or alternatively like in the powershell example download to a array in the memory. (Jun 12, 2023 03:43 PM)Dread.Reaper Wrote: It really boils down to creativity and how you want to deliver. In .net loading the bytes to a array in memory and then starting it only work with other .net exes, unmanaged exes wont work (Jun 13, 2023 12:08 AM)OFFICIAL MANELE MUSIC Wrote: In .net loading the bytes to a array in memory and then starting it only work with other .net exes, unmanaged exes wont work Perhaps note, I stated Powershell uses a Download array...
should watch some john hammond vids, he has vids in persistent c# malware ran by powershell, i mean with powershell you can literally encrypt a piece of code to run in regs, and it decrypts the c# payload in memory, powershell has all the libs to load a assembly
"If i had the abilities to neg fuck you now i would - I really do not care what you think. Go away." ~Armada~
(Jun 13, 2023 12:08 AM)OFFICIAL MANELE MUSIC Wrote: In .net loading the bytes to a array in memory and then starting it only work with other .net exes, unmanaged exes wont work That isn't entirely accurate; the following serves as a basic proof of concept (POC), you might want to check it out. unmanaged exe https://www.sendspace.com/file/q12cmj .Net crypter for it. https://hackforums.net/showthread.php?tid=6220104
Jun 13, 2023 12:49 PM
(This post was last modified: Jun 14, 2023 12:38 AM by OFFICIAL MANELE MUSIC.)
(Jun 13, 2023 11:31 AM)xloader Wrote: That isn't entirely accurate; the following serves as a basic proof of concept (POC), you might want to check it out. i still get the same error even with your code, Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Im using .net 7, i am running with admin rights, and the xtest.exe file does exist Code Imports System.IO(Jun 13, 2023 11:31 AM)xloader Wrote: That isn't entirely accurate; the following serves as a basic proof of concept (POC), you might want to check it out. XLoader is truly a legend, as he went above and beyond by accessing my AnyDesk to help me fix my error. (Jun 13, 2023 12:49 PM)3 olaH Wrote: i still get the same error even with your code, Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. As you can see that the code is working correctly, to identify the issue with your build, kindly compare the settings of my sample with yours. (Jun 14, 2023 01:46 AM)xloader Wrote: As you can see that the code is working correctly, to identify the issue with your build, kindly compare the settings of my sample with yours. Nice to see people still help out around here. |
|
|



![[Image: t2GL6mq.png]](https://i.imgur.com/t2GL6mq.png)