keyscanz
Scan git repos for private keys and mnemonics.
- Needs
git
installed - Will clone the repo to a local dir and delete it after the scan is done
- Will check the diff of the first 5000 commits, starting with the first commit
- Scans for BIP39 valid mnemonics between 12 and 25 words
- Scans for 64 character hex strings (either starting with
0x
or not)
Installation
npm install keyscanz
Usage
import keyscanz from "keyscanz";
const runScan = async () => {
const results = await keyscanz.github("trassmann/keyscanz");
const results = await keyscanz.gitlab("trassmann/keyscanz");
const results = await keyscanz.scan(
"https://some-full-url.org/trassmann/keyscanz"
);
};
runScan();