Transforming the source code to generate a DLL in stead of an EXE is simple. That’s all you need to do to compile cmd.exe (I used version 0.3.11). Install it, start the build environment and issue command make cmd. Metasploit’s Meterpreter is another example of a command interpreter in DLL form.Ĭmd.exe from Microsoft is closed source, but there is an open-source variant available from the ReactOS project.Ĭompiling cmd.exe from ReactOS is simple: download the source-code and the ReactOS build environment. In a restricted environment, it can be injected into a legitimate process and thus bypass the restriction mechanisms. Why you ask? Well, because it’s a fun challenge □īut also because a DLL is loaded into a process. This is something I’ve wanted to do for some time: take a command interpreter and transform it from an EXE into a DLL.
0 Comments
Leave a Reply. |