subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
cmd = [node_bin, mmd_js, "-i", mmd_file, "-o", out_name, "-b", "transparent", "-t", "default"] # mmdc 在工作目录输出 subprocess.run(cmd, cwd=out_dir, env=env, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) finally: os.unlink(mmd_file)- Confidence
- 93% confidence
- Finding
- subprocess.run(cmd, cwd=out_dir, env=env, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
