subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if os.name == 'nt': ps_cmd = " ".join(cmd) full_ps_cmd = f"[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; {ps_cmd}" result = subprocess.run( ["powershell", "-Command", full_ps_cmd], capture_output=True, text=True,- Confidence
- 96% confidence
- Finding
- result = subprocess.run( ["powershell", "-Command", full_ps_cmd], capture_output=True, text=True, encodi
