You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found it very useful to be able to recursively scan archives/directories/binaries with hunktool, but my purpose was to gather lots of version information.
To do this I hacked together a quick fork of hunktool.py which uses Python's re module to search for the $VER: cookie. It's not complete because it ignores part of the version string, but it was sufficient for my needs.
Is there any interest in having this polished up and made part of hunktool? (or a separate tool specifically for printing version strings).
I really like the new version command and I'd be interested in a pull request from you.
I'd suggest to extend the existing amitools/util/VertTag.py and add something like a find_all() to retrieve all tags. Then the hunktool only needs to call the functions from the amitools package. That's the approach I take for the command line tools.
I've found it very useful to be able to recursively scan archives/directories/binaries with hunktool, but my purpose was to gather lots of version information.
To do this I hacked together a quick fork of hunktool.py which uses Python's
re
module to search for the$VER:
cookie. It's not complete because it ignores part of the version string, but it was sufficient for my needs.Is there any interest in having this polished up and made part of hunktool? (or a separate tool specifically for printing version strings).
You can see my hackfork at: https://github.com/cmsj/amitools/blob/e94cc3dacd8cc1a987101d34be23425a117210ba/amitools/tools/version_hunktool.py
The text was updated successfully, but these errors were encountered: