Find and test API keys
List every single API key and its location
keytest check DIR
Find and perform every available check to any API key found with keytest check
:
keytest check DIR
The results can be saved to a markdown file:
keytest check DIR -o results.md
Input can also come from stdin:
cat some_file.txt | keytest check
Use of a proxy is also possible through HTTP or SOCKS5:
keytest check DIR --upstream-proxy socks5://127.0.0.1:2222
In any mode you can specify the number of workers. The workers are goroutines, so you can specify relatively high values.
The main concern is on some OSes, where the number of open file descriptors is capped (around 1024).
So take in mind every worker will have 1 file descriptor open.
Default value is 100
, but you can change it with the --workers
option.
keytest check DIR --workers 200
With go install
:
go install github.com/luastan/keytest@latest
With go install
:
go install -a github.com/luastan/keytest@latest