faraday_plugins
faraday_plugins copied to clipboard
Wrong Parsing of Service Name in Shodan Plugin
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