Skip to content

Wrong Parsing of Service Name in Shodan Plugin #31

Description

@Badro1859

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions