{"id":29595356,"url":"https://github.com/andreastedile/pkcs11-learning-old","last_synced_at":"2026-06-30T02:31:45.900Z","repository":{"id":253381141,"uuid":"843332645","full_name":"andreastedile/pkcs11-learning-old","owner":"andreastedile","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-19T19:35:07.000Z","size":137,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-15T19:02:32.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/andreastedile.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":"2024-08-16T09:31:00.000Z","updated_at":"2025-07-04T07:38:19.000Z","dependencies_parsed_at":"2024-11-05T20:22:45.208Z","dependency_job_id":"a2b45155-22ad-4996-ae18-3e44821bc21a","html_url":"https://github.com/andreastedile/pkcs11-learning-old","commit_stats":null,"previous_names":["andreastedile/pkcs11-learning"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andreastedile/pkcs11-learning-old","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreastedile%2Fpkcs11-learning-old","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreastedile%2Fpkcs11-learning-old/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreastedile%2Fpkcs11-learning-old/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreastedile%2Fpkcs11-learning-old/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreastedile","download_url":"https://codeload.github.com/andreastedile/pkcs11-learning-old/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreastedile%2Fpkcs11-learning-old/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34950328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"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":[],"created_at":"2025-07-20T08:08:29.685Z","updated_at":"2026-06-30T02:31:45.877Z","avatar_url":"https://github.com/andreastedile.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PKCS #11 learning\n\n## Run an attack\n\n```shell\npython learn_known_attacks.py -h\n```\n\nOutput:\n\n```text\nusage: learn_known_attacks.py [-h] so token_label user_pin\n\nPKCS#11 automaton learning\n\npositional arguments:\n  so           Shared object\n  token_label  Token label\n  user_pin     User PIN\n\noptions:\n  -h, --help   show this help message and exit\n```\n\nExample:\n\n```shell\npython learn_known_attacks.py /usr/local/lib/opencryptoki/libopencryptoki.so primo 1234\n```\n\n## Remove all results\n\n```shell\n./cleanup.sh\n```\n\n## Compare HSM models\n\nFirst, convert dot files to the aut format: https://mcrl2.org/web/user_manual/tools/lts.html.\nFor example:\n\n```shell\npython3 lts.py model.dot\n``` \n\nThen:\n\n```shell\nltscompare --counter-example --preorder=trace-ac model2.aut model1.aut\ntracepp --format=plain counter_example_trace_preorder.trc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreastedile%2Fpkcs11-learning-old","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreastedile%2Fpkcs11-learning-old","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreastedile%2Fpkcs11-learning-old/lists"}