Skip to content

A little tool to fastly test if Github tokens are valid

Notifications You must be signed in to change notification settings

edivangalindo/gh-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

gh-test

Sometimes, during the day as an offensive security engineer or bug hunter, we come across a leaked token and we need to test it. This tool was born out of my need to do this routinely with tokens coming from Github.

Single URL:

echo ghp_0000000000000000000000 | gh-test

Multiple tokens:

cat tokens.txt | gh-test

Installation

First, you'll need to install go.

Then run this command to download + compile gh-test:

go install github.com/edivangalindo/gh-test@latest

You can now run ~/go/bin/gh-test. If you'd like to just run gh-test without the full path, you'll need to export PATH="/go/bin/:$PATH". You can also add this line to your ~/.bashrc file if you'd like this to persist.

About

A little tool to fastly test if Github tokens are valid

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages