subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def windows_command(command: str) -> str: """Run a PowerShell or cmd command.""" result = subprocess.run( ["powershell", "-Command", command], capture_output=True, text=True- Confidence
- 99% confidence
- Finding
- result = subprocess.run( ["powershell", "-Command", command], capture_output=True, text=True )
