LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 08-17-2015, 07:46 PM   #1
bluetechnology
LQ Newbie
 
Registered: Aug 2015
Posts: 4

Rep: Reputation: Disabled
Post Archive extraction program with password list option


I am looking for a archive extraction program that has a password list option to where it will go through the list until it finds correct password. This is only for rars from sources that use the same password. Peazip has something similar but does not work properly with giving me errors when extracting multiple selected rars. There are programs like this for windows such as UnRarIt, ExtractNow. These types of programs are very useful when accumulating archives and running through a list of gathered passwords to make entering 1 password at a time more quicker by running through them all. If there is not program as such is there a workaround for this type of function? About the windows programs I tried running them in wine which ran but did not work.

Last edited by bluetechnology; 08-23-2015 at 03:50 PM. Reason: Better Worded Definition
 
Old 08-18-2015, 01:05 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865
The unrar program has the -p switch, which allows you to specify a password, so writing a script for something like that should be trivial.
 
Old 08-20-2015, 12:28 PM   #3
bluetechnology
LQ Newbie
 
Registered: Aug 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Is that only specifying 1 password? I am looking for a way to use a list of passwords. Currently my list is 86 passwords.
 
Old 08-20-2015, 04:14 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865
If you have your password list in a text file you can use a simple script to test one password after the other, a very simple example:
Code:
$PASSWORDS=/path/to/file/with/passwords
for file in *.rar
do
  while read passw
  do
    unrar -p $passw $file
  done < $PASSWORDS
done
Keep in mind that this is just an example to demonstrate how to do something like that, it certainly is in need of refinement.
 
Old 08-20-2015, 04:18 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,456

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
or use "john the ripper"
 
Old 08-21-2015, 11:14 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865
Quote:
Originally Posted by John VV View Post
or use "john the ripper"
John the Ripper is fine if you want to find an unknown password. In this case there is a list of known passwords, but no unknown passwords.
 
Old 08-22-2015, 09:33 PM   #7
bluetechnology
LQ Newbie
 
Registered: Aug 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Does john the ripper extract successfully matched password/rar say if I point it "jonny" to a folder will it find all rars that have passwords and run through a selected password list and automatically extract them?
 
Old 08-23-2015, 05:51 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865
Quote:
Originally Posted by bluetechnology View Post
Does john the ripper extract successfully matched password/rar say if I point it "jonny" to a folder will it find all rars that have passwords and run through a selected password list and automatically extract them?
No, I am not even sure that John the Ripper can crack RAR passwords at all with its inbuilt mechanisms.
 
Old 08-23-2015, 06:54 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,414
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Quote:
Originally Posted by bluetechnology View Post
These types of programs are very useful when accumulating archives and not knowing what pass goes to what rar.
Sure but somehow "I have %{something} I do not know how to access, please help me gain access anyway" doesn't sound like a SFLQ question to me?..
 
Old 08-23-2015, 03:43 PM   #10
bluetechnology
LQ Newbie
 
Registered: Aug 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
I am not sure what you are saying with {something} and SFLQ. Can you elaborate what you are describing? I have the password for each rar I get most of the time. But instead of going through 80+ passwords for each archive it would be quicker to have a program to run through the list and do it that way.

Last edited by bluetechnology; 08-23-2015 at 03:45 PM.
 
Old 08-26-2015, 05:36 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
And a belated close; this sounds suspiciously like not so legal use.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Which is the Best Kmail Archive/Backup Option DJOtaku Linux - General 2 08-20-2015 08:21 AM
CPIO archive with absolute paths- extraction to a different directory? sonichedgehog Linux - Software 3 11-23-2011 10:02 AM
byte code (.byc) archive extraction kasl33 Linux - Software 0 06-23-2011 07:44 PM
Linux zip program's -d -tt option deletes all files from zip archive Arun Gupta Linux - Software 4 04-27-2011 08:06 PM
Multi-part password protected .rar files extraction lx3000 Linux - Software 6 04-13-2006 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration