linkedin / linkedin/qark

Unable to use apk_builder

Open
#334 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.4k
Forks
663
PR merge metrics
No merged PRs in 30d

Description

Error running command %s
Traceback (most recent call last):
File "/root/.local/lib/python2.7/site-packages/qark/apk_builder.py", line 115, in _build_apk
subprocess.call(shlex.split(command))
File "/usr/lib/python2.7/subprocess.py", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
Traceback (most recent call last):
File "/root/.local/bin/qark", line 10, in
sys.exit(cli())
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/root/.local/lib/python2.7/site-packages/qark/qark.py", line 102, in cli
exploit_builder.build()
File "/root/.local/lib/python2.7/site-packages/qark/apk_builder.py", line 76, in build
self._build_apk()
File "/root/.local/lib/python2.7/site-packages/qark/apk_builder.py", line 115, in _build_apk
subprocess.call(shlex.split(command))
File "/usr/lib/python2.7/subprocess.py", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with qark/apk_builder.py, especially _build_apk around the subprocess.call at line 115, and trace the qark CLI entry point that invokes exploit_builder.build(). Reproduce the command in an environment with the reported Python 2.7 setup and inspect the permission failure; done means apk_builder completes without the reported OSError.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, python
Domain
security, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.