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

Uploaded Source

File details

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

File metadata

  • Download URL: nclib-1.0.0.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.17

File hashes

Hashes for nclib-1.0.0.tar.gz
Algorithm Hash digest
SHA256 efc0a72e90f91d213f2254159244dd5d0f0dce23251a54969211f24cc1e8c84d
MD5 5ff58c0588681f440234a43a64e1957b
BLAKE2b-256 c47245e3007f09cff2381ac0b205dbe5f9c843a74dbb2d2ec2f6e8da75cc153f

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