{"id":17287418,"url":"https://github.com/utoni/mingw-w64-ksocket","last_synced_at":"2025-08-02T07:11:43.220Z","repository":{"id":144923825,"uuid":"531516982","full_name":"utoni/mingw-w64-ksocket","owner":"utoni","description":"Windows Kernel \u003c-\u003e User mode socket communication made for \"Mingw64 Driver Plus Plus\".","archived":false,"fork":false,"pushed_at":"2023-09-15T12:21:05.000Z","size":694,"stargazers_count":9,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T11:06:26.492Z","etag":null,"topics":["kernel-driver","kernelmode","mingw-w64","mingw-w64-dpp","socket-io","tcp-socket","usermode"],"latest_commit_sha":null,"homepage":"","language":"C","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/utoni.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,"zenodo":null}},"created_at":"2022-09-01T12:50:05.000Z","updated_at":"2025-01-07T11:03:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"458e9c6b-104f-493c-bb41-1286555a238f","html_url":"https://github.com/utoni/mingw-w64-ksocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/utoni/mingw-w64-ksocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utoni%2Fmingw-w64-ksocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utoni%2Fmingw-w64-ksocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utoni%2Fmingw-w64-ksocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utoni%2Fmingw-w64-ksocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utoni","download_url":"https://codeload.github.com/utoni/mingw-w64-ksocket/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utoni%2Fmingw-w64-ksocket/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268348207,"owners_count":24236295,"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-08-02T02:00:12.353Z","response_time":74,"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":["kernel-driver","kernelmode","mingw-w64","mingw-w64-dpp","socket-io","tcp-socket","usermode"],"created_at":"2024-10-15T10:02:20.382Z","updated_at":"2025-08-02T07:11:43.212Z","avatar_url":"https://github.com/utoni.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mingw64 Kernel Sockets\n\nRequires [mingw-w64-dpp](https://github.com/utoni/mingw-w64-dpp) and Windows 10. Windows 11 may or may not work, not tested yet.\n\nDid you ever ask yourself the question: how-the-hell can I open a socket in kernel mode with a Mingw-w64 compiled driver?\nWell, this is the solution. `mingw-w64-ksocket` simplifies the use of stream/datagram client/server sockets.\nThe API is similiar to the BSD socket API.\nGreetings to [KSOCKET](https://github.com/wbenny/KSOCKET) for this sweet approach.\n\nCompatible with C and C++ drivers.\n\n# HowTo\n\nBuild it:\n\n```shell\nmake DPP_ROOT=\"[path-to-mingw-w64-dpp-template-dir]\" all\n\n```\n\nTo install \u0026 (self-)sign the driver:\n\n```shell\nmake DPP_ROOT=\"[path-to-mingw-w64-dpp-template-dir]\" DESTDIR=\"[path-to-install-dir]\" install\n```\n\nThe directory `[path-to-install-dir]` should now contain three new files:\n\n * `driver.bat` / `driver-protobuf-c.bat` / `driver-protobuf-c-tcp.bat`: setup the driver service, start it, stop it when it's done and delete it\n * `driver.sys`: example driver that uses kernel sockets (used together with `userspace_client.exe`)\n * `userspace_client.exe`: example userspace application which communicates with the driver via TCP\n * `driver-protobuf-c.sys`: example driver that make use of protobuf-c (local, no TCP/IP)\n * `driver-protobuf-c-tcp.sys`: example driver that make use of protobuf-c  via TCP/IP (used together with `userspace_client_protobuf.exe`)\n * `userspace_client_protobuf.exe`: example userspace application which leverages protocol buffers to communicate with the driver via TCP\n\nStart `*.bat` as `Administrator`.\n\nIf everything works fine, there should be a text displayed in `userspace_client.exe` / `userspace_client_protobuf.exe` console window, received from the driver.\n\nFor more debug output, it is recommended to use a debugger or log viewer like `dbgview`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futoni%2Fmingw-w64-ksocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futoni%2Fmingw-w64-ksocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futoni%2Fmingw-w64-ksocket/lists"}