Extract a rar file with a password that contains special characters

23,282

What matters is how you pass your password to the unrar program in terminal. For special characters you should use \ (the escape character) before them.

For example, if your password is a" \?

what you should type is a\"\ \\\?

See this Wikipedia article on escape character

Share:
23,282

Related videos on Youtube

ᴜsᴇʀ
Author by

ᴜsᴇʀ

Updated on September 18, 2022

Comments

  • ᴜsᴇʀ
    ᴜsᴇʀ over 1 year

    How can I extract a rar file with a password that contains special characters like ', ", `, /, \, ^, (space), !, ?, {, }, [, ], $, &, %, *, ~, :, ,, <, >, etc.

    Here is an example of PASSWORD :

    iuPx?tqCN'b.?LZ$=EL59L3?L/fPYii)caC'u8gYGPRy2mKCqwhzAa'RmKH} &Sf.4V>Q@z+K[XXux6$;iCixxcY/J$c,G6Xb#\SAf',KrM Z{CZ&_z^_5)W3xgGV{wU[v~sWf!]ciLLXvKm^>DC<}~]uypo}oAE{*hbYied',u5YKHS( RNoNiRvCHR{{QniDE[_AWw2{79s%SrdQE& &74(T^LjBk#\Q9ZT@48'-bE(q;pwYXw<g"dHv&DfBf2nrj;;UwrB};J,U%yg64P<$w@8[HXxhY~_o-2y;wv)in;
    

    I have already tried with these commands:

    unrar x -pPASSWORD FILE.rar
    unrar x -p"PASSWORD" FILE.rar
    7z x FILE.rar -pPASSWORD
    7z x FILE.rar -p"PASSWORD"
    

    but there's nothing to do.

    I also tried it with File Roller and it give me this error:

    An error occurred while loading the archive.

    Also PeaZip give me an error:

    ' quote character cannot be used by PeaZip GUI in passwords under current system

    How can I extract this rar file?

    • Byte Commander
      Byte Commander about 8 years
      So you have an encrypted RAR archive that has a very long password containing special characters, but you know the real password, right? It's not that you want to crack or brute-force the archive?
    • ᴜsᴇʀ
      ᴜsᴇʀ about 8 years
      @ByteCommander Yes, I know the password!
    • muru
      muru about 8 years
      If you don't use the -p option with 7z, it will prompt for the password. What happens if you enter the password then?
    • ᴜsᴇʀ
      ᴜsᴇʀ about 8 years
      @muru It gives me a Segmentation fault.
    • ᴜsᴇʀ
      ᴜsᴇʀ about 8 years
      @muru But it works with unrar x FILE.rar!
    • muru
      muru about 8 years
      Time to file bug reports, then.