Advertisement
fenix_of_fire

IP-finder

May 3rd, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.99 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. clear
  4. if [ "$*" != "-s" -a "$*" != "--start" ]; then
  5.     echo "'._____________    _____.__            .___                    ____    _______ '"
  6.     echo "'|   \______   \ _/ ____\__| ____    __| _/___________  ___  _/_   |   \   _  \'"
  7.     echo "'|   ||     ___/ \   __\|  |/    \  / __ |/ __ \_  __ \ \  \/ /|   |   /  /_\  \'"
  8.     echo "'|   ||    |      |  |  |  |   |  \/ /_/ \  ___/|  | \/  \   / |   |   \  \_/   \'"
  9.     echo "'|___||____|      |__|  |__|___|  /\____ |\___  >__|      \_/  |___| /\ \_____  /'"
  10.     echo "__________________________________________________________________________________"
  11.     echo -e "\n\n"
  12.     echo "'     \_______/'"
  13.     echo "' -.,-'\_____/--.,''                User: '$0 --start' "
  14.     echo "'  /-..'\ _ /-.,'\'                            -s  start for ip finder"
  15.     echo "' /  /-.,' -.,'\  \'"
  16.     echo "'/__/__/     \__\__\__'"
  17.     echo "'\  \  \     /  /  /'"
  18.     echo "' \  \,'-._,'-./  /'"
  19.     echo "'  \,'-./___\,'-./'                               By: Init-0 "
  20.     echo "' ,'--./_____\,-'-.'"
  21.     echo "'     /       \'"
  22.     echo
  23.     exit;
  24. fi
  25. if [ "$*" == "-s" -o "$*" == "--start" ]; then
  26.     echo "'._____________    _____.__            .___                    ____    _______ '"
  27.     echo "'|   \______   \ _/ ____\__| ____    __| _/___________  ___  _/_   |   \   _  \'"
  28.     echo "'|   ||     ___/ \   __\|  |/    \  / __ |/ __ \_  __ \ \  \/ /|   |   /  /_\  \'"
  29.     echo "'|   ||    |      |  |  |  |   |  \/ /_/ \  ___/|  | \/  \   / |   |   \  \_/   \'"
  30.     echo "'|___||____|      |__|  |__|___|  /\____ |\___  >__|      \_/  |___| /\ \_____  /'"
  31.     echo "__________________________________________________________________________________"
  32.     echo -e "\n\n"
  33.     echo "         1           1"
  34.     echo "        1 0 1100011 0 1                Welcome the IP FINDER "
  35.     echo "       1  11   &   11  1                Please set the ip target:"
  36.     echo "     10  1  @~   ~@  1  01"
  37.     echo " 1011   1 0  @~ ~@  0 1   1011"
  38.     echo "       0   1  @@@  1   1"
  39.     echo "      1    1.#####.1    1"
  40.     echo "   101        #w#        101                               By: Init-0 "
  41.     echo -e "\n"                                      
  42.     read -p "IP:----->> " IptargeT
  43. fi
  44. Bsearch="https://www.geoiptool.com/en/?ip="
  45. GET $Bsearch$IptargeT > gGeoIpTooLl.txt
  46. clear
  47. echo "Waiting tracking the target..."
  48. sleep 3
  49. clear
  50. IPaddress="$(cat gGeoIpTooLl.txt | grep "IP Address" | tail -n1 | cut -d">" -f2 | cut -d"<" -f1)"
  51. HOstname="$(echo "Hostname: "`cat gGeoIpTooLl.txt | grep td | tail -n1 | cut -d">" -f2 | cut -d"<" -f1`)"
  52. COuntry="$(cat gGeoIpTooLl.txt | grep "Country" | tail -n1 | cut -d">" -f2 | cut -d"<" -f1)"
  53. COuntryCODe="$(echo "Code: "`cat gGeoIpTooLl.txt | grep "span" | grep ")" | cut -d">" -f2 | cut -d"<" -f1 | tr "\n" "+" | cut -d"+" -f1`)"
  54. RregionN="$(echo "Region: "`cat gGeoIpTooLl.txt | grep "span" | grep Region -A 1 | tac | cut -d">" -f2 | cut -d"<" -f1 | tr "\n" "+" | cut -d"+" -f 1`)"
  55. CIty="$(cat gGeoIpTooLl.txt | grep "City" | tail -n1 | cut -d">" -f2 | cut -d"<" -f1)"
  56. LAtitude="$(echo "Latitude: "`cat gGeoIpTooLl.txt | grep "lat" | grep ":" | tail -n1 | tr -d "{}" | cut -d" " -f2 | tr -d ","`)"
  57. LOngitude="$(echo "Longitude: "`cat gGeoIpTooLl.txt | grep "lat" | grep ":" | tail -n1 | tr -d "{}" | cut -d" " -f4 | tr -d ","`)"
  58. echo "             0"
  59. echo "             0"
  60. echo "             1"
  61. echo "             0"
  62. echo "             0"
  63. echo "        1    1    1"
  64. echo "       0 1   1   1 0          $HOstname"
  65. echo "      1   0010110   1         $IPaddress"
  66. echo "     1   1101&1011   1        $COuntry"
  67. echo " 1010 1  101010111  1 1001    $COuntryCODe"
  68. echo "     1 1 1@~101~@1 1 1        $RregionN"
  69. echo "  101   1 1@~~~@1 1   110     $CIty"
  70. echo "      1111 1@@@1 1101         $LAtitude"
  71. echo "     1  1   0w0   0  1        $LOngitude"
  72. echo "   01  0    1 1    1  01"
  73. echo "        1         1"
  74. echo "         1       1                                         By: Init-0 "
  75. echo
  76. rm -rf gGeoIpTooLl.txt
  77. exit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement