infobyte / faraday

Open Source Vulnerability Management Platform
https://www.faradaysec.com
GNU General Public License v3.0
4.87k stars 893 forks source link

API question #391

Closed s0i37 closed 4 years ago

s0i37 commented 4 years ago

Hello. Why I can't iterate for each host/service/vuln?

for host in models.get_hosts(workspace):
  for service in host.getServices():
    for vuln in service.getVulns():
      ...

host.getServices() returns all services instead of services of current host. And the same for service.getVulns(). Is it normally?

llazzaro commented 4 years ago

Hi,

We can confirm that host.getServices() is returning all services, we created an internal dev ticket to fix this bug. We will let you know when this bug is fixed.

Regards, Leonardo

llazzaro commented 4 years ago

Hi!

We have moved the client to https://github.com/infobyte/faraday-client.

The fix was done here https://github.com/infobyte/faraday-client/commit/54d9a3d115878dbf1cb6c7fc76ab39be69d74f2d#diff-7d898baf64dfa67a036e7e6e558ed90c

Thanks!