subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
return str(shim_so) src = Path(tempfile.gettempdir()) / "lo_socket_shim.c" src.write_text(_SHIM_SOURCE) subprocess.run( ["gcc", "-shared", "-fPIC", "-o", str(shim_so), str(src), "-ldl"], check=True, capture_output=True, )- Confidence
- 94% confidence
- Finding
- subprocess.run( ["gcc", "-shared", "-fPIC", "-o", str(shim_so), str(src), "-ldl"], check=True, capture_output=True, )
