subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# Use CREATE_NO_WINDOW (0x08000000). # Do NOT use DETACHED_PROCESS (0x00000008) as they conflict and can cause windows to pop up. CREATE_NO_WINDOW = getattr(subprocess, 'CREATE_NO_WINDOW', 0x08000000) subprocess.Popen( [executable] + cmd_list[1:], creationflags=CREATE_NO_WINDOW, stdout=subprocess.DEVNULL,- Confidence
- 92% confidence
- Finding
- subprocess.Popen( [executable] + cmd_list[1:], creationflags=CREATE_NO_WINDOW, stdout=subprocess.DEVNULL, stderr=subprocess.
