Initial commit

This commit is contained in:
2020-06-27 15:56:54 +02:00
commit c3200c91db
65 changed files with 2701 additions and 0 deletions
@@ -0,0 +1,3 @@
function fish_greeting
welcome
end
@@ -0,0 +1,21 @@
###
# Looks up the IPv4 address of the given hostname and tries to find the reverse record of that IP
#
# Globals:
# None
# Arguments:
# $domain string Hostname to look up
# Returns:
# None
###
function nsreverse
# lookup IP
set ip (dig "$argv[1]" A +short); or return 1
# lookup reverse record
set reverse (dig -x "$ip" +short); or return 1
# output
echo -e "\033[1mIPv4: \033[0;34m $ip\033[0m"
echo -e "\033[1mReverse lookup:\033[0;34m $reverse\033[0m"
end
@@ -0,0 +1,21 @@
###
# Looks up the IPv6 address of the given hostname and tries to find the reverse record of that IP
#
# Globals:
# None
# Arguments:
# $domain string Hostname to look up
# Returns:
# None
###
function nsreverse6
# lookup IP
set ip (dig "$argv[1]" AAAA +short); or return 1
# lookup reverse record
set reverse (dig -x "$ip" +short); or return 1
# output
echo -e "\033[1mIPv6: \033[0;34m $ip\033[0m"
echo -e "\033[1mReverse lookup:\033[0;34m $reverse\033[0m"
end