Questions tagged [shodan]

Shodan is a search engine that lets you find specific computers using a variety of filters

Shodan is a library that allows for port scanning of directories and banner searches. It has been ported to Ruby, Perl and Python. Shodan API documentation is available on the Web.

49 questions
1
vote
2 answers

Perl Most effective way for scanning for a particular web server http banner?

So basically I'm trying to scan web servers that run for example version apache 2.2.4 on their web server, what's the best way of doing this? Scan for IP's range from blah blah to blah blah, with port 80 open + web server enabled then just make a…
user3258734
  • 143
  • 1
  • 2
  • 8
0
votes
0 answers

shodan 0 results saved problem. How do I resolve this?

I just started learning bug bounty and I am facing a problem please correct me Its about shodan 0 results saved problem what is that happening to me. I Did this it is on their website input: ┌──(kali㉿kali)-[~/Desktop] └─$ shodan download --limit 200…
0
votes
0 answers

500 Error using Shodan with PowerShell. Any ideas how to mitigate the issue?

I'm trying to run the script below to scan open ports from a list of IP Addresses and add the ports to Hudu but I'm encountering a 500 error which will be attached below. # Setup Hudu $HuduAPIKey = HuduAPIKey $BaseUrl = HuduURL New-HuduAPIKey…
0
votes
0 answers

How to get Shodan API to return results?

I'm using a search filter in the shodan api endpoint /shodan/host/search. The problem is that the API returns a response indicating that there was a match for the filter but the matches array is empty as you can see in the screenshot. The…
n00b
  • 13
  • 5
0
votes
0 answers

Error API Shodan Error: Access denied (403 Forbidden)

When i try to scan an ip, always throes the same error, (Error: Access denied (403 Forbidden)) def getShodan(ip): print("-------Shodan-------") try: api = shodan.Shodan("") info = api.host(ip) return (""" …
0
votes
0 answers

Shodan scan results via API

I'm trying to download Shodan scan results via Python api but I'm not able to retrieve any values. I have following code: api=Shodan('API_KEY') api.scan(XXXX/24) api.scan_status('SCAN_ID') api.search('scan:SCAN_ID') despite scan status showing as…
Swaqqo
  • 1
  • 3
0
votes
1 answer

How to Install Shodan CLI into Google Cloud Shell?

I'm unable to use Shodan CLI. Steps: I have tried to follow the steps here: Shodan CLI - Official Page Even by running: easy_install shodan I have also tried to: pip install shodan And it does install but it still don't works, the thing is that I…
Santiago
  • 114
  • 10
0
votes
2 answers

Why does my code not write the data it receives from the build_info function to the json file?

api = shodan.Shodan(api_key) query = 'MongoDB Server Information \n{ "process": "mongod" port:27017' build_info_arr = [] try: results = api.search(query) print('Total Results: %s\n' % results['total']) for result in…
0
votes
1 answer

Is it possible to filter HTTP Headers in Shodan?

The Shodan filter reference only shows a way to search using the hash of all the HTTP headers (http.headers_hash) in a banner. Is there some way to search for specific header fields or values?
edddd
  • 433
  • 3
  • 17
0
votes
1 answer

how to writing a script in shodan (python)

I need help please write a script for Shodan. I have a lot of IP addresses on the monitor. I want to write a script that output from the API monitor: All the vulnerabilities and IP addresses that are vulnerable to the CSV file Thanks
niro
  • 1
0
votes
1 answer

Shodan scan submit specific protocol request

trying to learn Shodan's CLI and got a newbie question. Is there any way to use Shodan's CLI to submit a scan to an IP on a specific port? Or shodan just keeps scanning randomly the internet until the port is selected to be scanned? What I'm trying…
shinn
  • 1
0
votes
1 answer

Search for version range in Shodan

I am trying to do a version range search within Shodan as a one-liner but having trouble doing so. Not eve sure if that is possible, but basically, I am able to get search results if I did it 2 times as follows: software 1.5.* software 1.6.* Is it…
dissidia
  • 1,531
  • 3
  • 23
  • 53
0
votes
1 answer

How Do You Access Scan Results With Shodan's API?

I have a Shodan account and am trying to get it to scan an IP and report the results. Unfortunately, the method reported in the documentation for doing this doesn't seem to work. Here's what I've been doing, using the Shodan CLI. All of these…
Jeff D.
  • 87
  • 2
  • 6
0
votes
2 answers

Shodan - Python Syntax to use "Info" Tag

So I'm currently working on a script using Shodan in Python using import shodan. The documentation around isn't the best so id thought I'd bring my issue here. Using the Shodan CLI there is a command known as Shodan Info which displays the number of…
Verudux
  • 27
  • 5
0
votes
1 answer

How much searches can we do in shodan and after what time the API recharges?

I tried googling about shodan rate limit but couldnt get any good data on how much search can we do and after what time it recharges. Like in github i have 30 requests and after some time it when i finished doing 30 requests it recharges after some…
Machine Yadav
  • 196
  • 3
  • 13