Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR - Problem with reporting; No html report generated. Please see the readme file for possible solutions #222

Closed
ulises2k opened this issue Apr 13, 2018 · 18 comments

Comments

@ulises2k
Copy link

I have this problem

ERROR - failed to write report
Traceback (most recent call last):
File "/root/qark/qark/modules/report.py", line 199, in writeSection
pre_rendered_html2.find("div", id=str(section[sec] + "-issues-list")).append(new_div_tag_1)
AttributeError: 'NoneType' object has no attribute 'append'
ISSUES - PLUGIN ISSUES
...
INFO - The apk can be found in the /root/qark/qark/build/qark directory
ERROR - Problem with reporting; No html report generated. Please see the readme file for possible solutions.
Goodbye!

last version

The
Command Line:
python ./qarkMain.py --acceptterms ACCEPTTERMS --source 1 --pathtoapk "/tmp/base.apk" --debug 10 --exploit 1 --reportdir $(pwd)"/Report_base.apk"

@nwalsh1995
Copy link
Contributor

Hi @ulises2k, we are actively developing on the v2 branch. Could you try to use that branch and see if your problem is fixed there?

@ulises2k
Copy link
Author

Hello,
I have another bug in v3 branch

root@kali:~/qark# git branch
master

  • v2

root@kali:~/qark# git pull
Already up to date.

root@kali:~/qark/qark# python qark.py
Traceback (most recent call last):
File "qark.py", line 9, in
from qark.apk_builder import APKBuilder
File "/root/qark/qark/qark.py", line 9, in
from qark.apk_builder import APKBuilder
ImportError: No module named apk_builder
root@kali:~/qark/qark# pip install apk_builder
Collecting apk_builder
Could not find a version that satisfies the requirement apk_builder (from versions: )
No matching distribution found for apk_builder

@nwalsh1995
Copy link
Contributor

Please install with pip install . and then running with qark

@guadaran
Copy link

Hi @nwalsh1995,

Same problem here:

iMac-6:qark evariste$ clear
iMac-6:qark evariste$ python qark.py
Traceback (most recent call last):
  File "qark.py", line 11, in <module>
    from qark.apk_builder import APKBuilder
  File "/Users/macuser/Documents/qark/qark/qark.py", line 11, in <module>
    from qark.apk_builder import APKBuilder
ImportError: No module named apk_builder

I already installed with pip install .

Branch: V2

@nwalsh-lnk
Copy link
Contributor

We have just pushed a new version of QARK that solves a lot of problems and enhances the code.

As a result we will be closing out all tickets for the older version since we no longer support it. If this issue persists in the new version please create a new ticket.

@aeguy
Copy link

aeguy commented Nov 21, 2018

screenshot from 2018-11-22 01-37-18

master, im very confuse about this error. how i can fix it ? tahnkyou very much master.

@nwalsh1995
Copy link
Contributor

@aeguy, you are running the program incorrectly after installation. Please look at the updated instructions on the GitHub page.

~ pip install qark
~ qark --help

@Ambu22
Copy link

Ambu22 commented Nov 27, 2018

Hi @nwalsh , I have succesfully installed qark requirements as attached.
qark_req

But , I am facing the same 'ImportError: No module named apk_builder' issue. Please see the attachment.
qark_error

