{"id":18482872,"url":"https://github.com/spaze/upc_keys-lambda","last_synced_at":"2025-10-15T04:40:13.413Z","repository":{"id":151090261,"uuid":"59505433","full_name":"spaze/upc_keys-lambda","owner":"spaze","description":"Peter \"blasty\" Geissler's upc_keys.c with custom prefix support and Lambda sauce","archived":false,"fork":false,"pushed_at":"2017-03-21T23:13:48.000Z","size":10,"stargazers_count":17,"open_issues_count":1,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-10T00:17:33.314Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/spaze.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}},"created_at":"2016-05-23T17:45:57.000Z","updated_at":"2024-12-15T20:52:58.000Z","dependencies_parsed_at":"2023-04-12T13:46:42.126Z","dependency_job_id":null,"html_url":"https://github.com/spaze/upc_keys-lambda","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spaze/upc_keys-lambda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaze%2Fupc_keys-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaze%2Fupc_keys-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaze%2Fupc_keys-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaze%2Fupc_keys-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spaze","download_url":"https://codeload.github.com/spaze/upc_keys-lambda/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaze%2Fupc_keys-lambda/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279049858,"owners_count":26093368,"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-15T02:00:07.814Z","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":[],"created_at":"2024-11-06T12:31:34.752Z","updated_at":"2025-10-15T04:40:13.399Z","avatar_url":"https://github.com/spaze.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# upc_keys.c with custom prefix support and Lambda sauce\r\n\r\nThis is Peter \"blasty\" Geissler's [original upc_keys.c](https://haxx.in/upc_keys.c), modified to support custom prefixes. The output is also more machine-readable. This is what powers my [passphrase recovery tool for `UPC1234567` devices](https://upc.michalspacek.cz/).\r\n\r\nI run this code in [AWS Lambda](https://aws.amazon.com/lambda/), so I've included a [short howto](apigw.md) for setting it up, Node.js [wrapper](index.js), and [Makefile](Makefile) to make a .zip file to upload to Lambda.\r\n\r\n## Building it\r\n`make build` or `gcc -O3 -o upc_keys upc_keys.c -lcrypto`\r\n\r\n## Using it\r\n`upc_keys \u003cESSID\u003e \u003cPREFIXES\u003e`\r\n\r\nWhere:\r\n\r\n- `\u003cESSID\u003e` should be in `UPCxxxxxxx` format\r\n- `\u003cPREFIXES\u003e` should be a string of comma separated serial number prefixes\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaze%2Fupc_keys-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspaze%2Fupc_keys-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaze%2Fupc_keys-lambda/lists"}