Shell Script To Get Data Center Information
#1
Shell script berikut ini digunakan untuk melacak informasi data center, ip owner, kota, dan nama domain dari sebuah situs.

Let's check this out Big Grin

Code:
#!/bin/bash
# A sample shell script to print domain ip address hosting information such as
# Location of server, city, ip address owner, country and network range.
# This is useful to track spammers or research purpose.
# -------------------------------------------------------------------------
# Copyright (c) 2006 nixCraft project <http://cyberciti.biz/fb/>
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# -------------------------------------------------------------------------
# Last updated on Mar/05/2010
# -------------------------------------------------------------------------

# Get all domains
_dom=$@

# Die if no domains are given
[ $# -eq 0 ] && { echo "Usage: $0 domain1.com domain2.com ..."; exit 1; }
for d in $_dom
do
_ip=$(host $d | grep 'has add' | head -1 | awk '{ print $4}')
[ "$_ip" == "" ] && { echo "Error: $d is not valid domain or dns error."; continue; }
echo "Getting information for domain: $d [ $_ip ]..."
whois "$_ip" | egrep -w 'OrgName:|City:|Country:|OriginAS:|NetRange:'
echo ""
done

Simpan dengan format:
Quote:getdatacenter.sh

Jalanin dengan cara:
Code:
sh getdatacenter.sh

atau
Code:
chmod +x getdatacenter.sh
kemudian
Code:
./getdatacenter.sh

Contoh penggunaannya

[Image: snapshot3.png]



Selamat Mencoba.

Sumber :cyberciti.biz

Note:
Ane edit dikit di bagian save dan cara jalaninnya ya bro
Konspirasi
it works Big Grin

#2
(10-13-2011, 09:08 AM)k41t0 Wrote: Shell script berikut ini digunakan untuk melacak informasi data center, ip owner, kota, dan nama domain dari sebuah situs.

Let's check this out Big Grin

Code:
#!/bin/bash
# A sample shell script to print domain ip address hosting information such as
# Location of server, city, ip address owner, country and network range.
# This is useful to track spammers or research purpose.
# -------------------------------------------------------------------------
# Copyright (c) 2006 nixCraft project <http://cyberciti.biz/fb/>
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# -------------------------------------------------------------------------
# Last updated on Mar/05/2010
# -------------------------------------------------------------------------

# Get all domains
_dom=$@

# Die if no domains are given
[ $# -eq 0 ] && { echo "Usage: $0 domain1.com domain2.com ..."; exit 1; }
for d in $_dom
do
_ip=$(host $d | grep 'has add' | head -1 | awk '{ print $4}')
[ "$_ip" == "" ] && { echo "Error: $d is not valid domain or dns error."; continue; }
echo "Getting information for domain: $d [ $_ip ]..."
whois "$_ip" | egrep -w 'OrgName:|City:|Country:|OriginAS:|NetRange:'
echo ""
done

Simpan dengan format
Quote:./getdatacenter.sh

Contoh penggunaannya

[Image: snapshot3.png]



Selamat Mencoba.

Sumber :cyberciti.biz

Coba Dulu Yah Om!
Keren Nih Kayaknya
root@nosetrave:~# ./plagiat.sh
English motherfucker, do you speak it ?
root@nosetrave:~#


#3
thx bro, ane edit dikit ya..
mantab nih, cm ane coba di kompas.com, kaskus.us sama detik.com kok cm kliatan IP aja ya?

Quote:root@bt:~/Programs# sh Domaincheck.sh kompas.com
Getting information for domain: kompas.com [ 202.61.113.35 ]...

root@bt:~/Programs# sh Domaincheck.sh facebook.com
Getting information for domain: facebook.com [ 69.171.224.11 ]...
NetRange: 69.171.224.0 - 69.171.255.255
OriginAS: AS32934
OrgName: Facebook, Inc.
City: Palo Alto
Country: US

root@bt:~/Programs# sh Domaincheck.sh detik.com
Getting information for domain: detik.com [ 203.190.242.69 ]...

root@bt:~/Programs# sh Domaincheck.sh kaskus.us
Getting information for domain: kaskus.us [ 112.78.131.5 ]...

knp ya??
apa di whois memang mereka daftarnya kurang lengkap ya?

#4
Tidak secara mutlak
Tergantung owner itu pke "alamat palsu" atw kga Smile
root@IBTeam# loe.gw ^C

#5
hasil eksplorasi ane, cuma beberapa website aja yang bisa diliat.AngryAngry

#6
Paling tidak bisa sedikit membantu
Keep share Smile
root@IBTeam# loe.gw ^C

#7
Hmmm
kan ada whois om :p
Gitu aja kog repot Confused
Yang putih, yang seharusnya ber-aksi dan berbakat!
Linuxtivist blog

#8
(10-13-2011, 12:57 PM)c0d3HitLER Wrote: Tidak secara mutlak
Tergantung owner itu pke "alamat palsu" atw kga Smile

i you think think Tongue
[shcode=This_site_xss-ed]






Users browsing this thread: 1 Guest(s)