https://github.com/spaze/upc_keys-lambda
Peter "blasty" Geissler's upc_keys.c with custom prefix support and Lambda sauce
https://github.com/spaze/upc_keys-lambda
Last synced: about 2 months ago
JSON representation
Peter "blasty" Geissler's upc_keys.c with custom prefix support and Lambda sauce
- Host: GitHub
- URL: https://github.com/spaze/upc_keys-lambda
- Owner: spaze
- Created: 2016-05-23T17:45:57.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-21T23:13:48.000Z (about 8 years ago)
- Last Synced: 2025-03-23T16:51:22.157Z (3 months ago)
- Language: C
- Size: 9.77 KB
- Stars: 17
- Watchers: 4
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# upc_keys.c with custom prefix support and Lambda sauce
This 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/).
I 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.
## Building it
`make build` or `gcc -O3 -o upc_keys upc_keys.c -lcrypto`## Using it
`upc_keys `Where:
- `` should be in `UPCxxxxxxx` format
- `` should be a string of comma separated serial number prefixes