The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: mitchi on March 14, 2009, 02:22:04 AM

Title: Trying to get the ListDLL tool to work...
Post by: mitchi on March 14, 2009, 02:22:04 AM
ListDLL is a tool that displays all the DLL in use on your system. It's a sysinternals tool (Process Explorer, etc.)
http://technet.microsoft.com/en-us/sysinternals/bb896656.aspx

The thing is , I run the program, it opens a console window and then it closes and I don't have the time to see anything  :green
Console output redirection doesn't work because the executable opens a NEW console window...
Anyone has an idea ?

Title: Re: Trying to get the ListDLL tool to work...
Post by: PBrennick on March 14, 2009, 04:46:02 AM
Start the console window first by typing cmd.exe or command.com; then, type the program you want to run at the command prompt and you will see what you need to see.

You can do this the other way around (which is what you tried) by typing cmd.exe /k ListDLL.exe

The /k will prevent the window from closing on you.
Paul
Title: Re: Trying to get the ListDLL tool to work...
Post by: mitchi on March 14, 2009, 05:04:44 AM
Doesn't work here.
Title: Re: Trying to get the ListDLL tool to work...
Post by: sinsi on March 14, 2009, 05:23:02 AM
If you're in vista, try running a command prompt as administrator. I tried it as a normal user and got an error message about needing DEBUG privileges.
Title: Re: Trying to get the ListDLL tool to work...
Post by: mitchi on March 14, 2009, 05:30:04 AM
Ok, I tested the program in my Windows XP Virtual Machine and it seems that this is a Vista problem because it works as it should in XP.
I'll try to add an int 3 before the call to ExitProcess...
Title: Re: Trying to get the ListDLL tool to work...
Post by: sinsi on March 14, 2009, 06:01:11 AM
It works as it should in vista too, because finding info about other processes is a security issue, hence the need for elevated (admin) privileges.
Title: Re: Trying to get the ListDLL tool to work...
Post by: Farabi on March 16, 2009, 03:41:50 AM
Quote from: sinsi on March 14, 2009, 06:01:11 AM
It works as it should in vista too, because finding info about other processes is a security issue, hence the need for elevated (admin) privileges.
But hiding a process info is also dangerous. Imagine if a virus programmers discover how to hide their malware.
Title: Re: Trying to get the ListDLL tool to work...
Post by: sinsi on March 16, 2009, 08:26:52 AM
Quote from: Farabi on March 16, 2009, 03:41:50 AM
Quote from: sinsi on March 14, 2009, 06:01:11 AM
It works as it should in vista too, because finding info about other processes is a security issue, hence the need for elevated (admin) privileges.
But hiding a process info is also dangerous. Imagine if a virus programmers discover how to hide their malware.
Yes, but it isn't hidden, just from a 'normal user'. For example, try running 'Process Explorer' in vista (in my case win7beta).
It will show processes, but the details (handles,dlls etc) are hidden. Run it as administrator and all is revealed...
Title: Re: Trying to get the ListDLL tool to work...
Post by: mitchi on March 16, 2009, 01:45:51 PM
Process Explorer is a fine piece of software... Can you believe that the same image can detect a 64 bit OS, extract the 64 bit .exe from it's resources , run it. And at exit, the 64 bit .exe is deleted.
Ni vu, ni connu  :bg