subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def run_osascript(lines: List[str]) -> str: proc = subprocess.run( ["osascript", *sum([["-e", line] for line in lines], [])], check=True, capture_output=True,- Confidence
- 95% confidence
- Finding
- proc = subprocess.run( ["osascript", *sum([["-e", line] for line in lines], [])], check=True, capture_output=True, text=True, )
