Skip to content

My collection to execute os command without using subprocess.Popen.

Notifications You must be signed in to change notification settings

CP04042K/python-code-executing-collection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

python-code-executing-collection

My collection to execute os command without using subprocess.Popen.

Asyncio

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)

webbrowser

import webbrowser

webbrowser.GenericBrowser(['/bin/sh']).open("")

_osx_support

import _osx_support

print(_osx_support._read_output('ls'))

uuid

import uuid

uuid._get_command_stdout("/bin/sh", "-c", "id").read()

imaplib

import imaplib

imaplib.IMAP4_stream("id").open()

venv

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)

About

My collection to execute os command without using subprocess.Popen.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published