Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find out if an .EXE has Command-Line Options?

Suppose you have an .EXE and you want to check if it has Command-Line Options. How can one know if the .EXE has this ability. In my case I know that Nir Sofers WebBrowserPassView.exe has the ability to start it via cmd.exe and WebBrowserPassView.exe /stext output.txt. But how can I find out if I don't know?

like image 240
JohnnyFromBF Avatar asked Jan 15 '12 11:01

JohnnyFromBF


People also ask

How do I find command line options?

Right click on any column and select "Show Columns" and then check "Command Line Arguments" option > Click OK.

How can I see what is inside an EXE file?

When you open the EXE file in 7-Zip, you'll be shown a list of files and folders that the EXE file contains. You can double-click folders to see the files stored inside. You can select multiple files by holding Ctrl and clicking each one. Click the "Extract" button after selecting the files.

How can I tell if an EXE has a silent switch?

Universal Silent Switch Finder (USSF) is about as accurate a program name as I've ever seen. If you haven't guessed already, Universal Silent Switch Finder attempts to detect the silent switch or parameter for an executable. Simply launch the program and point it to an executable file, and it'll take care of the rest.


1 Answers

The easiest way would be to use use ProcessExplorer but it would still require some searching.

Make sure your exe is running and open ProcessExplorer. In ProcessExplorer find the name of your binary file and double click it to show properties. Click the Strings tab. Search down the list of string found in the binary file. Most strings will be garbage so they can be ignored. Search for anything that might possibly resemble a command line switch. Test this switch from the command line and see if it does anything.

Note that it might be your binary simply has no command line switches.

For reference here is the above steps applied to the Chrome executable. The command line switches accepted by Chrome can be seen in the list:

Process explorer analyzing Chrome.exe

like image 157
Adam Avatar answered Sep 28 '22 03:09

Adam