10-31-2017, 04:02 PM
(This post was last modified: 10-31-2017, 04:05 PM by MrMeeseeks.)
You could easily write a bash script. Do something along the lines of:
Just add each kind of office document that you want to search in the find options, then pipe it all over to xargs office2john.py
Or pass it to a case statement so you can execute the proper application e.g. 7z2john rar2john zip2john etc.
Hope this helps get you in the right direction.
Code:
find ~/officedocs -name '*.pdf' -or -name '*.doc' -or -name '*.7z' | xargs office2john.py ARG ARG
Just add each kind of office document that you want to search in the find options, then pipe it all over to xargs office2john.py
Or pass it to a case statement so you can execute the proper application e.g. 7z2john rar2john zip2john etc.
Hope this helps get you in the right direction.