Open rgmz opened 4 days ago
@joeleonjr might be interested.
My sense is this is not super common, but if it's important to support these situations, then I would suggest the following change:
In apk.go
, if there is no resources.arsc
file, then we skip scanning the resources.arsc
file for secrets, treat *.xml
files as plaintext (even though most will be encoded) and then process *.dex
and all other file types as normal.
As an alt: we could add a third check in the isAPKFile()
function in handlers.go
and specifically search for resources.arsc
. If it's not found, then the file would be treated as n zip
. If we pull the *.dex
logic out of the apk.go
handler and make a generic dex.go
handler, then any apk
without the resources.arsc
file being treated like a zip
would still benefit from our best-effort processing.
Both get at the same result.
What do you all think?
I've encountered an APK that does not include a
resources.asrc
file. It's unclear whether this is aberrant or a special type of.apk
that should be account for (ignored?).The APK only contains the following files: