subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"""调用 GitCode API""" sep = '&' if '?' in url else '?' cmd = f'curl -s "{url}{sep}access_token={TOKEN}&per_page=100"' result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=10) if result.returncode != 0: return None try:- Confidence
- 97% confidence
- Finding
- result = subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=10)
