Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while True:
- try:
- results = api.search(item)
- print("Total Machines ={}".format(results['total']))
- for x in results['matches']:
- myFind.append(str(x['ip_str'])
- except Exception as e:
- print(e)
- # I've also tried :
- while True:
- try:
- results = api.search(item)
- print("Total Machines ={}".format(results['total']))
- for x in results['matches']:
- myFind.append(str(x['ip_str'])
- except:
- print("Error")
- Error Message reads:
- File "./Shodan_Output.py", line 24
- except Exception as e:
- ^
- SyntaxError: invalid syntax
Advertisement
Add Comment
Please, Sign In to add comment