{"id":19430271,"url":"https://github.com/8dcc/snc","last_synced_at":"2025-10-31T10:43:28.022Z","repository":{"id":181599669,"uuid":"667019944","full_name":"8dcc/snc","owner":"8dcc","description":"Simple netcat(1) and ncat(1) alternative over TCP","archived":false,"fork":false,"pushed_at":"2025-07-06T16:34:17.000Z","size":122,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-20T03:18:05.068Z","etag":null,"topics":["c","cli","network","productivity","sockets"],"latest_commit_sha":null,"homepage":"","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/8dcc.png","metadata":{"files":{"readme":"README.org","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":"2023-07-16T11:26:33.000Z","updated_at":"2025-07-06T16:34:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f11cc10-8906-4a1f-8d63-1598c348d76d","html_url":"https://github.com/8dcc/snc","commit_stats":null,"previous_names":["8dcc/snc"],"tags_count":10,"template":false,"template_full_name":"8dcc/c-template","purl":"pkg:github/8dcc/snc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fsnc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fsnc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fsnc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fsnc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/8dcc","download_url":"https://codeload.github.com/8dcc/snc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fsnc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267929222,"owners_count":24167447,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"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":["c","cli","network","productivity","sockets"],"created_at":"2024-11-10T14:24:12.621Z","updated_at":"2025-10-31T10:43:27.926Z","avatar_url":"https://github.com/8dcc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: snc\n#+AUTHOR: 8dcc\n#+OPTIONS: toc:nil\n#+STARTUP: showeverything\n\nSimple =netcat(1)= and =ncat(1)= alternative over TCP.\n\nSee also my [[https://8dcc.github.io/programming/netref.html][C Network Programming Reference]].\n\n* Building\n\nTo build the project, simply clone the repository and run =make=.\n\n#+begin_src console\n$ git clone https://github.com/8dcc/snc\n$ cd snc\n$ make clean all\n...\n#+end_src\n\nOptionally, if you want to install the program in your system, use the =install=\ntarget.\n\n#+begin_src console\n$ sudo make install\n...\n#+end_src\n\n* Usage\n\nThe help can be shown with the =--help= option.\n\n#+begin_src console\n$ snc --help\nUsage: snc [OPTION...]\n\n Mode arguments\n  -r, --receive              Receive data from incoming transmitters.\n  -t, --transmit=DESTINATION Transmit data into the DESTINATION receiver.\n\n Optional arguments\n  -p, --port=PORT            Specify the port for receiving or transferring\n                             data.\n\n      --print-interfaces     When receiving data, print the list of local\n                             interfaces, along with their addresses. Useful\n                             when receiving data over a LAN.\n      --print-peer-info      When receiving data, print the peer information\n                             whenever a connection is accepted.\n      --print-progress       Print the size of the received or transmitted data\n                             to 'stderr'.\n\n  -?, --help                 Give this help list\n      --usage                Give a short usage message\n\nMandatory or optional arguments to long options are also mandatory or optional\nfor any corresponding short options.\n\nReport bugs to \u003c8dcc.git@gmail.com\u003e.\n#+end_src\n\nTo receive data from another machine, start the program in /receive/ mode. It will\nstart to listen, and print received data to =stdout=.\n\n#+begin_src console\n$ snc --receive\n...\n\n$ snc -r \u003e output.txt\n#+end_src\n\nTo transmit data to another machine, start the program in /transmit/ mode. It will\nread data from =stdin=, transmit it to the specified IP address.\n\n#+begin_src console\n$ snc --transmit \"IP\"\nType stuff here!\n...\nIt will send it to the receiver.\n\n$ snc -t \"IP\" \u003c input.txt\n#+end_src\n\nYou may specify a port when receiving and transmitting data, so you can connect\nto an [[https://nmap.org/ncat/][ncat]] instance by using its port (by default 31337).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8dcc%2Fsnc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F8dcc%2Fsnc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8dcc%2Fsnc/lists"}