Open hikir1 opened 4 months ago
The error message you post -- PermissionError: [Errno 13] Permission denied: 'apktool'
-- seems to indicate a permission error when running apktool
, and not a problem with the command not existing.
Is it possible that what was encountered here was a permission error?
I just tried recreating with the python:3.7
docker image and am unable to -- it skips ApkUnpacker
fine:
$ docker run -it python:3.7 bash
...
root@7217bfa0e56f:/# pip install ofrak
...
root@7217bfa0e56f:/# ofrak gui -x
[ ofrak_cli.py: 173] No disassembler backend specified, so no disassembly will be possible
[ofrak_context.py: 221] Skipped registering the following components due to missing dependencies: ApkPacker, ApkUnpacker, BinwalkAnalyzer, CpioPacker, CpioUnpacker, GzipPacker, GzipUnpacker, IhexAnalyzer, IhexPacker, IhexUnpacker, Jffs2Packer, Jffs2Unpacker, LzoPacker, LzoUnpacker, RarUnpacker, SevenZUnpacker, SevenzPacker, SquashfsPacker, SquashfsUnpacker, UbiAnalyzer, UbiIdentifier, UbiPacker, UbiUnpacker, UbifsAnalyzer, UbifsIdentifier, UbifsPacker, UbifsUnpacker, ZipPacker, ZstdPacker, ZstdUnpacker. Run `python3 -m ofrak deps --missing-only` for more details.
GUI is being served on http://127.0.0.1:8080/
It looks like their was a directory owned by another user on my PATH that I don't have access to. Perhaps ofrak could catch permission errors when searching for dependencies and output a warning?
@hikir1, is this issue addressed with #432 and #433? Is there any remaining work?
The test isn't working for some reason and I haven't had much time to figure out why.
Ofrak crashes when invoked with
-x
and apktool is missing. It's method for checking for the existence of apktool involves calling it, which fails and leads to the error:Solution: check if apktool is in PATH
To reproduce, run
ofrak gui -x
without apktool installed.Stack trace: