nclib is netcat as a python library, or at least a couple of common things netcat can do.
nclib provides: - Easy-to-use interfaces for connecting to and listening on TCP and UDP sockets - recv_until, receiving until a given substring comes over the wire - Highly customizable logging, including logging in hex encoding - 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 - A script (serve-stdio) to easily daemonize command-line scripts, requires socat
run help(nclib) for help.
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file nclib-0.6.0.tar.gz.
File metadata
- Download URL: nclib-0.6.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd855dee070afa3f7335eb04f4a36f7318c7c18b3a83d10fec37993168263077
|
|
| MD5 |
87830afba8d6f43779eccb31b3a23034
|
|
| BLAKE2b-256 |
ab5136589ef5e2b8b54be8b788a681d194919ed90696ca5b526919d71bc0897e
|