1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 11:38:00 +00:00

[.zshrc] Update siteinfo function

This commit is contained in:
Daniel Carrillo 2024-06-09 12:19:46 +02:00
parent bb50eda917
commit c76596f563
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16

4
.zshrc
View File

@ -81,12 +81,12 @@ kexec () {
} }
siteinfo () { siteinfo () {
local url="$1" local url=$(echo "$1" | sed 's#^https\?://##')
local ip="$(dig +short "$url" | tail -1)" local ip="$(dig +short "$url" | tail -1)"
whois "$ip" whois "$ip"
echo "Technology detected for $url with IP $ip" echo "Technology detected for $url with IP $ip"
httpx -silent -json -follow-redirects -ip -tech-detect -target "$url" | jq -rc '.tech' httpx-toolkit -silent -json -follow-redirects -ip -tech-detect -target "$url" | jq -rc '.tech'
} }
remove_from_hist() { remove_from_hist() {