Skip to content

Q: Where can I find Volume number, like "Details: RAR 5, volume 483" #16

Description

@sanderjo

Short question:

How can retrieve the Volume number of a specific rar file, like Details: RAR 5, volume 483 as reported by "rar l <rarfile".
I need this for obfuscated rar files of which the file name is unknown.

I can't find it in https://python-unrar.readthedocs.io/en/v0.3/rarfile.html

EDIT:
I checked the unrar source code, and I think this line in list.cpp prints it:

mprintf(St(MVolumeNumber),Arc.VolNumber+1);

So official name would then be VolNumber.

$ unrar l blabla-nothinghere.rar

UNRAR 5.71 freeware      Copyright (c) 1993-2019 Alexander Roshal

Archive: blabla-nothinghere.rar
Details: RAR 5, volume 483

 Attributes      Size     Date    Time   Name
----------- ---------  ---------- -----  ----
 -rw-r--r-- 524288000  2019-07-29 20:28  500MB.bin
----------- ---------  ---------- -----  ----
                    0                    0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions