Skip to content

Instantly share code, notes, and snippets.

View Anarbb's full-sized avatar
🏠
Working from home

Anas Arbaoui Anarbb

🏠
Working from home
View GitHub Profile
#########.
########",#:
#########',##".
##'##'## .##',##.
## ## ## # ##",#.
## ## ## ## ##'
## ## ## :##
## ## ##."
@Anarbb
Anarbb / add-key.bash
Created August 18, 2022 12:17
A quick script I made to check all the key-servers, Add this to your /usr/bin
#!/bin/bash
key_servers=("ha.pool.sks-keyservers.net" "hkp://p80.pool.sks-keyservers.net:80" "keyserver.ubuntu.com" "hkp://keyserver.ubuntu.com:80" "pgp.mit.edu")
for key_server in ${key_servers[@]}; do
echo "[+] Start checking ${key_server}..."
gpg --keyserver "${key_server}" --recv-keys ${1} && break || echo "[+] Trying new server..."
done