{"id":21826958,"url":"https://github.com/by3lish/usblogmaster","last_synced_at":"2026-04-28T17:32:13.807Z","repository":{"id":264274018,"uuid":"892900195","full_name":"by3lish/usblogmaster","owner":"by3lish","description":"USB Device Logger - A Linux kernel module that logs USB device insertions and removals, capturing device details and timestamps, with logs saved to a specified file.","archived":false,"fork":false,"pushed_at":"2025-01-12T20:32:05.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T05:34:29.902Z","etag":null,"topics":["linux","linux-kernel","linux-module","linuxmodule"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/by3lish.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":"2024-11-23T02:22:32.000Z","updated_at":"2025-01-12T20:32:08.000Z","dependencies_parsed_at":"2025-01-26T08:34:58.015Z","dependency_job_id":null,"html_url":"https://github.com/by3lish/usblogmaster","commit_stats":null,"previous_names":["by3lish/usblogmaster"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/by3lish/usblogmaster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/by3lish%2Fusblogmaster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/by3lish%2Fusblogmaster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/by3lish%2Fusblogmaster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/by3lish%2Fusblogmaster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/by3lish","download_url":"https://codeload.github.com/by3lish/usblogmaster/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/by3lish%2Fusblogmaster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32392291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: 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":["linux","linux-kernel","linux-module","linuxmodule"],"created_at":"2024-11-27T18:11:38.161Z","updated_at":"2026-04-28T17:32:13.789Z","avatar_url":"https://github.com/by3lish.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# USB Device Logger Kernel Module\n\nThis is a simple Linux kernel module that logs USB device connection and removal events. It logs the device name and the date when a USB device is plugged in or removed from the system. The log is saved to a specified file, and the module uses the kernel's USB notification system to capture the device events.\n\n## Features\n\n- Logs USB device connection and removal events.\n- Logs the device name and the date of the event.\n- Writes log messages to a specified file (`/home/\u003cyourusername\u003e/usblog.txt`).\n- Supports the following USB device types: USB HID and USB storage devices.\n\n## Requirements\n\n- A Linux system with kernel headers installed.\n- A kernel that supports the USB subsystem.\n\n## Installation\n\n### 1. Clone the Repository\n\nClone this repository to your local machine:\n\n```bash\ngit clone https://github.com/by3lish/usblogmaster.git\ncd usb-logger\n```\n\n### 2. Build the Module\n\nBefore building the module, make sure you have the necessary kernel headers installed. On Debian-based systems, you can install them using:\n\n```bash\nsudo apt-get install linux-headers-$(uname -r)\n```\n\nTo build the module, simply run:\n\n```bash\nmake\n```\n\n### 3. Install the Module\n\nAfter the module is built, you can install it by running:\n\n```bash\nsudo make install\n```\n\nThis will load the kernel module using `insmod`.\n\n### 4. Uninstall the Module\n\nTo remove the module from the system:\n\n```bash\nsudo make uninstall\n```\n\nThis will unload the module using `rmmod`.\n\n## Usage\n\nOnce the module is loaded, it will begin logging USB device events to the log file located at `/home/\u003cyourusername\u003e/usblog.txt`.\n\nThe log entries will look like this:\n\n```\nDevice Plugged In: Name='USB Storage Device', Type='USB', Date='01.12.2024'\nDevice Removed: Name='USB Storage Device'\n```\n\nMake sure to change the `LOG_FILE_PATH` in the source code to your desired location for the log file. \n\n## Makefile\n\nThe Makefile includes the following targets:\n\n- **all**: Builds the kernel module.\n- **clean**: Cleans up build artifacts.\n- **install**: Installs (loads) the module.\n- **uninstall**: Uninstalls (removes) the module.\n\n## License\n\nThis project is licensed under the GPL-2.0 License - see the [LICENSE](LICENSE) file for details.\n\n## Author\n\n- [By3lish](https://github.com/by3lish)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fby3lish%2Fusblogmaster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fby3lish%2Fusblogmaster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fby3lish%2Fusblogmaster/lists"}