Skip to main content

Netcat as a library: convienent socket interfaces

Project description

nclib is a python socket library that wants to be your friend.

nclib provides:

  • Easy-to-use interfaces for connecting to and listening on TCP and UDP sockets

  • The ability to handle any python stream-like object with a single interface

  • A better socket class, the Netcat object

    • Convenient receive methods for common socket usage patterns

    • Highly customizable logging

    • Interactive mode, connecting the socket to your stdin/stdout

    • Intelligent detection of socket closes and connection drops

    • Long-running functions cleanly abortable with ctrl-c

    • Lots of aliases in case you forget the right method name

  • Mechanisms to launch processes with their in/out streams connected to sockets

    • Launch a process with gdb attached

  • TCP and UDP server classes for writing simple python daemons

  • A script to easily daemonize command-line programs

Documentation is available at https://nclib.readthedocs.io/ and source code is available at https://github.com/rhelmot/nclib

If you are familiar with pwntools, nclib provides much of the functionaly that pwntools’ socket wrappers do, but with the bonus feature of not being pwntools.

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

nclib-1.0.5.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

nclib-1.0.5-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file nclib-1.0.5.tar.gz.

File metadata

  • Download URL: nclib-1.0.5.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for nclib-1.0.5.tar.gz
Algorithm Hash digest
SHA256 b0a6c84a52f984e06ed63eb359289bd878c90af12832ba9dc33806da478ca831
MD5 03d301e0202df4edc76ed99c4309a973
BLAKE2b-256 ab96990e45d7160ee6bc510cdf6365001b0e60933f0ffca6765dc2b962e54969

See more details on using hashes here.

File details

Details for the file nclib-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: nclib-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for nclib-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 87951d8355f3fbf3d05abf8e25955191df39bda05cc2428fb755b37617ad883a
MD5 1f0769189c64b4e274308852c3bbcc2e
BLAKE2b-256 c1043137314bc9bfdfc643cdc5b3ecf5184969050a0082cdd18e4745f189d779

See more details on using hashes here.

Supported by

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