Skip to main content

Netcat-style remote command execution using Python socket.

Project description

ghostshell

A Netcat-style remote command execution tool using raw Python sockets.

Features

  • Raw socket client/server
  • CLI and importable API
  • Supports multiple requests per session

Installation

From PIP

pip install ghostshell

Manual Installation using setup.py

  • Clone this git repo
  • cd ghostshell
  • Run
pip install .

CLI Usage

For Code/module CLI:

 python -m ghostshell.cli.main serve --host 0.0.0.0 --port 9999
 python -m ghostshell.cli.main connect --host 127.0.0.1 --port 9999

For Installed CLI package:

ghostshell serve --host 0.0.0.0 --port 9999
ghostshell connect --host 127.0.0.1 --port 9999

Python Usage

from ghostshell.core.server import RemoteServer
from ghostshell.core.client import RemoteClient

server = RemoteServer("0.0.0.0", 9999)
server.start()

client = RemoteClient("127.0.0.1", 9999)
client.connect()

print(client.send_command("whoami"))
client.close()

License

MIT

⚠️ Disclaimer

This tool is intended strictly for educational and authorized use only.

By installing or using this package, you agree that:

  • You will only use it in environments where you have explicit permission.
  • You understand that this tool can be used for remote command execution, and improper use may violate laws or system security.
  • The author is not responsible for any damage, unauthorized access, or misuse of this software.

Use responsibly and at your own risk.

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

ghostshell-1.0.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

ghostshell-1.0.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file ghostshell-1.0.3.tar.gz.

File metadata

  • Download URL: ghostshell-1.0.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for ghostshell-1.0.3.tar.gz
Algorithm Hash digest
SHA256 aa4824fac2581545a04279536ddf9c2e072958b90325194f09aa692c8176e173
MD5 ad5264e8b493ce1afd67197637a92fcd
BLAKE2b-256 218ce344d461a03d3540afb0c123be42441a59a67aefc415e676e0eb2fc15ff5

See more details on using hashes here.

File details

Details for the file ghostshell-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: ghostshell-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for ghostshell-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 162c88dc49749739abe3960db3f0dc9657dccb6e32a5c00796c5bc33b399f715
MD5 63766c2bc37c52a0d3bbdd9d8ba1edf3
BLAKE2b-256 223f926a8fe55f0cd47e0e457563957cfa5725acd66ca5d0729ff3975b0fe581

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