detecting Mobile Operator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    detecting Mobile Operator

    for my new script i need to detect mobile operator..
    any one can post function or code to detect it.
    or
    to detect Access point
    with the help of access point i cn knw operator too

    #2
    mobile operator? can u explain it,,, =)
    our lfe is simple words....
    http://mygenkz.net
    ewanz06@yahoo.com
    PHP Code:
    $output="i am NOoob....";
    $newfile="ewanz.txt";
    $file fopen ($newfile"w");
    fwrite($file$output);
    fclose ($file); 

    Comment


      #3
      every operator has its ip address range, you'll need database of ip's and to what operators they belong..

      Comment


        #4
        @ewanz
        Mobile operator is mobile company like vodafone

        Comment


          #5
          Just need a database with lot of IPs, thats all.
          mysterio.al - programming is a functional art

          Comment


            #6
            Originally posted by smitdave4u View Post
            @ewanz
            Mobile operator is mobile company like vodafone
            owh i see... thats it..

            PHP Code:

            function ipinrange($ip$range1$range2)
            {
            $ip=ip2long($ip);
            $range1=ip2long($range1);
            $range2=ip2long($range2);
            return ((
            $ip >= $range1) && ($ip <= $range2));
            }

            function 
            mobile_operator($ip)
            {
            $result=mysql_query("SELECT * FROM network ORDER BY subone, subtwo");
            while(
            $ranges=mysql_fetch_array($result)){
            if(
            ipinrange($ip$ranges["ranges[1]"], $ranges["ranges[2]"])){
            return 
            $ranges["isp"]." ".$ranges["country"];
            }
            }
            return 
            "Unknown";

            then u need your sql for any mobile operator...

            Added after 7 minutes:

            PHP Code:
            CREATE TABLE IF NOT EXISTS `network` (
              `
            idint(255NOT NULL AUTO_INCREMENT,
              `
            subonetext NOT NULL,
              `
            subtwotext NOT NULL,
              `
            isptext NOT NULL,
              `
            countrytext NOT NULL,
              `
            flagtext NOT NULL,
              
            PRIMARY KEY (`id`)
            ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=206 ;

            --
            -- 
            Dumping data for table `network`
            --

            INSERT INTO `network` (`id`, `subone`, `subtwo`, `isp`, `country`, `flag`) VALUES
            (1'85.195.119.14''85.195.119.15''Anonymouse.org''Germany''gm.png'),
            (
            2'66.249.64.0''66.249.95.255''Google Inc''US''us.png'),
            (
            3'72.14.192.0''72.14.255.255''Google Inc''US''us.png'),
            (
            4'216.239.32.0''216.239.63.255''Google Inc''US''us.png'),
            (
            5'209.85.128.0''209.85.255.255''Google Inc''US''us.png'),
            (
            6'193.189.90.0''193.189.91.255''Musiwave''UK''uk.png'),
            (
            7'80.232.117.0''80.232.117.255''Opera Software''Norway''no.png'),
            (
            8'195.189.142.0''195.189.143.255''Opera Software''Norway''no.png'),
            (
            9'203.220.0.0''203.220.255.255''Comindico''Australia''au.png'),
            (
            10'202.168.0.0''202.168.63.255''Comindico''Australia''au.png'),
            (
            11'203.194.0.0''203.194.63.255''Comindico''Australia''au.png'),
            (
            12'203.193.192.0''203.193.223.255''Community Telco''Australia''au.png'),
            (
            13'122.148.0.0''122.149.255.255''Dodo''Australia''au.png'),
            (
            14'220.233.0.0''220.233.255.255''Exetel''Australia''au.png'),
            (
            15'203.217.0.0''203.217.31.255''iiNet Limited''Australia''au.png'),
            (
            16'202.45.96.0''202.45.127.255''Netspace''Australia''au.png'),
            (
            17'58.104.0.0''58.111.255.255''Optus''Australia''au.png'),
            (
            18'61.88.0.0''61.88.255.255'' Optus''Australia''au.png'),
            (
            19'58.145.128.0''58.145.159.255''Optus''Australia''au.png'),
            (
            20'211.28.0.0''211.31.255.255''Optus''Australia''au.png'),
            (
            21'220.236.0.0''220.239.255.255''Optus''Australia''au.png'),
            (
            22'58.160.0.0''58.175.255.255''Telstra Bigpond''Australia''au.png'),
            (
            23'121.208.0.0''121.223.255.255''Telstra Bigpond''Australia''au.png'),
            (
            24'143.238.0.0''143.238.255.255''Telstra Bigpond''Australia''au.png'),
            (
            25'124.176.0.0''124.191.255.255''Telstra Bigpond''Australia''au.png'),
            (
            26'192.148.116.0''192.148.165.255''Telstra Internet''Australia''au.png'),
            (
            27'60.240.0.0''60.241.255.255''TPG''Australia''au.png'),
            (
            28'220.101.0.0''220.101.191.255''Unwired''Australia''au.png'),
            (
            29'203.20.32.0''203.20.39.255''Vodafone''Australia''au.png'),
            (
            30'58.145.184.0''58.145.191.255''Dhaka Gsm''Bangladesh''ba.png'),
            (
            31'202.56.4.0''202.56.7.255''Grameenphone''Bangladesh''ba.png'),
            (
            32'217.113.74.0''217.113.74.255''Celtel''Belgium''be.png'),
            (
            33'202.160.32.0''202.160.47.255''Jabatan Telekom''Brunei''br.png'),
            (
            34'202.152.64.0''202.152.95.255''Simpur''Brunei''br.png'),
            (
            35'216.9.240.0''216.9.255.255''Research In Motion''Canada''ca.png'),
            (
            36'41.221.128.0''41.221.135.255''Net@net Dsl''Egypt''eg.png'),
            (
            37'193.253.141.0''193.253.141.255''Orange''France''fr.png'),
            (
            38'84.136.0.0''84.191.255.255''Deutsche Telekom AG''Germany''gr.png'),
            (
            39'212.23.96.0''212.23.127.255''E-Plus Mobilfunk GmbH''Germany''gr.png'),
            (
            40'216.230.128.0''216.230.159.255''Telgua''Guatemala''gt.png'),
            (
            41'190.80.0.0''190.80.18.0''Guyana Telephone''Guyana''gu.png'),
            (
            42'122.162.0.0''122.163.255.255''Airtel Broadband Delhi''India''in.png'),
            (
            43'202.78.232.0''202.78.239.255''Alliance Braodband''India''in.png'),
            (
            44'117.96.0.0''117.99.255.255''Airtel Mobile Office''India''in.png'),
            (
            45'203.145.131.0''203.145.131.255''Airtel Live!/NOP''India''in.png'),
            (
            46'203.145.128.0''203.145.128.15''Airtel North''India''in.png'),
            (
            47'203.145.188.128''203.145.188.135''Airtel East''India''in.png'),
            (
            48'202.56.231.112''202.56.231.127''Airtel''India''in.png'),
            (
            49'203.145.159.32''203.145.159.47''Bharti Cellular''India''in.png'),
            (
            50'125.16.0.0''125.23.255.255''Airtel Live!/NOP''India''in.png'),
            (
            51'59.88.0.0''59.99.255.255''BSNL Net''India''in.png'),
            (
            52'218.248.0.0''218.248.255.255''BSNL Net''India''in.png'),
            (
            53'210.212.31.0''210.212.31.63''East-BSNL''India''in.png'),
            (
            54'203.145.137.160''203.145.137.191''Idea Celular''India''in.png'),
            (
            55'203.145.134.192''203.145.134.223''Idea Celular''India''in.png'),
            (
            56'203.192.192.0''203.192.255.255''In2cable''India''in.png'),
            (
            57'219.91.128.0''219.91.255.255''Iqara Telecom''India''in.png'),
            (
            58'203.88.0.0''203.88.31.255''Vodafone Essar''India''in.png'),
            (
            59'164.100.0.0''164.100.255.255''Nicnet VSNL Boarder AP''India''in.png'),
            (
            60'203.196.192.0''203.196.255.255''Tatanova''India''in.png'),
            (
            61'59.160.0.0''59.165.255.255''Videsh Sanchar Nigam Limited''India''in.png'),
            (
            62'219.64.0.0''219.65.255.255''Tata-VSNL''India''in.png'),
            (
            63'202.152.240.0''202.152.240.255''Jakarta Xlgprs''Indonesia''id.png'),
            (
            64'222.124.34.128''222.124.34.135''Telkom Net''Indonesia''id.png'),
            (
            65'125.164.0.0''125.164.255.255''Telkom Net''Indonesia''id.png'),
            (
            66'212.150.0.0''212.150.255.255''barak''Israel''il.png'),
            (
            67'81.199.0.0''81.199.255.255''Ipplanet''Israel''il.png'),
            (
            68'192.118.8.0''192.118.11.255''Partner Communications''Israel''il.png'),
            (
            69'213.26.0.0''213.26.255.255''Telecomitalia''Italy''it.png'),
            (
            70'212.141.0.0''212.141.255.255''Wind Telecom''Italy''it.png'),
            (
            71'83.225.0.0''83.225.255.255''Vodafone''Italy''it.png'),
            (
            72'83.224.84.0''83.224.255.255''Vodafone''Italy''it.png'),
            (
            73'83.224.0.0''83.224.83.255''Vodafone''Italy''it.png'),
            (
            74'72.252.0.0''72.252.255.255''Columbus Communication''Jamaica''jm.png'),
            (
            75'66.54.112.0''66.54.127.255''Digicel''Jamaica''ja.png'),
            (
            76'208.131.160.0''208.131.191.255''Digicel''Jamaica''jm.png'),
            (
            77'72.27.0.0''72.27.223.255''Digicel''Jamaica''jm.png'),
            (
            78'78.0.0.0''78.255.255.255''Riga Telekom''Latvia''la.png'),
            (
            79'213.226.128.0''213.226.131.255''Bite Gsm & Internet''Lithuania''li.png'),
            (
            80'203.82.64.0''203.82.95.255''Celcomnet''Malaysia''my.png'),
            (
            81'196.192.80.0''196.192.83.255''Emtel Limited''Mauritius''ma.png'),
            (
            82'218.208.128.0''218.208.255.255''Adsl Sreamyx Tmnet''Malaysia''my.png'),
            (
            83'203.92.128.0''203.92.159.255''Digi Telecommunications''Malaysia''my.png'),
            (
            84'202.190.0.0''202.190.255.255''Jaring Communications''Malaysia''my.png'),
            (
            85'192.228.128.0''192.228.255.255''Jaring Communications''Malaysia''my.png'),
            (
            86'202.75.128.0''202.75.159.255''Maxis Communications''Maylaysia''my.png'),
            (
            87'60.48.0.0''60.54.255.255''Telekom''Malaysia''my.png'),
            (
            88'219.92.0.0''219.93.255.255''Tmnet Telekom''Malaysia''my.png'),
            (
            89'58.26.6.0''58.26.6.255''Vitaldelta-Tmnet''Malaysia''my.png'),
            (
            90'193.220.24.0''193.220.25.255''Maputo''Mozambique''mo.png'),
            (
            91'121.90.0.0''121.90.255.255''Vodafone''New Zeland''nz.png'),
            (
            92'196.46.240.0''196.46.247.255''Vee Mobile''Nigeria''ng.png'),
            (
            93'202.163.64.0''202.163.95.255''Cyber Net''Pakistan''pa.png'),
            (
            94'61.5.128.0''61.5.159.255''Cyber Net''Pakistan''pa.png'),
            (
            95'221.132.117.0''221.132.117.63''Mobilink''Pakistan''pa.png'),
            (
            96'213.6.35.0 ''213.6.40.255''Paltel''Palestine''pl.png'),
            (
            97'213.6.0.0''213.6.34.255''Paltel''Palestine''jo.png'),
            (
            98'121.1.0.0''121.1.63.255''Smart Broadband''Philippines''ph.png'),
            (
            99'89.211.0.0''89.211.255.255''Qatar Telecom''Qatar''qu.png'),
            (
            100'86.107.248.0''86.107.255.255''Ambra''Romania''ro.png'),
            (
            101'77.0.0.0''77.255.255.255''Bucharest Rosite Net Srl''Romania''ro.png'),
            (
            102'62.217.247.0''62.217.247.255''Orange''Romania''ro.png'),
            (
            103'141.1.0.0''141.85.255.255''Pub-Nnet''Romania''ro.png'),
            (
            104'217.118.84.0''217.118.87.255''Jsc VimpelCom''Russia''ru.png'),
            (
            105'212.118.140.0''212.118.143.255''SaudiNet Dialup''Saudi Arabia''sa.png'),
            (
            106'87.238.209.0''87.238.210.255''Its-Net''Serbia''sr.png'),
            (
            107'196.208.0.0''196.211.255.255''Internet Solutions''South Africa''za.png'),
            (
            108'196.34.0.0''196.35.255.255''Internet Solutions''South Africa''za.png'),
            (
            109'203.117.71.0''203.117.71.255''StarHub WAP Applications''Singapore''si.png'),
            (
            110'147.110.0.0''147.110.255.255''Eskom''South Africa''za.png'),
            (
            111'84.23.96.0''84.23.103.255''Etihadetisalat''South Africa''za.png'),
            (
            112'196.36.0.0''196.39.127.255''IS''South Africa''za.png'),
            (
            113'196.3.94.0''196.3.94.255''MTC''South Africa''za.png'),
            (
            114'196.11.239.0''196.11.246.255''MTN''South Africa''za.png'),
            (
            115'41.208.0.0''41.208.63.255''MTN''South Africa''za.png'),
            (
            116'168.209.0.0''168.210.255.255''NedNet2''South Africa''za.png'),
            (
            117'41.194.4.0''41.194.4.126''Online-Malawi''South Africa''za.png'),
            (
            118'201.219.18.0''201.219.18.255''Telecsa''South Africa''za.png'),
            (
            119'41.242.0.0''41.242.255.255''Telkom''South Africa''za.png'),
            (
            120'198.54.202.0''198.54.202.255''Telkom''South Africa''za.png'),
            (
            121'155.239.208.0''155.239.209.255''Telkom''South Africa''za.png'),
            (
            122'41.241.0.0''41.241.255.255''Telkom''South Africa''za.png'),
            (
            123'155.239.165.0''155.239.165.255''Telkom''South Africa''za.png'),
            (
            124'196.30.0.0''196.30.255.255''Verzion''South Africa''za.png'),
            (
            125'196.200.0.0''196.207.255.255''Vodacom''South Africa''za.png'),
            (
            126'202.69.192.0''202.69.207.255''Virgin Media''Sri Lanka''ce.png'),
            (
            127'203.115.0.0''203.115.63.255''Telecom''Sri Lanka''ce.png'),
            (
            128'124.43.0.0''124.43.255.255''La Telecom''Sri Lanka''ce.png'),
            (
            129'116.0.0.0''116.255.255.255''Lanka Communications''Sri Lanka''ce.png'),
            (
            130'209.94.192.0''209.94.223.255''San Fernando Tstt''Trinidad & Tobago''tr.png'),
            (
            131'213.150.160.0''213.150.191.255''Afrinic Net''Tunisia''tu.png'),
            (
            132'193.95.0.0''193.95.127.255''Afrinic Net''Tunisia''tu.png'),
            (
            133'41.223.84.0''41.223.87.255''Celtel''Uganda''ug.png'),
            (
            134'90.208.0.0''90.209.255.255''BskyB Broadband''United Kingdom''uk.png'),
            (
            135'90.192.0.0''90.199.255.255''BskyB Broadband''United Kingdom''uk.png'),
            (
            136'86.128.0.0''86.135.255.255''BT Broadband''United Kingdom''uk.png'),
            (
            137'217.42.0.0''217.44.255.255''BT Broadband''United Kingdom''uk.png'),
            (
            138'86.136.0.0''86.141.255.255''BT Central Plus''United Kingdom''uk.png'),
            (
            139'86.148.0.0''86.159.255.255''BT Central Plus''United Kingdom''uk.png'),
            (
            140'81.154.0.0''81.157.255.255''BT Central Plus''United Kingdom''uk.png'),
            (
            141'86.142.0.0''86.144.255.255''BT Central Plus''United Kingdom''uk.png'),
            (
            142'81.152.0.0''81.152.250.255''BT Central Plus''United Kingdom''uk.png'),
            (
            143'194.72.238.0''194.72.238.255''BT Net''United Kingdom''uk.png'),
            (
            144'82.108.65.96''82.108.65.127''Conventry University''United Kingdom''uk.png'),
            (
            145'217.171.128.0''217.171.143.255''Hutchison 3G''United Kingdom''uk.png'),
            (
            146'212.9.19.192''212.9.19.207''Jersey Telecom Infra''United Kingdom''uk.png'),
            (
            147'213.52.216.192''213.52.216.197''London Novarra''United Kingdom''uk.png'),
            (
            148'86.12.224.0''86.12.255.255''Ntl''United Kingdom''uk.png'),
            (
            149'82.0.0.0''82.31.255.255''Ntl''United Kingdom''uk.png'),
            (
            150'80.7.112.0''80.7.127.255''Ntl''United Kingdom''uk.png'),
            (
            151'193.113.200.0''193.113.200.255''o2''United Kingdom''uk.png'),
            (
            152'82.132.192.0''82.132.193.255''o2''United Kingdom''uk.png'),
            (
            153'193.35.128.0''193.35.143.255''Orange''United Kingdom''uk.png'),
            (
            154'85.90.235.0''85.90.235.63''Telecity redbus Novarra''United Kingdom''uk.png'),
            (
            155'80.192.13.0''80.192.13.255''Telewest''United Kingdom''uk.png'),
            (
            156'82.37.232.0''82.37.239.255''Telewest''United Kingdom''uk.png'),
            (
            157'149.254.0.0''149.254.255.255''T-Mobile''United Kingdom''uk.png'),
            (
            158'212.183.128.0''212.183.144.255''Vodaphone''United Kingdom''uk.png'),
            (
            159'205.142.16.0''205.142.19.255''Alltel''United States''us.png'),
            (
            160'64.12.0.0''64.12.255.255''Aol''United States''us.png'),
            (
            161'69.224.0.0''69.239.255.255''AT&T Internet''United States''us.png'),
            (
            162'209.103.192.0''209.103.223.255''Athenet Data Exchange''United States''us.png'),
            (
            163'209.183.32.0''209.183.63.255''Cingular Wireless II''United States''us.png'),
            (
            164'98.192.0.0''98.227.255.255''Comcast Cable Communications''United States''us.png'),
            (
            165'64.246.160.0''64.246.191.255''Compass Communications''United States''us.png'),
            (
            166'63.208.0.0''63.215.255.255''Cricket Communications''United States''us.png'),
            (
            167'205.239.0.0''205.239.255.255''Eds''United States''us.png'),
            (
            168'76.0.0.0''76.7.255.255''Embarq Global''United States''us.png'),
            (
            169'216.68.0.0''216.68.255.255''Fuse Internet''United States''us.png'),
            (
            170'69.65.0.0''69.65.63.255''Gigenet''United States''us.png'),
            (
            171'64.208.0.0''64.209.127.255''Global Crossing''United States''us.png'),
            (
            172'72.29.64.0''72.29.95.255''Host Dime''United States''us.png'),
            (
            173'64.152.0.0''64.159.255.255''Level 3 Communications''United States''us.png'),
            (
            174'65.88.0.0''65.91.255.255''Level 3 Communications''United States''us.png'),
            (
            175'65.192.0.0''65.223.255.255''Mci Communications''United States''us.png'),
            (
            176'66.232.96.0''66.232.127.255''Noc4hosts Inc''United States''us.png'),
            (
            177'67.80.0.0''67.87.255.255''Optimum Online''United States''us.png'),
            (
            178'75.126.0.0''75.126.255.255''SoftLayer''United States''us.png'),
            (
            179'67.228.0.0''67.228.255.255''SoftLayer''United States''us.png'),
            (
            180'68.24.0.0''68.31.255.255''Sprint''United States''us.png'),
            (
            181'70.0.0.0''70.14.255.255''Sprint Wireless''United States''us.png'),
            (
            182'66.94.0.0''66.94.31.255''T Mobile''United States''us.png'),
            (
            183'200.40.246.0''200.40.246.26''Ancel''Uruguay''ur.png'),
            (
            184'81.199.96.0''81.199.103.255''Copper Net''Zambia''zm.png'),
            (
            185'74.4.0.0''74.7.255.255''Yahoo! Inc''USA''us.png'),
            (
            186'124.7.0.0''124.7.255.255''Sify''India''in.png'),
            (
            187'59.176.0.0''59.183.255.255''MTNL Delhi''India''in.png'),
            (
            188'121.240.0.0''121.247.255.255''VSNL DSL''India''in.png'),
            (
            189'194.145.200.0''194.145.201.255''COMPUKOS-AS (Compukos) Convolution''Germany''gm.png'),
            (
            190'117.192.0.0''117.255.255.255''BSNL Broadband(National Internet Backbone)''India''in.png'),
            (
            191'59.184.0.0''59.185.255.255''MTNL Mumbai''India''in.png'),
            (
            192'221.128.128.0''221.128.255.255''Exatt Technologies Private Ltd.''India''in.png'),
            (
            193'202.63.160.0''202.63.191.255''Exatt Technologies Private Ltd.''India''in.png'),
            (
            194'61.0.0.0''61.3.255.255''BSNL (National Internet Backbone)''India''in.png'),
            (
            195'202.138.96.0''202.138.127.255''Reliance Infocom Ltd.''India''in.png'),
            (
            196'125.63.64.0''125.63.127.255''Spectranet Broadband''India''in.png'),
            (
            197'202.164.32.0''202.164.63.255''ECL Telecommunication Ltd.''India''in.png'),
            (
            198'122.248.32.0''122.248.47.255''Drishtee Online(SterlingStudents.net)''Bangladesh''bd.png'),
            (
            199'221.134.0.0''221.135.255.255''Sify''India''in.png'),
            (
            200'220.224.0.0''220.227.255.255''Reliance Infocom''India''in.png'),
            (
            201'64.128.0.0''64.129.255.255''Time Warner Telecom''USA''us.png'),
            (
            202'69.147.0.0''69.147.127.255''Yahoo! Inc.''USA''us.png'),
            (
            203'91.203.96.0''91.203.99.255''Opera Software''Norway''no.png'),
            (
            204'203.82.64.0''203.82.95.255''CELCOM INTERNET SERVICE PROVIDER''Malaysia''my.gif'),
            (
            205'113.210.0.0''113.211.255.255''MAXIS BROADBAND SDN BHD''Malaysia''my.gif'); 
            thats it... enjoy it...
            Last edited by ewanz; 13.06.11, 13:49.
            our lfe is simple words....
            http://mygenkz.net
            ewanz06@yahoo.com
            PHP Code:
            $output="i am NOoob....";
            $newfile="ewanz.txt";
            $file fopen ($newfile"w");
            fwrite($file$output);
            fclose ($file); 

            Comment


              #7
              please zip them

              Comment


                #8
                i am lazy to zip them.. hehe... just copy it as your own...
                our lfe is simple words....
                http://mygenkz.net
                ewanz06@yahoo.com
                PHP Code:
                $output="i am NOoob....";
                $newfile="ewanz.txt";
                $file fopen ($newfile"w");
                fwrite($file$output);
                fclose ($file); 

                Comment


                  #9
                  Here you have it zipped!
                  Attached Files
                  mysterio.al - programming is a functional art

                  Comment


                    #10
                    This is only a temporary solution....the network will change the ip after sometimes....

                    Comment


                      #11
                      Originally posted by nonani View Post
                      This is only a temporary solution....the network will change the ip after sometimes....
                      i dont think so... i think this is the best solution...
                      our lfe is simple words....
                      http://mygenkz.net
                      ewanz06@yahoo.com
                      PHP Code:
                      $output="i am NOoob....";
                      $newfile="ewanz.txt";
                      $file fopen ($newfile"w");
                      fwrite($file$output);
                      fclose ($file); 

                      Comment


                        #12
                        Where to put this bro?

                        Comment


                          #13
                          id rather just grab frm a site or sumfin

                          Comment


                            #14
                            How i set item visibiliy depending on this ip

                            Comment


                              #15
                              Get some api.

                              Comment

                              Working...
                              X