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
Release history Release notifications | RSS feed
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.2.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ghostshell-1.0.2.tar.gz.
File metadata
- Download URL: ghostshell-1.0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a905a256965205d6869b6a7434032e4fb5b3f943033b6ca8477cd255be89551
|
|
| MD5 |
af56a43140744e3cca1ca24babdbff08
|
|
| BLAKE2b-256 |
1bb9162bce88d520a1a00034df9aa5e1df38d1aceccdf988840efc267b03c4f8
|
File details
Details for the file ghostshell-1.0.2-py3-none-any.whl.
File metadata
- Download URL: ghostshell-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03f762d91ef31034272e3cf41830486fe47146f0d74430bc045faa8ced70a6c5
|
|
| MD5 |
502d273faed4697eaf11b34e6d969a35
|
|
| BLAKE2b-256 |
2293f41f8e795765c816d0e864725355f592ee96dbf0202f873bc3476640ce1e
|