<< Click to Display Table of Contents >> Navigation: Password Recovery Programs > Advanced Archive Password Recovery > Tips & tricks > Command line |
You can run ARCHPR with command line parameters. The syntax is:
ARCHPR [switches] [zip/arj/ace/rar-filename]
or
ARCHPR [switches] [axr-filename]
The switches are separated with a "/" or "-". If the switch is followed by values (e.g., filename, starting password, etc.) containing special characters (space, semicolon, slash or dash), it must be enclosed in single or double quotes.
Switch |
Description |
Default |
/a:b|m|d |
attack type (brute-force, mask, dictionary) |
brute-force |
/c:csdepa |
character set (caps, small, digits, special, space, all) |
caps |
/u:chars |
user-defined charset |
|
/oem |
convert to OEM (for user-defined charset and dictionary attack) |
disabled |
/sf:pass |
start from password |
|
/endat:pass |
end at password |
|
/usewz:X |
use optimized WinZip attack |
|
/useknownstart:XX |
use known bytes in stored file (from 1 to 4 hex values, no spaces) |
|
/p[:filename] |
plaintext filename |
|
/m:mask |
mask |
|
/ms:C |
mask symbol |
? |
/min:N |
minimum password length |
1 |
/max:N |
maximum password length |
5 |
/oem |
convert to OEM (for user-defined charset and dictionary attack) |
disabled |
/useknownstart:XX |
use known bytes in stored file (from 1 to 4 hex values, no spaces) |
|
/d[:filename] |
dictionary filename |
|
/sm |
smart mutations |
disabled |
/ac |
try all possible upper/lower case combinations |
disabled |
/sl:N |
start from line N |
0 |
/autosave:N |
autosave every N minutes; 0 means disabled |
5 |
/aname:filename |
autosave filename |
|
/adir:dir |
autosave directory |
|
/idle |
run at idle priority |
enabled |
/high |
run at high priority |
disabled |
/dontstart |
don't start the attack, just load/set the parameters |
|
/minimize |
minimize the program after starting the attack |
|
/smartexit[:filename] |
when the attack is completed, write all statistics, including the password (if found) to the file specified (default "cmdline_stats.txt"), and exis the program |
disabled |
archpr.exe /a:b /c:cs /min:3 /max:7 /smartexit test.zip
(brute-force attack; small and capital letters; length from 3 to 7; save and exit when done)
archpr.exe /a:b /u:12345abcde test.ace
(brute-force attack with "12345abcde" character set; length: from 1 to 5)
archpr.exe /a:m /c:d /m:june???? /sf:june1000 /high test.rar
(mask attack with ""june????" mask; charset: digits; high priority)
archpr.exe /d:english.dic /sm /oem /dontstart test.zip
(dictionary attack; dictionary: "english.dic"; smart mutations; convert words from ANSI to OEM; don't start)
archpr.exe /a:p /p:plain.arj test.arj
(known plaintext attack)
If the an axr-file is passed as a parameter, the program will immediately load settings ignoring the other settings supplied in the command line, except /dontstart, /minimize and /smartexit, and run the attack.