Skip to main content

A simple, stateful code execution server for Python.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyncat-0.0.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyncat-0.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file pyncat-0.0.2.tar.gz.

File metadata

  • Download URL: pyncat-0.0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pyncat-0.0.2.tar.gz
Algorithm Hash digest
SHA256 dd6339ad5558c496c3187e8137f514d192afc2025c55d6b830282579284c781f
MD5 d69b1e39d91dd911173c555a7418176c
BLAKE2b-256 23c41736ba5ed211aed91920b3fc48693d3ab333c555117760d387de31a9b425

See more details on using hashes here.

File details

Details for the file pyncat-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyncat-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pyncat-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dee42d738ec2abd8c73e0629ae44607ddedaa91c223ff18d5435fdec54b7aed6
MD5 34708394d5abe30b3bd2945f3ec137cc
BLAKE2b-256 f8b9bebe052a4fd2180e3643c8e0e2f1143e4a618b5326dd683c47ff3e69fb47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page