InteractiveSocket
This module forwards socket to stdin & stdout.
This is a simple cli module that constructs socket sessions with remote TCP / UDP port, made for debugging and educational purposes.
Quick start
python3 -m interactivesocket. The module also exports the cli entrypoint interactivesocket.
Please refer to typer / source docstrings for further specifications. The module is built with cli simplicity in mind.
Examples
Hi there!
root@host:~$ interactivesocket tcp --tls google.com 443
Interactive Socket v0.3.1, Scevenate (c) 2026
Connecting to google.com:443...
Connection established with google.com:443. Use Ctrl+D (EOF) to disconnect.
google.com:443 >>> HEAD / HTTP/1.1\r\n
google.com:443 >>> host: google.com\r\n
google.com:443 >>> connection: close\r\n
google.com:443 >>> \r\n
HTTP/1.1 301 Moved Permanently
Location: https://www.google.com/
Content-Type: text/html; charset=UTF-8
Content-Security-Policy-Report-Only: object-src 'none';base-uri 'self';script-src 'nonce-VDRuitCRV3iLQiNUCQ0HHA' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
Date: Fri, 03 Apr 2026 14:55:15 GMT
Expires: Sun, 03 May 2026 14:55:15 GMT
Cache-Control: public, max-age=2592000
Server: gws
Content-Length: 220
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Connection: close
Connection closed by server.
google.com:443 >>>
root@host:~$
What server is cloudflare on?
root@host:~$ interactivesocket tcp -ts cloudflare.com 443 | grep Server
Server: cloudflare
root@host:~$
How about asking root DNS server where's dot com:
root@host:~$ interactivesocket udp -x d.root-servers.net 53
Interactive Socket v0.3.1, Scevenate (c) 2026
Creating endpoint for d.root-servers.net:53...
Endpoint created for d.root-servers.net:53. Use Ctrl+D (EOF) to destroy.
d.root-servers.net:53 >>> 0a1b0100000100000000000003636f6d0000020001
0a1b810000010000000d000f03636f6d0000020001c00c000200010002a300001401610c67746c642d73657276657273036e657400c00c000200010002a30000040162c023c00c000200010002a30000040163c023c00c000200010002a30000040164c023c00c000200010002a30000040165c023c00c000200010002a30000040166c023c00c000200010002a30000040167c023c00c000200010002a30000040168c023c00c000200010002a30000040169c023c00c000200010002a3000004016ac023c00c000200010002a3000004016bc023c00c000200010002a3000004016cc023c00c000200010002a3000004016dc023c021000100010002a3000004c005061ec041000100010002a3000004c0210e1ec051000100010002a3000004c01a5c1ec061000100010002a3000004c01f501ec071000100010002a3000004c00c5e1ec081000100010002a3000004c023331ec091000100010002a3000004c02a5d1ec0a1000100010002a3000004c036701ec0b1000100010002a3000004c02bac1ec0c1000100010002a3000004c0304f1ec0d1000100010002a3000004c034b21ec0e1000100010002a3000004c029a21ec0f1000100010002a3000004c037531ec021001c00010002a300001020010503a83e00000000000000020030c041001c00010002a300001020010503231d00000000000000020030
d.root-servers.net:53 >>>
Destroyed.
root@host:~$
Metadata
Release files for InteractiveSocket 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| interactivesocket-0.3.1.tar.gz | 4.8 kB | Without provenance | Details for interactivesocket-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| interactivesocket-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for interactivesocket-0.3.1-py3-none-any.whl |
Total release size: 11.5 kB
Release files / interactivesocket-0.3.1.tar.gz
| Download URL | interactivesocket-0.3.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06fa7182f50e3e4bf25b62fcba1a8a0d259ee0102fd0c260a8b89f7a5af66a80
|
|
BLAKE2b-256 checksum How to use checksums |
13e0274e6b7bec1ecab27e989a5b11f286d6d61a31762efbb21360d08e9cdcb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / interactivesocket-0.3.1-py3-none-any.whl
| Download URL | interactivesocket-0.3.1-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a29171b3cf3686ad2ee64563494647039fc4f34c7235d394353da5dc24add66f
|
|
BLAKE2b-256 checksum How to use checksums |
0a233b79a27f9fd9d5f8bca11949b1841e6c331c8a8680a094d095c65f9e32a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for InteractiveSocket 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.