Guest User

Untitled

a guest
Mar 10th, 2019
3,985
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import shodan
  2.  
  3. SHODAN_API_KEY = "ZInUV2niG7iKGxJBz9buYLc78qKxG5Mq"
  4.  
  5. api = shodan.Shodan(SHODAN_API_KEY)
  6.  
  7. try:
  8. results = api.search('GNU rsp/1.0')
  9.  
  10. print('Results found: {}'.format(results['total']))
  11. for result in results['matches']:
  12. print('IP: {}'.format(result['ip_str']))
  13. except shodan.APIError:
  14. print("Erreur API")
Advertisement
Add Comment
Please, Sign In to add comment