faraday_plugins icon indicating copy to clipboard operation
faraday_plugins copied to clipboard

Wrong Parsing of Service Name in Shodan Plugin

Open Badro1859 opened this issue 1 year ago • 0 comments

When initiating a scan using the Shodan plugin, it sets the default service as 'http' for all hosts. This issue is found on line 72 in "plugins/repo/shodan/plugin.py": s_id = self.createAndAddServiceToHost(h_id, "http", protocol=transport, ports=port)

To fix this, we can replace it with: service = vuln_dict.get('_shodan').get('module') s_id = self.createAndAddServiceToHost(h_id, service, protocol=transport, ports=port)

This change will dynamically set the service name based on the Shodan module.

Thank you

Badro1859 avatar Nov 18 '24 07:11 Badro1859