{"id":18657564,"url":"https://github.com/kav-k/cncclientmodule","last_synced_at":"2026-05-05T19:31:24.905Z","repository":{"id":146343797,"uuid":"193414748","full_name":"Kav-K/CNCClientModule","owner":"Kav-K","description":"Seamlessly control multiple servers from one commanding program","archived":false,"fork":false,"pushed_at":"2019-09-23T18:00:46.000Z","size":93,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T00:40:11.701Z","etag":null,"topics":["client-server","command-and-control","gradle","key-pair","kryo","kryonet","networking","rsa-cryptography","rsa-key-pair","serialization","server","tcp","tcp-client","tcp-server"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Kav-K.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":"2019-06-24T01:38:57.000Z","updated_at":"2020-02-16T14:47:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d2b96e6-6f8a-4538-bf3e-d5b43e187e0b","html_url":"https://github.com/Kav-K/CNCClientModule","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kav-K/CNCClientModule","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kav-K%2FCNCClientModule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kav-K%2FCNCClientModule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kav-K%2FCNCClientModule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kav-K%2FCNCClientModule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kav-K","download_url":"https://codeload.github.com/Kav-K/CNCClientModule/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kav-K%2FCNCClientModule/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32664757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["client-server","command-and-control","gradle","key-pair","kryo","kryonet","networking","rsa-cryptography","rsa-key-pair","serialization","server","tcp","tcp-client","tcp-server"],"created_at":"2024-11-07T07:29:01.629Z","updated_at":"2026-05-05T19:31:24.884Z","avatar_url":"https://github.com/Kav-K.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CNCClientModule\n\nThis is the counterpart CLIENT module of the Command-And-Control communication program that I have written in java.\nThe SERVER module can be found at https://github.com/Kav-K/CNCCommandModule\n\nCommand-And-Control allows you to control multiple machines running a Linux-style operating system from one commanding machine.\n\n## Features\n- Command server can send commands to be executed on all clients at once\n- Displays the status of individual clients when sending commands\n- Displays output for all clients individually when executing a command\n- Clients automatically reconnect to command if the command server is offline for x time, or undergoes an update\n- Kill function to terminate all clients\n- Reconnection feature (Reconnect clients manually from command)\n- Secure SHA256-RSA Keypair authentication between the server and the client to make sure unauthorized commands are not executed\n## Usage\nTo use the CNC system, simply type commands into the server console and it will be propagated to all clients\n- \"(LINUX TERMINAL COMMAND) - Sends the command to all connected clients and returns the output of each client. E.g, if you wanted to create a file called test.txt in the root directory of all clients, you'd simply type in \"touch /root/test.txt\" in the server console\"\n\nCustom global functions will start with a forward slash (/) and are listed below\n- \"/KILL\" - Disconnect all clients attached to server\n- \"/RECONNECT\" - Forces all clients to reconnect (and also to reobtain the server public key)\n- \"/LIST\" - Lists all the clients connected to the command server\n- \"/INFO\" - Returns the system information and statistics of all the clients connected to the command server\n\n## Todo\n- Send commands to individual clients only (WIP)\n- Start clients on system startup\n- Two way authentication with the client acting as an authentication SOURCE\n## How To Use\n- Build the CNCCommandModule\n- Build the CNCClientModule after replacing the COMMANDIP and COMMANDPORT fields in Main.java with the respective ip and port of your command module\n- Done! (Simple right?)\n\n\n\n## Security\nThis system is NOT cryptographically secure but does have a system of verification to ensure that server Command requests are authentic. The current security implementation involves the client sending a KeyRequest to the server. The server will then send back a copy of its public key to the client. Authentic communication from the designated server will have a digital signature attached to it, and will be verified on the client side before commands are executed.\n\n- Client sends a KeyRequest to the COMMANDIP, if accepted by the server, the server will send back a PublicKeyTransmission object.\n- Client will check if the PublicKeyTransmission object was sent from the COMMANDIP, and will write the public key into a file.\n- All commands sent from the command server will be digitally signed by its private key\n- All commands to be executed on clients will be validated by using the public key, and only valid commands will execute on the client side\n- The public and private keypairs use the SHA-256 hashing algorithm with RSA, which has not been compromised yet, unlike the SHA1 algorithm.\n\nIn addition to the above, the command server, once authenticated with a client, will continuously send authentication updates to a client, the moment the server gets turned off or can't be reached, clients will immediately be deauthenticated and will try to reauthenticate with command. This is useful in preventing man-in-the-middle attacks.\n\nThis system is however NOT fully cryptographically secure, and I advise against using this in applications where sensitive commands and information is involved.\n\n## Kryonet\nThis project uses the kryonet library from EsotericSoftware (https://github.com/EsotericSoftware/kryonet) Kryonet is an asynchronous communication library for Java built upon Java NIO and makes communication throughout this program seamless.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkav-k%2Fcncclientmodule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkav-k%2Fcncclientmodule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkav-k%2Fcncclientmodule/lists"}