Skip to content

Instantly share code, notes, and snippets.

View sht's full-sized avatar

Taji sht

View GitHub Profile
# How to get a github user info from token?
# How to get github username from token?
# Scenario: you have found a github personal access token of someone, how will you to which user/account this token belongs to?
# Below mention script is the quick way
import requests
token = "xyz"
headers = {'Authorization': 'token ' + token}
login = requests.get('https://api.github.com/user', headers=headers)
import socket, threading, time, subprocess, sys
from queue import Queue
subprocess.call('clear', shell=True)
print_lock = threading.Lock()
#target = input ('Enter host: ')
target = sys.argv[1]
start_time = time.time()
package main
import (
"context"
"fmt"
"net"
"os/exec"
"strconv"
"strings"
"sync"
@sht
sht / findPublicKey.md
Last active April 16, 2021 10:35
Find github user's public key

How to find a Public key of any github user?

https://github.com/username.keys

Example:

https://github.com/imtaji.keys

curl https://github.com/imtaji.keys

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDVBQ6Jx5+l/oF8S4l2PaDehQk0YIStUhXnLH2VC7LNvM8KntU1zf2kpptvwDlfgAbrzw1O/ny+QSfBMaFsovPLSwHK2QMoKj131TLbQCJX0/Lu/m0y7ouwrMS0uR3S1S+F2PSe1KGZ1mInJY8NauB1gDwis+B4GaNWGEnEBNcsI00fs+ok/5tl4EAjWXMTq/VIypslqEeQ8SKAmV4n9X/+dIbtXpCOgsNfcRSJvu9QihuNKnD+SjI78VB0z0ShfqKsNxQv7EWjwk0B0ot4DRIXg38oK/yylJDJWylB/HPM6eHxUV36/op4ATtlLYpNp3NA/PoEG1cA3Sw3W6BTtGbTViRQ+ERw/X65kaasXH8B+Cf/WQdj53z0NsdEZKlgV9VfJoy6tPzuoVKhO0kr+gYRB4PP8FFGSakBTOeyFtFI9DfLoUS2S2dR6NWgzTaSE9Ns9mpGUjfAoePlsRIzsllZENc2XeDDI5rbIa1omor0Rv+gzQ0oGnS6Lilq+PpiSmpVYNm1ynfhmg621k18Xuz9gLF/KsdH8HLHXCksU5q/aUmdMea+XFL62rik+oqxJesAdfSo7v7ZGjnzhfBOr3aQAYGlEmyJcD5d256Dt4nUnytpBi4U6gIVP9oL8s0jRlFUb7MFCUxNzPvdn1nxJChPr7tSEke3HyhGw2K8PFhYJw==

Keybase proof

I hereby claim:

  • I am imtaji on github.
  • I am tajinder (https://keybase.io/tajinder) on keybase.
  • I have a public key ASCYf3XSZZmiRrPNEOxjopYuUXLG66KRAHkvJ8oMEDj4fgo

To claim this, I am signing this object: