-
Notifications
You must be signed in to change notification settings - Fork 0
/
reverseip.sh
34 lines (28 loc) · 1015 Bytes
/
reverseip.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Info:
# author: Santhosh veer
# file: reverseip.sh
# created: 22.02.2018
# revision: 22.02.2018
# version: 0.1
# -----------------------------------------------------------------------------
# Requirements:
# curl, jq
# Description:
# Reverse IP Lookup - Simple Shell script to Find the Domains which Hosted from same server/ip.
# Using viewdns.info API Key
# -----------------------------------------------------------------------------
# viewdns.info API KEY
API="YOUR API KEY"
echo -n "Enter Domain or IP: "
read -r weburlip
echo -e "\\033[1;32m [+] Reverse IP Lookup Started... \\033[0m"
# If no URL you will see this Alert message
if [[ ! $weburlip ]]; then
echo -e "\\033[1;31m Error URL/IP Missing \\033[0m \\n"
exit 1
fi
# Curl request
curl -s --request GET \
--url "https://api.viewdns.info/reverseip/?host=$weburlip&apikey=$API&output=json" \ | jq