Kindly help me resolve this issue :(

@nwalsh1995
Copy link
Contributor

@Ambu22 you are running the program incorrectly after installation. Please look at the updated instructions on the GitHub page. Note that you just run qark instead of python qark.py

~ pip install -r requirements.txt
~ pip install .
~ qark --help

@gabyavra
Copy link

Done that,
then it says bash: qark: command not found

@gabyavra
Copy link

Worked with pip3 install qark on Mac OS. Worked the same on Kali linux

@Muniy90
Copy link

Muniy90 commented Dec 10, 2018

traceback

Traceback error.... somebody pls help me with the issue

@nwalsh1995
Copy link
Contributor

@Muniy90 please run qark just by running qark from the command line after installation. you don't need to do anything with the python files.

pip install qark
qark --help

@Clara10101
Copy link

I have the same problem, when I run command: qark --help, I get qark: command not found.
virtualbox_kali-linux-2018 3-vbox-amd64_16_12_2018_15_27_32

@nwalsh1995
Copy link
Contributor

@xxxktrz I bet the ~/.local/lib/python2.7/bin/ path is not added to your PATH environment variable to find binaries.

Can you try to execute it from there and see if it works?

@agnityhealthcare
Copy link

agnityhealthcare commented Dec 18, 2018

I am able to run Qark. for that I have to add paths to the bottom of this file:

/home/aman/.bashrc

I don't know which worked as I am very novice to Ubuntu. So I added whole list of paths. It looks something like this:

#My Paths

export PATH=$PATH:~/home/aman/.local/lib/python2.7/site-packages/qark/
export PATH=$PATH:~/home/aman/.local/lib/python2.7/site-packages/qark
export PATH=$PATH:~/home/aman/.local/lib/python2.7/site-packages/
export PATH=$PATH:~/home/aman/.local/lib/python2.7/site-packages
export PATH=$PATH:~/home/aman/.local/lib/python2.7/
export PATH=$PATH:~/home/aman/.local/lib/python2.7
export PATH=$PATH:/home/aman/.local/lib/python2.7/site-packages/qark/
export PATH=$PATH:/home/aman/.local/lib/python2.7/site-packages/qark
export PATH=$PATH:/home/aman/.local/lib/python2.7/site-packages/
export PATH=$PATH:/home/aman/.local/lib/python2.7/site-packages
export PATH=$PATH:/home/aman/.local/lib/python2.7/
export PATH=$PATH:/home/aman/.local/lib/python2.7


export PATH=$PATH:~/aman/.local/lib/python2.7/site-packages/qark/
export PATH=$PATH:~/aman/.local/lib/python2.7/site-packages/qark
export PATH=$PATH:~/aman/.local/lib/python2.7/site-packages/
export PATH=$PATH:~/aman/.local/lib/python2.7/site-packages
export PATH=$PATH:~/aman/.local/lib/python2.7/
export PATH=$PATH:~/aman/.local/lib/python2.7
export PATH=$PATH:/aman/.local/lib/python2.7/site-packages/qark/
export PATH=$PATH:/aman/.local/lib/python2.7/site-packages/qark
export PATH=$PATH:/aman/.local/lib/python2.7/site-packages/
export PATH=$PATH:/aman/.local/lib/python2.7/site-packages
export PATH=$PATH:/aman/.local/lib/python2.7/
export PATH=$PATH:/aman/.local/lib/python2.7


export PATH=$PATH:~/.local/lib/python2.7/site-packages/qark/
export PATH=$PATH:~/.local/lib/python2.7/site-packages/qark
export PATH=$PATH:~/.local/lib/python2.7/site-packages/
export PATH=$PATH:~/.local/lib/python2.7/site-packages
export PATH=$PATH:~/.local/lib/python2.7/
export PATH=$PATH:~/.local/lib/python2.7
export PATH=$PATH:/.local/lib/python2.7/site-packages/qark/
export PATH=$PATH:/.local/lib/python2.7/site-packages/qark
export PATH=$PATH:/.local/lib/python2.7/site-packages/
export PATH=$PATH:/.local/lib/python2.7/site-packages
export PATH=$PATH:/.local/lib/python2.7/
export PATH=$PATH:/.local/lib/python2.7

After adding these lines, restart your pc and then run qark. It will run..

@nwalsh1995
Copy link
Contributor

@agnityhealthcare yeah that should include everything. If you use a virtualenv it would do this for you (with some added complexity)

pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install qark
qark --help

@joseph-acc
Copy link

Worked with pip3 install qark on Mac OS. Worked the same on Kali linux

This worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests