From 62ed05d0181b6a5e43b55a642de5b469dd9ad109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nagy=20=C3=81bel?= Date: Tue, 30 Dec 2025 11:07:22 +0100 Subject: [PATCH] fix remote code execution --- scripts/parse_data_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/parse_data_api.py b/scripts/parse_data_api.py index 9280878..72419f3 100644 --- a/scripts/parse_data_api.py +++ b/scripts/parse_data_api.py @@ -1,3 +1,4 @@ +import json import os import re import time @@ -185,7 +186,7 @@ def get_with_cursor(ep, s, counter=0): res = None time.sleep(0.8) print(colored(ep.endpoint.format(ep.LIMIT,s), "green")) - return eval(res.content.decode("utf-8")) + return json.loads(res.content.decode("utf-8")) # Keep track of parsed slots to start new file if too many entries slots_parsed = 0