{"id":49519156,"url":"https://github.com/MiroKaku/libwsk","last_synced_at":"2026-06-20T19:00:49.217Z","repository":{"id":41118301,"uuid":"410514421","full_name":"MiroKaku/libwsk","owner":"MiroKaku","description":"The Kernel-Mode Winsock library, supporting TCP, UDP and Unix sockets (DGRAM and STREAM).","archived":false,"fork":false,"pushed_at":"2025-01-27T03:16:58.000Z","size":128,"stargazers_count":275,"open_issues_count":0,"forks_count":89,"subscribers_count":13,"default_branch":"main","last_synced_at":"2026-02-15T11:16:50.462Z","etag":null,"topics":["cpp17","driver","windows","winsock-kernel","wsk"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MiroKaku.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":"2021-09-26T10:00:16.000Z","updated_at":"2026-02-09T09:56:00.000Z","dependencies_parsed_at":"2025-02-24T15:05:29.348Z","dependency_job_id":"83f1d1f3-ffd6-45e0-ac66-316b686e18e4","html_url":"https://github.com/MiroKaku/libwsk","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/MiroKaku/libwsk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiroKaku%2Flibwsk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiroKaku%2Flibwsk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiroKaku%2Flibwsk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiroKaku%2Flibwsk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MiroKaku","download_url":"https://codeload.github.com/MiroKaku/libwsk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiroKaku%2Flibwsk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34581934,"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-20T02:00:06.407Z","response_time":98,"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":["cpp17","driver","windows","winsock-kernel","wsk"],"created_at":"2026-05-01T23:01:10.348Z","updated_at":"2026-06-20T19:00:49.210Z","avatar_url":"https://github.com/MiroKaku.png","language":"C++","funding_links":[],"categories":["***Rootkits***"],"sub_categories":["***Techniques***"],"readme":"# [libwsk](https://github.com/mirokaku/libwsk)\n\n[![Actions Status](https://github.com/MiroKaku/libwsk/workflows/CodeQL/badge.svg)](https://github.com/MiroKaku/libwsk/actions)\n[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/MiroKaku/libwsk/blob/master/LICENSE)\n![Windows](https://img.shields.io/badge/Windows-7+-orange.svg)\n![Visual Studio](https://img.shields.io/badge/Visual%20Studio-2022-purple.svg)\n[![Downloads](https://img.shields.io/nuget/dt/Musa.libwsk?logo=NuGet\u0026logoColor=blue)](https://www.nuget.org/packages/Musa.libwsk/)\n\n* [简体中文](README.zh-CN.md)\n\n## About\n\nlibwsk is a wrapper for the [WSK (Winsock-Kernel)](https://docs.microsoft.com/en-us/windows-hardware/drivers/network/introduction-to-winsock-kernel) interface. With libwsk, kernel-mode software modules can perform network I/O operations using the same socket programming concepts and interface that are supported by user-mode Winsock2.\n\n## Build and used\n\n### Windows 10 or higher\n\nRight click on the project, select \"Manage NuGet Packages\".\nSearch for `Musa.libwsk`, choose the version that suits you, and then click \"Install\".\n\n### Windows 7\n\n1. First modify the settings:\n\n```\nlibwsk property pages -\u003e Driver Settings -\u003e Target OS Version = Windows 7\nlibwsk Property pages -\u003e Driver Settings -\u003e Target Platform   = Desktop\n```\n\n2. Call BuildAllTargets.cmd\n\n## Supported progress\n\n| BSD sockets   | WSA (Windows Sockets API)    | WSK (Windows Sockets Kernel) | State  \n| ---           | ---                          | ---                          | :----: \n| -             | ~~WSAStartup~~               | WSKStartup                   |   √    \n| -             | ~~WSACleanup~~               | WSKCleanup                   |   √    \n| socket        | ~~WSASocket~~                | WSKSocket                    |   √    \n| closesocket   | ~~WSASocket~~                | WSKCloseSocket               |   √    \n| bind          | -                            | WSKBind                      |   √    \n| listen        | -                            | WSKListen                    |   √    \n| connect       | ~~WSAConnect~~               | WSKConnect                   |   √    \n| shutdown      | ~~WSA[Recv/Send]Disconnect~~ | WSKDisconnect                |   √    \n| accept        | ~~WSAAccept~~                | WSKAccept                    |   √    \n| send          | ~~WSASend~~                  | WSKSend                      |   √    \n| recv          | ~~WSARecv~~                  | WSKRecv                      |   √    \n| sendto        | ~~WSASendTo~~                | WSKSendTo                    |   √    \n| recvfrom      | ~~WSARecvFrom~~              | WSKRecvFrom                  |   √    \n| ioctlsocket   | ~~WSAIoctl~~                 | WSKIoctl                     |   √    \n| setsockopt    | -                            | WSKSetSocketOpt              |   √    \n| getsockopt    | -                            | WSKGetSocketOpt              |   √    \n| getaddrinfo   | ~~GetAddrInfoEx~~            | WSKGetAddrInfo               |   √    \n| freeaddrinfo  | ~~FreeAddrInfoEx~~           | WSKFreeAddrInfo              |   √    \n| getnameinfo   | ~~GetNameInfo~~              | WSKGetNameInfo               |   √    \n| inet_ntoa     | ~~WSAAddressToString~~       | WSKAddressToString           |   √    \n| inet_addr     | ~~WSAStringToAddress~~       | WSKStringToAddress           |   √    \n| -             | ~~WSACreateEvent~~           | WSKCreateEvent               |   √    \n| -             | ~~WSAGetOverlappedResult~~   | WSKGetOverlappedResult       |   √    \n| ...           | ...                          | ...                          |   -    \n\n## Reference\n\n* [wbenny/KSOCKET](https://github.com/wbenny/KSOCKET)\n* [microsoft/docs](https://docs.microsoft.com/zh-cn/windows-hardware/drivers/network/introduction-to-winsock-kernel)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMiroKaku%2Flibwsk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMiroKaku%2Flibwsk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMiroKaku%2Flibwsk/lists"}