You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

nclib

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nclib

Netcat as a library: convienent socket interfaces


Maintainers
1

Readme

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc