PyRexecd
PyRexecd is a standalone SSH server for Windows.
Features:
- Standalone Win32 app (not a service) that resides in SysTray.
- Supports a single user / pubkey auth only.
- Notifies incoming connections via popup.
- Sends/Receives the clipboard text via stdin/stdout.
- PyPI Project page: https://pypi.python.org/pypi/PyRexecd/
Prerequisites:
- Python 3 - http://www.python.org/
- Paramiko - http://www.paramiko.org/
- PyWin32 - http://sourceforge.net/projects/pywin32/
- cx_Freeze (optional) - https://pypi.python.org/pypi/cx_Freeze
How to Use:
> pip install pyrexecd- Run
PyRexec.pyw.
It generates a new host key and opens a config directory (AppData\Roaming\PyRexecd). - Put your public key into the config dir.
> copy your\id_ed25519.pub authorized_keys - Run
PyRexec.pywto start the server. - Log into the machine via 2200/tcp.
$ ssh -p 2200 windows
Command Line Syntax:
> pyrexecd.exe [-d] [-l logfile] [-s sshdir] [-L addr] [-p port]
[-c cmdexe] [-u username] [-a authkeys] [-h homedir]
ssh_host_key ...
-d: Turns on Debug mode (verbose logging).-l logfile: Log file path (default:pyrexecd.log).-s sshdir: Config directory path. (default:AppData\Roaming\PyRexecd)-L a.b.c.d: Specifies the listen address (default:127.0.0.1).-p port: Specifies the listen port (default:2200).-c cmdexe: cmd.exe path. (default:cmd.exe)-u username: Username.-a authkeys: authorized_keys path. (default:authorized_keys)-h homedir: Home directory path. (default:%UserProfile%)
Special commands:
Certain SSH command is recognized as special commands:
@clipget: Receives the clipboard text from Windows.
$ ssh windows @clipget > clipboard.txt@clipset: Sends the clipboard text to Windows.
$ echo foo | ssh windows @clipset@open,@edit, and@print: Windows shell operation. The target pathname should be given from stdin.
$ echo C:\User\euske\foo.txt | ssh windows @edit
How to Build .exe (requires cx_Freeze):
> pip install cx_Freeze
> python setup_exe.py build
Metadata
Release files for PyRExecd 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyRExecd-0.3.3.tar.gz | 9.4 kB | Without provenance | Details for PyRExecd-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyRExecd-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for PyRExecd-0.3.3-py3-none-any.whl |
Total release size: 19.3 kB
Release files / PyRExecd-0.3.3.tar.gz
| Download URL | PyRExecd-0.3.3.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3140b7984effbf0e9d73c1f876e678ea23e86279994b3e888519da1fbcf30974
|
|
BLAKE2b-256 checksum How to use checksums |
8f84137b2be0145714441e426552d2dfa34e73708d458dcb54a7f7dd8f6fdaf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / PyRExecd-0.3.3-py3-none-any.whl
| Download URL | PyRExecd-0.3.3-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14fbce4cdbc1212953bd7c7e03b6f5869b0fd2b9a50ab6a4aab7c8524f32f23b
|
|
BLAKE2b-256 checksum How to use checksums |
30f7c0f4c90f8c55dc2801861ddffe6d4816704ad6d26b30528cda09873b8c16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for PyRExecd 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.