subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def run_command(self, cmd): """运行命令并返回输出""" try: result = subprocess.run( cmd, shell=True, capture_output=True,- Confidence
- 95% confidence
- Finding
- result = subprocess.run( cmd, shell=True, capture_output=True, text=True, encoding='utf-8' )
