{"categories":[{"label":"Networking","url":"https://skillfed.io/packages/category/system-networking/2"}],"enrichment":{"capability":"Runs commands on remote Windows hosts via SMB/RPC without requiring local binaries or a specific operating system, using Python to replicate PsExec functionality.","skillfed_tags":["windows-administration","remote-execution","smb-protocol"],"use_cases":["Automate administrative tasks on remote Windows servers from a Python script running on any OS.","Deploy or execute batch jobs on Windows hosts without installing PsExec or managing separate binaries.","Run diagnostics or remediation commands on multiple Windows machines as part of a larger orchestration workflow.","Execute commands under specific user accounts or the SYSTEM account for privilege-level testing or service management.","Capture stdout and stderr from remote processes for logging or real-time monitoring in a centralized Python application."],"what_it_does":"pypsexec is a Python library that executes commands on remote Windows hosts using SMB and RPC protocols, mimicking the behavior of the PsExec tool. It works cross-platform\u2014you can run it from Linux, macOS, or Windows\u2014and does not require PsExec binaries to be installed on the local machine. The library handles the full lifecycle: establishing an SMB connection, copying a PAExec binary to the remote ADMIN$ share, creating a Windows service to run the binary, piping commands and capturing output, and cleaning up afterward.\n\nThe package supports running processes as specific users (local, domain, or SYSTEM), interactive sessions, custom process priorities, timeouts, stdin input, and processor affinity. By default it encrypts data in transit using SMB encryption, though older Windows versions (7, Server 2008, Server 2008 R2) do not support this and fall back to XOR scrambling. The main runtime dependency is smbprotocol; Kerberos authentication is optional and requires additional system libraries.","worth_installing":"Yes, if you need to run commands on remote Windows hosts from Python and can meet the prerequisites (SMB access, admin credentials, appropriate UAC configuration). The low install friction and permissive license make it straightforward to add. However, note that the package has not been updated since 2021; if you require active maintenance or support for the latest Windows or Python versions, verify compatibility first or consider whether an actively maintained alternative exists."},"id":"pypsexec","links":{"html":"https://skillfed.io/packages/pypsexec","md":"https://skillfed.io/packages/pypsexec.md","pypi":"https://pypi.org/project/pypsexec/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2021-10-21","license_spdx":null,"license_treatment":"permissive","name":"pypsexec","python_support":"supports_current","summary":"Run commands on a remote Windows host using SMB/RPC"},"popularity":{"monthly_downloads":177505,"position":10211,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.0"}
