Keka icon indicating copy to clipboard operation
Keka copied to clipboard

How can i unrar password protected .rar file using Terminal

Open AlfredoEscalona opened this issue 2 years ago • 11 comments

hello, How can i unrar password protected .rar file using Terminal like that :

./Keka --client unrar e /Users/alf/player.rar /Users/alf/Extract

the file has password, try using -P switch but dont'n work

AlfredoEscalona avatar Dec 24 '21 17:12 AlfredoEscalona

Try:

./Keka --cli unrar e -p"YOURPASSWORD" /Users/alf/player.rar /Users/alf/Extract

aonez avatar Dec 24 '21 18:12 aonez

Thanks Sir aonez

AlfredoEscalona avatar Dec 24 '21 18:12 AlfredoEscalona

Hello mr aonez I’m sorry to bother you, but I have problems to execute ./Keka --cli unrar e -p"YOURPASSWORD" /Users/alf/player.rar /Users/alf/Extract

from my home directory, the command work fine from keka app directory, but from my home it doesn’t

Can you help me please

Alfredo

AlfredoEscalona avatar Jan 03 '22 16:01 AlfredoEscalona

You can always call it like this:

/Applications/Keka.app/Contents/MacOS/Keka --cli ...

You could also export the Keka path so you can call it just like Keka --cli:

echo export PATH=/Applications/Keka.app/Contents/MacOS:\$PATH >> ~/.bashrc

aonez avatar Jan 03 '22 22:01 aonez

Thanks mr aonez, the second solution is perfect for me, I will try it

Thank you very much

AlfredoEscalona avatar Jan 03 '22 22:01 AlfredoEscalona

hello sr aonez, thanks for your help, i have another question, what happen if my password include special character for example if my password is "}"Kk&i*8PH-399S{YAj{}=XJEWh:AK$7Nr]yWE)_"

keka fails processing command, with the following error

Total errors: 3 sh: -c: line 0: unexpected EOF while looking for matching ``' sh: -c: line 1: syntax error: unexpected end of file sh: -c: line 0: syntax error near unexpected token )' sh: -c: line 0: /Applications/Keka.app/Contents/MacOS/keka --cli unrar e -p"}"Kk&i*8PH-399S{YAj{}=XJEWh:AK$7Nr]yWE)_" /Users/alfredoescalona/Documents/ProbExt/Desktop.rar /Users/alfredoescalona/Documents/ProbExt/Extract'

How can I solve this problem?

thanks for your patience

AlfredoEscalona avatar Jan 04 '22 18:01 AlfredoEscalona

mr aone have a good day, is it possible to use \ as escaping character ? to tell keka that these two strings are the same : ?

"}"Kk&i*8PH-399S{YAj{}=XJEWh:AK$7Nr]yWE)_"

"}"Kk&i*8PH-399S{YAj{}=XJEWh:AK$7Nr]yWE)_"

????????????

thanks for your help

AlfredoEscalona avatar Jan 05 '22 13:01 AlfredoEscalona

Indeed @AlfredoEscalona, you should escape that ". This is not Keka that's failing but that line that is broken.

In that phrase you should escape " and $. You could also use simple quote ' and no escape will be needed in this case.

So:

/Applications/Keka.app/Contents/MacOS/keka --cli unrar e -p"}\"Kk&i*8PH-399S{YAj{}=XJEWh:AK\$7Nr]yWE)_"

Or:

/Applications/Keka.app/Contents/MacOS/keka --cli unrar e -p'}"Kk&i*8PH-399S{YAj{}=XJEWh:AK$7Nr]yWE)_'

aonez avatar Jan 05 '22 14:01 aonez

Please i need some help

hello sir

i'm running this command

/keka --cli unrar e -p”CBGzOPuZ1C%ufu3Qx9%v?(A{MFuDlVUv8Hx” /Users/alfredoescalona/Documents/ProbExt/Desktop.rar /Users/alfredoescalona/Documents/ProbExt/Extract

and my shell return this

zsh: no matches found: -p”CBGzOPuZ1C%ufu3Qx9%v?(A{MFuDlVUv8Hx”

How can I solve this problem?

😐

El mié, 5 ene 2022 a las 9:32, aONe @.***>) escribió:

Indeed @AlfredoEscalona https://github.com/AlfredoEscalona, you should scape that ". This is not Keka that's failing but the command line that does not understand that line.

In that phrase you should scape " and $.

So:

/Applications/Keka.app/Contents/MacOS/keka --cli unrar e -p"}"Kk&i*8PH-399S{YAj{}=XJEWh:AK$7Nr]yWE)_"

— Reply to this email directly, view it on GitHub https://github.com/aonez/Keka/issues/998#issuecomment-1005735883, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP57OWWLJ26KGHR7DKHFUH3UURI7DANCNFSM5KW4YYGQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

AlfredoEscalona avatar Jan 16 '22 00:01 AlfredoEscalona

Use simple quote instead, you will have less trouble, as stated here:

https://github.com/aonez/Keka/issues/998#issuecomment-1005735883

aonez avatar Jan 16 '22 18:01 aonez

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 17 '22 05:04 stale[bot]