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.8.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

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

nclib-1.0.8-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nclib-1.0.8.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for nclib-1.0.8.tar.gz
Algorithm Hash digest
SHA256 2159d6a87a68605e5bcde9346965a22ad956894697d63719abe0df2cad051a82
MD5 a2811b7ef287ee56e3ec5db5a7dcb724
BLAKE2b-256 b7fdffddb22481e7409ea0bb39dfb2da13210088f93573b20e80d66b7d435785

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nclib-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for nclib-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 62986a0e45f6dda0f1736cef62474d2e7be35a8a83cc8a1520889307f4c0871f
MD5 c8f02d0b316cd69122e20a3215356d49
BLAKE2b-256 fef5b1d6c1dace10a93a6fd2f1665057631694d8aa36ddfee0c00ed77667bee7

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