diff --git a/bazaar_query.py b/bazaar_query.py old mode 100644 new mode 100755 index 7758192..949c337 --- a/bazaar_query.py +++ b/bazaar_query.py @@ -18,15 +18,19 @@ args = parser.parse_args() + if(args.type == "tag"): data = { 'query': 'get_taginfo', 'tag': ''+args.query+'', + 'limit': '1000', } else: data = { 'query': 'get_siginfo', 'signature': ''+args.query+'', + #tmp: limit 500, file_type exe!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11 + 'limit': '1000', } response = requests.post('https://mb-api.abuse.ch/api/v1/', data=data, timeout=15) @@ -36,4 +40,4 @@ query = ".data[]." + args.field json_response = jq(query).transform(text=json_response, text_output=True) -print(json_response) \ No newline at end of file +print(json_response)