

See http://dictionary.reference.com/search? ... roprietarydR0PS wrote:?????Code: Select all
propriatary archive format

looks like whether it can be decrypted depends on the strength of the password used to encrypt it. If it's a newer archive, i do wonder whether you could use AES decryption crackers, if available, instead of a winrar-oriented password extractor.Wikipedia wrote: It features strong encryption capabilities. Older versions of the file format used a proprietary algorithm; newer versions use the AES encryption algorithm, which is considered very strong by today's standards. The only known ways to recover an encrypted file are via dictionary or brute force attacks, which are usually infeasible with non-dictionary passphrases starting from 8 characters.

And why not VMware, QEMU, or even, as was previously suggested, WINE? Adding an extra HD and installing W2K for such app seems a bit overkill.alex.blackbit wrote:i have already read the wikipedia article, and yes, it is indeed very interesting.
i just wonder why nobody already wrote a program in the style of john the ripper or maybe even a plugin for john itself to support decrypting such file formats.
i mean this more generally, not really focused on just the rar... there is zip, pdf, some m$ stuff and lots of others that can be password protected and attacked in some way.
as least it should be possible to write such software, right? this is of course nothing that is limited to run on windows in the means of OS architecture.
okay, it is maybe not possible to decrypt long passwords, but if there is no software, even a password of length 2 cannot be decrypted.
i just found it quite strange that i have to add a hdd to my machine, install windows on it (a beta build 2128 of w2k that was free and timebombed) to run a password cracker for such file formats.
i am not a genius when it comes to programming, otherwise i would write such thing on my own...


You should be able to use the same status condition, tweaking a bit that same script. Something in the lines of:erik258 wrote:unrar x -p<password> archive.rar will attempt to unarchive archive.rar using password <password>
it also returns 3 if the password's bad, 0 for success. so here's what i did.
for i in `seq 1 100`; do printf "file " >> file; done;
rar a -pcabbage file.rar file
rm file
for i in `cat /usr/share/dict/cracklib-small `; do rar x -p$i file.rar > /dev/null 2>&1;if [ $? -eq 0 ]; then echo "Password was $i."; else printf "$i"; fi; done
it's taking a while to get through the a's but I expect it to say "password was cabbage" when it gets to cabbage which I verified was in the list of words.
now if someone had an idea of how I could make it so that it could gracefully quit when it was done...
Code: Select all
STATUS=1 #any non zero number will do
for i in `cat /usr/share/dict/cracklib-small `
do
while $STATUS
rar x -p$i file.rar > /dev/null 2>&1
STATUS=$?
if [ $STATUS -eq 0 ]
then
echo "Password was $i."
exit $STATUS
else
printf "$i"
fi
done
done
exit $STATUS


or maybe one of them tried, it, found it didnt work and could of saved me whats going to be hours of waiting.....
http://forums.gentoo.org/viewtopic-t-525.html1.- Use common sense...
11.- Illegal activites...such as cracking software, breaking into web sites, etc
You were not speaking about "how to use johntheripper", which can be used for lots of -legal- things.viperlin wrote:ah right, i figured it would be under software discussion since johntheripper is in portage...
oh well, *zips mouth*


