Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert Shodan to a normal module #1371

Open
stevendemu opened this issue Mar 28, 2023 · 3 comments
Open

Convert Shodan to a normal module #1371

stevendemu opened this issue Mar 28, 2023 · 3 comments

Comments

@stevendemu
Copy link

stevendemu commented Mar 28, 2023

How can i add my shodan api to theharvester

i have looked online but cant find any manual

Feature Request or Bug or Other
Feature Request | Bug | Other

Describe the feature request or bug or other
A clear and concise description of what the bug, feature request,
or other request is.

To Reproduce
Steps to reproduce the behaviour:

  1. Run tool like this: '...'
  2. See error

Expected behaviour
A clear and concise description of what you expected to happen.

Screenshots
If possible please add screenshots to help explain your problem.

System Information (System that tool is running on):

  • OS: [e.g. Windows10]
  • Version [e.g. 2.7]

Additional context
Add any other context about the problem here.

@NotoriousRebel
Copy link
Collaborator

NotoriousRebel commented Apr 7, 2023

@stevendemu Adding shodan to the api-keys.yaml is all you need to do they may have changed how their API is strucuted as they severely reduced total number of credits like a year ago. Shodan will be able to get subdomains and I guess provide more info once I get a chance to see what is breaking if anything. So let me know as you should just be able to do python3 theHarvester.py -d uber.com -b bing -l 200 --dns-resolve 1.1.1.1,8.8.8.8 --shodan

@davetayl
Copy link

davetayl commented May 4, 2023

Shodan seems broken at the moment.
Getting the following error.

[!] An error occurred with Shodan: 'str' object has no attribute 'items'

@L1ghtn1ng L1ghtn1ng changed the title how to add shodan api on version 4.2.0 Convert Shodan to a normal module Jul 25, 2023
@NotoriousRebel
Copy link
Collaborator

I will be fixing this soon and allowing for shodan to be used as a normal module to query for domains and possibly revise the scanning IPs found. Keep in mind that Shodan has changed their API rate limits and severely reduced credits used for querying IPs which may mean if that module was fixed using theHarvester just once could use up every query credit depending on how many IPs were found. More information will be put in docstrings, the wiki, or the readme, once this is further investigated/clarified.

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

No branches or pull requests

4 participants