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:
parent
bb50eda917
commit
c76596f563
4
.zshrc
4
.zshrc
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user