Enigma Protector x86: Startup Password through Command Line
Posted: Wed Jul 27, 2011 10:42 am
This plugin allows to pass a startup password to application through command line. The password should be passed as a first argument in command line, like "protected.exe mypass".
How it works:
1. We calculate MD5 hash of the required password using utility Hash.exe from the bin folder and files.zip
2. In the Enigma Protector we add a string with the calculated hash to the Protection Features - Protected Strings
3. In the plugin, we get a command line parameter, calculate it hash and compare this hash with the one entered in Protected Strings. If hashes are same, then continue execution, otherwise - stop execution.
So, step-by-step:
1. Copy cmdline.dll plugin to the Plugins subfolder of Enigma Protector, then start Enigma Protector
2. Calculating MD5 hash of the password we would like to use using Hash.exe utility 3. In the Enigma Protector, create a protected string of the Binary style with the ID = 1. Fill the content of this string with the result of hash.exe 4. In the Enigma Protector, on the panel Miscellaneous - Plugins, check the plugin "cmdline.dll" 5. Protect the file. Try to run protected file without command line (it should not even start) and then with the password in the command line "protected.exe mypass"
How it works:
1. We calculate MD5 hash of the required password using utility Hash.exe from the bin folder and files.zip
2. In the Enigma Protector we add a string with the calculated hash to the Protection Features - Protected Strings
3. In the plugin, we get a command line parameter, calculate it hash and compare this hash with the one entered in Protected Strings. If hashes are same, then continue execution, otherwise - stop execution.
So, step-by-step:
1. Copy cmdline.dll plugin to the Plugins subfolder of Enigma Protector, then start Enigma Protector
2. Calculating MD5 hash of the password we would like to use using Hash.exe utility 3. In the Enigma Protector, create a protected string of the Binary style with the ID = 1. Fill the content of this string with the result of hash.exe 4. In the Enigma Protector, on the panel Miscellaneous - Plugins, check the plugin "cmdline.dll" 5. Protect the file. Try to run protected file without command line (it should not even start) and then with the password in the command line "protected.exe mypass"