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

Latest commit breaks get_results #16

Open
Tendrid opened this issue Jun 25, 2017 · 2 comments
Open

Latest commit breaks get_results #16

Tendrid opened this issue Jun 25, 2017 · 2 comments

Comments

@Tendrid
Copy link

Tendrid commented Jun 25, 2017

e53f81b#diff-6fe303a22197e4810951633f15c7bfc9

get_results expects self.__task_report_id to be set, but that doesnt happen unless you launch a scan (launch_scan)

@LavernaSec
Copy link
Contributor

I know this is a bit late, but I hit the same issue and submitted a pull request.

@thinksabin
Copy link

thinksabin commented May 30, 2019

did anyone resolved this issue?
@LavernaSec i tried your forked version and did easy_install. I'm facing issue as below:

Traceback (most recent call last):
File "/Users/sabinranjit/PycharmProjects/openvas-stuffs/scanopenvas.py", line 45, in
generate_report(scan_id)
File "/Users/sabinranjit/PycharmProjects/openvas-stuffs/scanopenvas.py", line 37, in generate_report
openvas_results = scanner.get_results(scan_id)
File "build/bdist.macosx-10.6-intel/egg/openvas_lib/init.py", line 961, in get_results
File "build/bdist.macosx-10.6-intel/egg/openvas_lib/init.py", line 90, in report_parser_from_text
TypeError: Expected str, got '<type 'unicode'>' instead

my test code is a follow:
def generate_report(scan_id): try: print(scan_id) scanner = VulnscanManager(HOST, USER, PASSWORD) openvas_results = scanner.get_results(scan_id) print(openvas_results) except VulnscanException as e: print("Error:") print(e)

can you help me with any possible solution?

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

3 participants