subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
command_ms = None command_start = time.perf_counter() try: proc = subprocess.run(command, check=False, env=env, timeout=args.command_timeout) command_ms = int((time.perf_counter() - command_start) * 1000) except FileNotFoundError: msg = f"Command not found: {command[0]}"- Confidence
- 93% confidence
- Finding
- proc = subprocess.run(command, check=False, env=env, timeout=args.command_timeout)
