Skip to main content

:pineapple: pyncat :cat2:

A simple, stateful code execution server for Python, inspired by ncat.

Warning

pyncat will execute whatever you throw at it!

Be sure to sandbox your execution environment if it will be exposed to untrusted input.

Installation

Install from PyPI:

pip install pyncat

Usage

Start the pyncat listener:

pyncat

Send your Python code for execution:

echo 'import this' | nc 127.0.0.1 31337

The MIT License

Copyright 2022 Mark Jacobson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Release files for pyncat 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyncat 0.0.2
File Size Uploaded
pyncat-0.0.2.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyncat 0.0.2
File Interpreter ABI Platform
pyncat-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / pyncat-0.0.2.tar.gz

Download URL pyncat-0.0.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dd6339ad5558c496c3187e8137f514d192afc2025c55d6b830282579284c781f
BLAKE2b-256 checksum
How to use checksums
23c41736ba5ed211aed91920b3fc48693d3ab333c555117760d387de31a9b425
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

Release files / pyncat-0.0.2-py3-none-any.whl

Download URL pyncat-0.0.2-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dee42d738ec2abd8c73e0629ae44607ddedaa91c223ff18d5435fdec54b7aed6
BLAKE2b-256 checksum
How to use checksums
f8b9bebe052a4fd2180e3643c8e0e2f1143e4a618b5326dd683c47ff3e69fb47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page