subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
url = f"http://localhost:{port}/{filename}" # 后台启动 python -m http.server,30 秒后自动退出 subprocess.Popen( ["python3", "-m", "http.server", str(port), "--directory", serve_dir], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,- Confidence
- 89% confidence
- Finding
- subprocess.Popen( ["python3", "-m", "http.server", str(port), "--directory", serve_dir], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, )
