subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if delay_seconds > 0: cmd = f"(sleep {delay_seconds} && {python_exe} {main_script} '{contact}' '{phone_content}' 0) &" subprocess.Popen(cmd, shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) return True else: subprocess.run([python_exe, main_script, contact, phone_content, "0"])- Confidence
- 99% confidence
- Finding
- subprocess.Popen(cmd, shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
