skip to Main Content

Mongodb – 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: %sn' % results['total']) for result in results['matches']: if "Authentication partially enabled" not in result['data']: print('IP: {}'.format(result['ip_str'])) ip: str =…

VIEW QUESTION
Back To Top
Search