Skip to main content

Advanced asynchronous Python library for network communication using socat

Project description

SocatLib v2.0.4

Advanced asynchronous Python library for network communication using socat.

Installation

pip install socatlib

Quick Start

import asyncio
from socatlib import sending, listening

async def main():
    server = await listening(4444)
    await asyncio.sleep(1)
    
    result = await sending("Hello Server", "127.0.0.1", 4444)
    print(result)
    
    server.terminate()

asyncio.run(main())

Features

  • Async/await support
  • Error handling with detailed messages
  • 5 second timeout on all operations
  • File transfer support
  • Reverse shell capability
  • OpenSSL encryption support
  • Easy integration into existing projects

API Reference

sending(msg, ip, port, timeout=5)

Send a message to a server and get response.

Parameters:

  • msg (str): Message to send
  • ip (str): Target IP address
  • port (int): Target port
  • timeout (int): Operation timeout in seconds (default: 5)

Returns:

  • dict: {"success": bool, "data": str, "error": str}

[... باقي الـ API Documentation ...]

Requirements

  • Python 3.6+
  • socat installed and in PATH

Author

ash404.dev

License

MIT License

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

socatlib-2.0.4.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

socatlib-2.0.4-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file socatlib-2.0.4.tar.gz.

File metadata

  • Download URL: socatlib-2.0.4.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for socatlib-2.0.4.tar.gz
Algorithm Hash digest
SHA256 08819c7d4aea934b89a47c7c08a472ca4b33201588d46429e1f699273a6ccffd
MD5 2f209bfd9f9abce467a765bf059a2efb
BLAKE2b-256 0b3da4587532380f1bb2eb7c8f8119867093991cfdf87c2354998c30dc356a82

See more details on using hashes here.

File details

Details for the file socatlib-2.0.4-py3-none-any.whl.

File metadata

  • Download URL: socatlib-2.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for socatlib-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ac0c6906ffe72ae2da75202b4a978d3a6689c4bb658070053a2bba37e902e8c4
MD5 7410c815d07b329180340e1e22a1a9e4
BLAKE2b-256 34972c91e0dd935856f4c0e43624fa7b40356b1e9bc801ef2a900a7f6a069e2e

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