1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-11-14 03:01:13 +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 () {
local url="$1"
local url=$(echo "$1" | sed 's#^https\?://##')
local ip="$(dig +short "$url" | tail -1)"
whois "$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() {