{"id":23956910,"url":"https://github.com/kissssu/netcat-like-tool","last_synced_at":"2026-06-13T13:31:37.396Z","repository":{"id":270193670,"uuid":"909600864","full_name":"kissssu/NetCat-Like-Tool","owner":"kissssu","description":"python-based tool mimicking Netcat's client-server architecture for command execution.","archived":false,"fork":false,"pushed_at":"2025-02-17T06:25:18.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T11:14:03.656Z","etag":null,"topics":["commnication","netcat","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kissssu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-12-29T07:56:45.000Z","updated_at":"2025-02-17T06:25:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"718eef7b-51eb-4870-adb6-08502222c410","html_url":"https://github.com/kissssu/NetCat-Like-Tool","commit_stats":null,"previous_names":["kissssu/netcat-like-tool"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kissssu/NetCat-Like-Tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kissssu%2FNetCat-Like-Tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kissssu%2FNetCat-Like-Tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kissssu%2FNetCat-Like-Tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kissssu%2FNetCat-Like-Tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kissssu","download_url":"https://codeload.github.com/kissssu/NetCat-Like-Tool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kissssu%2FNetCat-Like-Tool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34286975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["commnication","netcat","python3"],"created_at":"2025-01-06T16:32:13.197Z","updated_at":"2026-06-13T13:31:37.368Z","avatar_url":"https://github.com/kissssu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NetCat-Like Tool (Python Edition)\n\nThis is a simple Python-based implementation of a `netcat`-like tool, comprising a client-server architecture. The server can send commands to a connected client, which executes them and returns the output.\n\n## Features\n\n- Command execution on the client system via the server.\n- Lightweight and straightforward implementation.\n- Example of socket programming in Python.\n- Robust handling of client and server disconnections.\n- User-friendly connection retry mechanism.\n\n---\n\n## Files\n\n### `server.py`\n\n- Acts as the controller.\n- Sends commands to the client.\n- Displays output from the client.\n- Handles client disconnections gracefully.\n\n### `client.py`\n\n- Connects to the server.\n- Executes received commands.\n- Sends the output back to the server.\n- Implements connection retry with informative messages.\n- Handles server disconnections gracefully.\n\n---\n\n## Requirements\n\n- **Python 3.x**\n- A local or network connection between the server and client.\n\n---\n\n## Usage\n\n1. **Run the server**:\n\n   ```bash\n   python3 server.py\n   ```\n- The server will start listening on 127.0.0.1:9999.\n\n2. Run the client:\n    ```Bash\n    python3 client.py\n    ```\n- The client will attempt to connect to 127.0.0.1:9999 and will retry if the connection is refused, displaying informative messages.\n\n3. Send commands:\n- From the server terminal, type a command (e.g., ls, dir, whoami).\n- The client will execute the command and return the result.\n- To terminate the connection, type exit. Both the client and server will indicate the connection closure.\n\n## Example\n\n- Server\n```Bash\n$ python3 server.py\nListening.....!\naddress are: ('127.0.0.1', 12345)\nConnected.\n$ ls\nDesktop\nDocuments\nDownloads\n$ exit\nConnection ended.\n```\n- Client\n```Bash\n$ python3 client.py\nConnecting....\nConnected.\n$ ls\nDesktop\nDocuments\nDownloads\n$ exit\nConnection closed.\n```\n\n## Notes\n\n- **Security Warning**: This tool is for educational purposes only. Executing arbitrary commands over a network is highly insecure and should not be used in production environments.\n- Modify the IP address and port in the scripts to fit your network setup if needed.\n\n## Future Enhancements/Upcoming Updates\n\n- **Command History**: Implement command history on the client-side, allowing users to easily access and re-execute previous commands.\n- **Improved Output Formatting**: Enhance the output display on the client-side for better readability, potentially using colors or indentation.\n- **File Transfer Capabilities**: Add functionality to upload and download files between the client and server.\n- **Interactive Shell**: Develop a more interactive shell-like experience on the client, including features like tab completion.\n- **Authentication**: Implement a basic authentication mechanism to secure the connection between the client and server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkissssu%2Fnetcat-like-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkissssu%2Fnetcat-like-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkissssu%2Fnetcat-like-tool/lists"}