{"id":28796165,"url":"https://github.com/bocaletto-luca/server-and-client","last_synced_at":"2026-05-04T21:34:32.776Z","repository":{"id":298833426,"uuid":"1001273211","full_name":"bocaletto-luca/server-and-client","owner":"bocaletto-luca","description":"Remote-Cmd is a lightweight client-server app written in C that lets you securely execute remote shell commands with authentication, syslog logging, optional system update, IPv4/IPv6 support, and dry-run mode. Designed for Linux Debian environments with zero external dependencies.","archived":false,"fork":false,"pushed_at":"2025-06-13T06:04:01.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T06:36:23.314Z","etag":null,"topics":["admin","bocaletto-luca","client","debian","linux","opensource","server","system","system-tools","tools"],"latest_commit_sha":null,"homepage":"https://bocaletto-luca.github.io/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bocaletto-luca.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-06-13T05:34:14.000Z","updated_at":"2025-06-13T06:12:58.000Z","dependencies_parsed_at":"2025-06-13T06:48:05.975Z","dependency_job_id":null,"html_url":"https://github.com/bocaletto-luca/server-and-client","commit_stats":null,"previous_names":["bocaletto-luca/server-and-client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bocaletto-luca/server-and-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2Fserver-and-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2Fserver-and-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2Fserver-and-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2Fserver-and-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bocaletto-luca","download_url":"https://codeload.github.com/bocaletto-luca/server-and-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2Fserver-and-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260477932,"owners_count":23015066,"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":["admin","bocaletto-luca","client","debian","linux","opensource","server","system","system-tools","tools"],"created_at":"2025-06-18T03:11:26.144Z","updated_at":"2026-05-04T21:34:32.770Z","avatar_url":"https://github.com/bocaletto-luca.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server \u0026 Client\n#### Author: Bocaletto Luca\n\n# 🔧 Remote-Cmd v3\n\n**Server \u0026 Client in C con autenticazione, syslog e graceful shutdown**\n\n---\n\n## ⚙️ Compilazione\n\n\tcompila il server:\n\t\tgcc -Wall -O2 -pthread -o server server.c\n\n\tcompila il client:\n\t\tgcc -Wall -O2 -o client client.c\n\n---\n\n## 🚀 Avvio Server\n\n\t# Avvio con autenticazione e aggiornamento del sistema\n\tsudo ./server -k mysecret -u\n\n\t# Modalità dry-run (non esegue comandi reali)\n\t./server -k mysecret -d\n\n---\n\n## 🧪 Connessione Client\n\n\t# Dry-run (visualizza i comandi senza inviarli)\n\t./client -h 127.0.0.1 -p 12345 -k mysecret -d\n\n\t# Connessione reale\n\t./client -h 127.0.0.1 -p 12345 -k mysecret\n\n\tEsempio interazione:\n\n\t\tls -l\n\t\tuname -a\n\t\texit\n\n---\n\n## 🔐 Autenticazione\n\n\tIl server richiede un token di autenticazione passato via `-k mysecret`.\n\n\tIl client lo invia alla connessione. In caso di token errato, riceverà `AUTH_FAIL`.\n\n---\n\n## ⚙️ Opzioni Server\n\n\t-p, --port PORT     porta di ascolto (default 12345)\n\t-k, --key TOKEN     token di autenticazione (obbligatorio)\n\t-u, --update        esegue apt-get update \u0026\u0026 upgrade -y\n\t-d, --dry-run       stampa i comandi senza eseguirli\n\t-s, --syslog        abilita log su syslog\n\t-V, --version       mostra la versione\n\t-h, --help          mostra l'aiuto\n\n---\n\n## ⚙️ Opzioni Client\n\n\t-h, --host HOST     IP o hostname del server\n\t-p, --port PORT     porta TCP del server\n\t-k, --key TOKEN     token di autenticazione\n\t-d, --dry-run       stampa i comandi senza inviarli\n\t-V, --version       mostra la versione\n\t-?, --help          mostra l'aiuto\n\n---\n\n## 📝 Note\n\n- Il server supporta IPv4/IPv6, multi-client con thread, chiusura controllata via SIGINT/SIGTERM.\n- Tutti i comandi ricevuti vengono eseguiti via `popen()` e il loro output è reinviato al client.\n- Il client si comporta come una shell remota semplificata.\n- La connessione termina scrivendo `exit`.\n\n---\n\nBocaletto Luca – Software libero scritto in C, nessuna dipendenza esterna, compatibile con Debian/Linux.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbocaletto-luca%2Fserver-and-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbocaletto-luca%2Fserver-and-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbocaletto-luca%2Fserver-and-client/lists"}