{"id":27064924,"url":"https://github.com/assaf-r/lomond","last_synced_at":"2025-04-05T17:19:47.066Z","repository":{"id":253774696,"uuid":"831133865","full_name":"Assaf-R/lomond","owner":"Assaf-R","description":"Named After the Scottish loch, Lomond is a simple example on how to use kprobes in an LKM for learning purposes and gainning a deeper understanding of the Linux kernel.","archived":false,"fork":false,"pushed_at":"2024-12-30T16:17:45.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T17:23:56.836Z","etag":null,"topics":[],"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/Assaf-R.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}},"created_at":"2024-07-19T18:33:26.000Z","updated_at":"2024-12-30T16:17:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"1f51e77b-37fe-4936-bb3d-3e6376c6d6b2","html_url":"https://github.com/Assaf-R/lomond","commit_stats":null,"previous_names":["assaf-r/kprobe","assaf-r/lomond"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Assaf-R%2Flomond","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Assaf-R%2Flomond/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Assaf-R%2Flomond/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Assaf-R%2Flomond/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Assaf-R","download_url":"https://codeload.github.com/Assaf-R/lomond/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247370368,"owners_count":20928008,"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":[],"created_at":"2025-04-05T17:19:46.484Z","updated_at":"2025-04-05T17:19:47.057Z","avatar_url":"https://github.com/Assaf-R.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lomond - Socket connection probe\n### Who this?\nNamed After the Scottish loch, Lomond is a simple example on how to use kprobes in an LKM for learning purposes and gainning a deeper understanding of the Linux kernel.\n\nThis program creates a kprobe and attaches it to the __sys_connect syscall, every time a connection is made a check will be made if it's an IPv4 socket, and if so the target address and port wil be logged in the kernel logs as such.\n```\n[Mon Dec 30 17:48:00 2024] Lomond - connection made - 8.8.8.8:260\n```\n\n## Makefile tricks\n\n### To compile\n```\nmake\n```\n### To load compiled LKM\n```\nmake i\n```\n### To remove loaded LKM\n```\nmake r\n```\n### To ping google.com once (easy networking check)\n```\nmake t\n```\n### To compile, load compiled LKM, and ping google.com\n```\nmake full\n```\n### To print kernel logs (dmsg) and filter with our keyword\n```\nmake d\n```\n#\n## credits\nWritten by Assaf R.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassaf-r%2Flomond","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fassaf-r%2Flomond","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassaf-r%2Flomond/lists"}