Metasploit mailing list archives

cmd.exe will not spawn a shell


From: warl0ck at metaeye.org (Pranay Kanwar)
Date: Mon, 02 Jul 2007 00:07:17 +0530

Most probably its due to the fact that in shellcode the STARTUPINFO structure for CreateProcess is
missing STARTF_USESHOWWINDOW flag.

From MSDN

"For graphical user interface (GUI) processes, this information affects the first window created by the CreateWindow 
function and shown by the
ShowWindow function. For console processes, this information affects the console window if a new console is created for 
the process. A process can use
the GetStartupInfo function to retrieve the STARTUPINFO structure specified when the process was created."

Regards

warl0ck // MSG
http://www.metaeye.org



Current thread: