subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
f"Where-Object {{ $_.CommandLine -like '*{profile.replace(chr(92), chr(92)+chr(92))}*' }} | " "ForEach-Object { $_.ProcessId }" ) out = subprocess.check_output( ["powershell", "-NoProfile", "-Command", ps_cmd], text=True, timeout=15, )- Confidence
- 85% confidence
- Finding
- out = subprocess.check_output( ["powershell", "-NoProfile", "-Command", ps_cmd], text=True, timeout=15, )
