Skip to content

Instantly share code, notes, and snippets.

rm ~/.git-credentials
gh auth logout
git config --global --unset-all credential.https://github.com.helper
git config --global --unset-all credential.https://gist.github.com.helper
git config --list --show-origin | grep credential
[ble: exit 1]
# save new
git config --global credential.helper store
# https://api.hackerone.com/hacker-resources/#programs-get-structured-scopes
# https://api.hackerone.com/hacker-resources/#programs-get-programs
# https://api.hackerone.com/getting-started/#rate-limits
HONE_API="<YOUR_API_USERNAME>:<YOUR_API_TOKEN>"
for i in {0..8}; do curl -u $HONE_API "https://api.hackerone.com/v1/hackers/programs?page\[size\]=100&page\[number\]=$i" -s \
| jq -r '.data[].attributes.handle'; done | tee handles.txt
cat handles.txt | while read handle; do curl -s "https://api.hackerone.com/v1/hackers/programs/${handle}/structured_scopes" \
[ "$#" -t 0 ] && echo "Not piped"
# ───────── STRING TESTS ─────────
[ -z "$var" ] # true if string is empty or unset
[ -n "$var" ] # true if string is non-empty
[ "$a" = "$b" ] # true if strings are equal
[ "$a" != "$b" ] # true if strings are not equal
latest_version=$(curl "https://go.dev/dl/?mode=json" -s | jq -r ".[0].version")
command -v jq || sudo apt install jq
echo "[+] Installing ${latest_version}"
wget "https://go.dev/dl/"${latest_version}".linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "${latest_version}".linux-amd64.tar.gz
/usr/local/go/bin/go version
# echo """
# # Added by go installer