{"id":31714510,"url":"https://github.com/davphla/kernel-otp","last_synced_at":"2025-10-09T01:24:40.307Z","repository":{"id":318321545,"uuid":"902911364","full_name":"Davphla/kernel-otp","owner":"Davphla","description":"Linux Kernel OTP (One Time Password) module","archived":false,"fork":false,"pushed_at":"2025-02-13T16:10:23.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T14:48:46.839Z","etag":null,"topics":["device","kernel","linux","module","vagrant"],"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/Davphla.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-13T14:21:50.000Z","updated_at":"2025-02-15T14:24:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Davphla/kernel-otp","commit_stats":null,"previous_names":["davphla/kernel-otp"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Davphla/kernel-otp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davphla%2Fkernel-otp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davphla%2Fkernel-otp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davphla%2Fkernel-otp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davphla%2Fkernel-otp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Davphla","download_url":"https://codeload.github.com/Davphla/kernel-otp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davphla%2Fkernel-otp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000723,"owners_count":26082894,"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-10-08T02:00:06.501Z","response_time":56,"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":["device","kernel","linux","module","vagrant"],"created_at":"2025-10-09T01:24:36.769Z","updated_at":"2025-10-09T01:24:40.301Z","avatar_url":"https://github.com/Davphla.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kernel OTP\n\n## Créer et intéragir avec la vm :\n\n`vagrant up`\n\n`vagrant ssh`\n\n`sudo su -`\n\n## Build et activer le module otp :\n\n`cd /otp_module`\n\n`make`\n\n`insmod otp.ko [num_passwords=n] [otp_key=\"key\"] [otp_validity_duration=seconds]`\n\n## Désactiver et nettoyer le module otp :\n\n`cd /otp_module`\n\n`make clean`\n\n`rmmod otp`\n\n## Build l'utilitaire :\n\n`cd /otp_utilitaire`\n\n`make`\n\n## Nettoyer l'utilitaire :\n\n`cd /otp_utilitaire`\n\n`make fclean`\n\n## Utiliser le module otp\n\n### Afficher le dictionaire de mot de passe :\n\n`cat /dev/otp_list`\n\n### Afficher le code TOTP actuel :\n\n`cat /dev/otp_totp`\n\n### Modifiere les paramamètres :\n\n`echo 5 | tee /sys/module/otp/parameters/otp_validity_duration`\n\n(it is not possible to change the parameter num_passords after the module is loaded)\n\n### Afficher les paramètres :\n\n`cat /sys/module/otp/parameters/num_passwords`\n\n## Utiliser l'utilitaire :\n\n```\nUsage: utilitaire\nOptions:\n  --add-password \u003cpassword\u003e         Add a password to the list\n  --set-totp-key \u003ckey\u003e              Set the TOTP key\\\n  --set-totp-interval \u003cinterval\u003e    Set the TOTP interval (in seconds)\n  --verify-password \u003cpassword\u003e      Verify a password from the list\n  --verify-totp \u003ccode\u003e              Verify a TOTP code\n  --help                            Show this message\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavphla%2Fkernel-otp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavphla%2Fkernel-otp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavphla%2Fkernel-otp/lists"}