LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 06: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 02:50 PM. Reason: Better Worded Definition
 
Old 08-18-2015, 12:05 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 11:28 AM   #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, 03:14 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 03:18 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

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

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 08: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, 04:51 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 05:54 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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, 02: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 02:45 PM.
 
Old 08-26-2015, 04:36 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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


Closed Thread



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 07:21 AM
CPIO archive with absolute paths- extraction to a different directory? sonichedgehog Linux - Software 3 11-23-2011 09:02 AM
byte code (.byc) archive extraction kasl33 Linux - Software 0 06-23-2011 06:44 PM
Linux zip program's -d -tt option deletes all files from zip archive Arun Gupta Linux - Software 4 04-27-2011 07:06 PM
Multi-part password protected .rar files extraction lx3000 Linux - Software 6 04-13-2006 09:02 AM

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

All times are GMT -5. The time now is 11:40 PM.

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
Open Source Consulting | Domain Registration