A way to change rar/zip hash in bulk?

Status
Not open for further replies.

XCOLVE

Active Member
515
2014
375
1,895
Hi,

I'm looking for a way to change the hash of rar/zip archives in bulk, they are also password protected (same password for all files). I've seen that other users add txt files to pad the file and therefor change the hash, is there a working script out there that anyone know about or are people manually adding files to their archives by hand?
 
5 comments
You can do it with installing unrar to linux

# yum install unrar

or

RHEL/CentOS/Fedora with wget.

After it's installed you can use the rar u commmand'

For example if you want to add a file to 123456.rar

rar u 123456.rar text.txt


*You can write a bash which can auto do the above for you.

I suggest you do the smallest .txt file possible if you do this as your goal is just to change the size a bit.


Just FYI there are another way to do it but it's not verified or bulletproof, you simply have to echo a 0 onto a file

echo 0 >> 123456.rar

But this may damage your file and you won't be able to use it.
 
I suggest you try all methods and make a decision by yourself, as far as I know adding a null value is risky and may damage your file which in the long run will result in angry users who ask you unnecessary questions leading to a waste of time.
 
Status
Not open for further replies.
Back
Top