-
Notifications
You must be signed in to change notification settings - Fork 630
Open
Description
Hello,
So I'm currently following the tutorial to install shodan python library on my debian environnement
but I got this error on loop : https://prnt.sc/u0XEK38_jddX
By using this code that was on the installation guide:
#!/usr/bin/env python3
import shodan
SHODAN_API_KEY = "4l*****"
api = shodan.Shodan(SHODAN_API_KEY)
# Wrap the request in a try/ except block to catch errors
try:
# Search Shodan
results = api.search('apache')
# Show the results
print('Results found: {}'.format(results['total']))
for result in results['matches']:
print('IP: {}'.format(result['ip_str']))
print(result['data'])
print('')
except shodan.APIError as e:
print('Error: {}'.format(e))#!/usr/bin/env python3
import shodan
SHODAN_API_KEY = "4lzMjjaCrDEA87QigpI7bKOiYso35Qac"
api = shodan.Shodan(SHODAN_API_KEY)
# Wrap the request in a try/ except block to catch errors
try:
# Search Shodan
results = api.search('apache')
# Show the results
print('Results found: {}'.format(results['total']))
for result in results['matches']:
print('IP: {}'.format(result['ip_str']))
print(result['data'])
print('')
except shodan.APIError as e:
print('Error: {}'.format(e))
My VM is connected to the internet
Shodan is currently in a python environnement with full access
I used the free account just to discover shodan, I do not plan to use advanced feature on it...
Metadata
Metadata
Assignees
Labels
No labels