Closed juushya closed 9 years ago
The purpose of the format is to show IP address, protocol and number (192.168.0.1 :: tcp/80) so your change will change that view to be (1 :: tcp/80) instead.
I think the accurate fix would be:
format=lambda r:XML("%s :: %s/%s" % db.t_hosts[r.f_hosts_id].f_ipaddr, r.f_proto, r.f_number)),
Can you try it and see?
Hi Kurt,
This throws the following error:
<type 'exceptions.AttributeError'> 'NoneType' object has no attribute 'f_ipaddr'
This appears to be fixed with https://github.com/KvasirSecurity/Kvasir/commit/1ca9a5b453fc5395a097ee1a818a278f6c885cdc#diff-e1dd9dddba9757b5282b404e309a2b93R80 so I'm closing this. Let me know if you're seeing anything different.
When I create a new vuln which is not present in the existing vuln db, in the bottom, there are three tabs - Hosts, Exploits and References. After entering details of and saving the new vuln, Kvasir waits for some time and later throws a traceback under the Hosts tab.
Initial traceback is with 'id' field shown below -
..... I figured 'id' can be removed and so can f_ipaddr. I am not sure if removing these will affect any other component / modules. Still getting started on kvasir code base. So please check.