{"id":16805655,"url":"https://github.com/gcarq/netshim","last_synced_at":"2026-05-18T11:06:27.568Z","repository":{"id":148726653,"uuid":"76404463","full_name":"gcarq/netshim","owner":"gcarq","description":"Network tracing shim for POSIX","archived":false,"fork":false,"pushed_at":"2016-12-13T23:18:28.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-07T16:39:33.001Z","etag":null,"topics":["analysis","linux","network","posix","shim"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gcarq.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}},"created_at":"2016-12-13T22:39:57.000Z","updated_at":"2025-03-31T06:45:29.000Z","dependencies_parsed_at":"2023-05-28T18:45:37.165Z","dependency_job_id":null,"html_url":"https://github.com/gcarq/netshim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gcarq/netshim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarq%2Fnetshim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarq%2Fnetshim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarq%2Fnetshim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarq%2Fnetshim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gcarq","download_url":"https://codeload.github.com/gcarq/netshim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarq%2Fnetshim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33175888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"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":["analysis","linux","network","posix","shim"],"created_at":"2024-10-13T09:48:55.763Z","updated_at":"2026-05-18T11:06:27.552Z","avatar_url":"https://github.com/gcarq.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# netshim\nNetwork tracing shim for POSIX.\n\n\nIntercepts following libc functions during runtime and logs them to `stderr`:\n\n* `connect()`\n* `getnameinfo()`\n* `gethostbyname()`\n* `gethostbyname_r()`\n* `gethostbyname2()`\n* `gethostbyname2_r()`\n* `getaddrinfo()`\n\n\n\n## Usage\n\n```\ngit clone https://github.com/gcarq/netshim.git\ncd netshim\ngcc -s -O2 -shared -fPIC -o netshim.{so,c} -ldl\nLD_PRELOAD=/full/path/to/netshim.so /usr/bin/foo\n```\n\n\n## Example\n\n```\n$ LD_PRELOAD=/home/foo/netshim.so chromium\n23:53:53 [CONNECT] AF_UNIX: \tsocket_type=0x00000001\n23:53:53 [CONNECT] AF_UNIX: /run/dbus/system_bus_socket\tsocket_type=0x00000001\n23:53:53 [CONNECT] AF_UNIX: /run/user/1000/pulse/native\tsocket_type=0x00000001\n23:53:53 [CONNECT] AF_UNIX: /var/run/pulse/native\tsocket_type=0x00000001\n23:53:54 [CONNECT] AF_UNIX: /run/user/1000/bus\tsocket_type=0x00000001\n23:53:54 [CONNECT] 2001:4860:4860::8888:53\tsocket_type=0x00000002\n23:53:54 [GETADDRINFO] www.google.at\n23:53:54 [CONNECT] AF_UNIX: /var/run/dbus/system_bus_socket\tsocket_type=0x00000001\n23:53:54 [GETADDRINFO] apis.google.com\n23:53:54 [CONNECT] AF_UNIX: /var/run/dbus/system_bus_socket\tsocket_type=0x00000001\n23:53:54 [CONNECT] 8.8.4.4:53\tsocket_type=0x00000002\n23:53:54 [GETADDRINFO] ssl.gstatic.com\n23:53:54 [CONNECT] AF_UNIX: /var/run/dbus/system_bus_socket\tsocket_type=0x00000001\n23:53:54 [GETADDRINFO] www.google.com\n23:53:54 [CONNECT] AF_UNIX: /var/run/dbus/system_bus_socket\tsocket_type=0x00000001\n23:53:54 [GETADDRINFO] translate.googleapis.com\n23:53:54 [CONNECT] AF_UNIX: /var/run/dbus/system_bus_socket\tsocket_type=0x00000001\n23:53:54 [GETADDRINFO] www.gstatic.com\n23:53:54 [CONNECT] 216.58.214.99:443\tsocket_type=0x00000001\n23:53:54 [CONNECT] AF_UNIX: /var/run/dbus/system_bus_socket\tsocket_type=0x00000001\n23:53:54 [CONNECT] 8.8.4.4:53\tsocket_type=0x00000002\n23:53:54 [CONNECT] 216.58.214.106:443\tsocket_type=0x00000001\n23:53:59 [CONNECT] 2001:4860:4860::8888:53\tsocket_type=0x00000002\n23:53:59 [GETADDRINFO] www.google.com\n23:53:59 [CONNECT] AF_UNIX: /var/run/dbus/system_bus_socket\tsocket_type=0x00000001\n23:53:59 [CONNECT] 8.8.4.4:53\tsocket_type=0x00000002\n23:53:59 [CONNECT] 216.58.214.100:443\tsocket_type=0x00000001\n23:54:01 [CONNECT] 2001:4860:4860::8888:53\tsocket_type=0x00000002\n23:54:01 [GETADDRINFO] csnoqgaal\n23:54:01 [CONNECT] AF_UNIX: /var/run/dbus/system_bus_socket\tsocket_type=0x00000001\n23:54:01 [CONNECT] 8.8.4.4:53\tsocket_type=0x00000002\n23:54:01 [GETADDRINFO] kkbrnillvnhssns\n23:54:01 [GETADDRINFO] rtorxljrlqijao\n23:54:01 [CONNECT] AF_UNIX: /var/run/dbus/system_bus_socket\tsocket_type=0x00000001\n23:54:01 [CONNECT] AF_UNIX: /var/run/dbus/system_bus_socket\tsocket_type=0x00000001\n23:54:01 [CONNECT] 8.8.4.4:53\tsocket_type=0x00000002\n23:54:04 [CONNECT] 2001:4860:4860::8888:53\tsocket_type=0x00000002\n23:54:04 [CONNECT] 216.58.214.99:443\tsocket_type=0x00000001\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcarq%2Fnetshim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgcarq%2Fnetshim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcarq%2Fnetshim/lists"}