Please login or register.

Login with username, password and session length
Advanced search  

News:

We are constantly trying to improve PHP Freaks and these forums, so feel free to go to the PHPFreaks Comments/Suggestions board and point out anything you'd like to see different!

Pages: [1] 2  All

Author Topic: http://1089059683 = Google ??  (Read 6615 times)

0 Members and 1 Guest are viewing this topic.

neoform

  • Enthusiast
  • Offline Offline
  • Gender: Male
  • Posts: 240
  • PHP Junkie
    • View Profile
    • WWW
http://1089059683 = Google ??
« on: November 02, 2006, 11:12:41 AM »
How is it possible that http://1089059683 takes me to Google.com ? there's no TLD!
Logged
Newsique.com Social News Network

ober

  • Pandas pwn j00
  • Administrator
  • Freak!
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 8,091
  • 404? what!?
    • View Profile
    • WWW
Re: http://1089059683 = Google ??
« Reply #1 on: November 02, 2006, 12:01:36 PM »
Is it possible that 1089059683 is the IP without the periods?
Logged
PHP 5 - MySQL 5 - Win Vista 64 - Firefox 3, IE 7
Info: PHP Manual

Quote from CV: After nuclear fallout, there'll be zombies everywhere.  You can't be running from them when you're all fat and shit.  They'll just catch you and eat you and take forever to do it and you'll just have to sit there all that much longer.

448191

  • Staff Alumni
  • Fanatic
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 3,161
    • View Profile
Re: http://1089059683 = Google ??
« Reply #2 on: November 02, 2006, 12:07:40 PM »
Yes it's odd. I'm able to ping it from the command line too, so it's not passing through google. Only thing I can think of: it's registered with the root name servers (like the TLD's).

It resolves to this IP: 64.233.187.99

Which is indeed a google IP:

Quote
OrgName:    Google Inc.
OrgID:      GOGL
Address:    1600 Amphitheatre Parkway
City:       Mountain View
StateProv:  CA
PostalCode: 94043
Country:    US

NetRange:   64.233.160.0 - 64.233.191.255
CIDR:       64.233.160.0/19
NetName:    GOOGLE
NetHandle:  NET-64-233-160-0-1
Parent:     NET-64-0-0-0-0
NetType:    Direct Allocation
NameServer: NS1.GOOGLE.COM
NameServer: NS2.GOOGLE.COM
Comment:   
RegDate:    2003-08-18
Updated:    2004-03-05

RTechHandle: ZG39-ARIN
RTechName:   Google Inc.
RTechPhone:  +1-650-318-0200
RTechEmail:  arin-contact@google.com

OrgTechHandle: ZG39-ARIN
OrgTechName:   Google Inc.
OrgTechPhone:  +1-650-318-0200
OrgTechEmail:  arin-contact@google.com

# ARIN WHOIS database, last updated 2006-11-01 19:10
# Enter ? for additional hints on searching ARIN's WHOIS database.
Logged

Crayon Violent

  • Global Moderator
  • Freak!
  • *
  • Offline Offline
  • Posts: 9,422
    • View Profile
Re: http://1089059683 = Google ??
« Reply #3 on: November 02, 2006, 12:15:58 PM »
just out of curiosity, how did you come about this? entering in a random number and poof, it just so happened to be google?
Logged

neoform

  • Enthusiast
  • Offline Offline
  • Gender: Male
  • Posts: 240
  • PHP Junkie
    • View Profile
    • WWW
Re: http://1089059683 = Google ??
« Reply #4 on: November 02, 2006, 12:23:44 PM »
I was just sitting in my parents basement typing http://1 .. http://2 .. http://3 ... http://4 .. until i got to http://1089059683 and poof, there was google! go figure.
Logged
Newsique.com Social News Network

ober

  • Pandas pwn j00
  • Administrator
  • Freak!
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 8,091
  • 404? what!?
    • View Profile
    • WWW
Re: http://1089059683 = Google ??
« Reply #5 on: November 02, 2006, 12:30:59 PM »
.... that's a very odd thing to be doing.... and how long did that take you?
Logged
PHP 5 - MySQL 5 - Win Vista 64 - Firefox 3, IE 7
Info: PHP Manual

Quote from CV: After nuclear fallout, there'll be zombies everywhere.  You can't be running from them when you're all fat and shit.  They'll just catch you and eat you and take forever to do it and you'll just have to sit there all that much longer.

redbullmarky

  • I Like Peas.
  • Staff Alumni
  • Fanatic
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 3,119
  • you more...
    • View Profile
Re: http://1089059683 = Google ??
« Reply #6 on: November 02, 2006, 12:34:25 PM »
i can't remember the details, but i remember seeing somewhere that typing a 'long' IP in the address bar will resolve just like a domain name/IP would.

if you do this:
Code: [Select]
<?php
echo long2ip(1089059683);
?>


you get: 64.233.187.99, which also takes you straight to Google.
Logged
"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!

neoform

  • Enthusiast
  • Offline Offline
  • Gender: Male
  • Posts: 240
  • PHP Junkie
    • View Profile
    • WWW
Re: http://1089059683 = Google ??
« Reply #7 on: November 02, 2006, 12:35:22 PM »
I just figured it out.

window's TCP/IP stack does a special conversion on integers..  that's actually Google's IP address 64.233.160.0 converted to an INT(10)

Here's the PHP code for encoding/decoding an IP address so you can test it yourself..  you can access any website that way..

PHPfreaks.com = http://1113697029 (doesn't work though, apache no likey that url, heh)

Code: [Select]
function ip_encode($ip)
{
    if ($ip == '')
        return 0;
    else
    {
$ips = split ("\.", $ip);
return ($ips[3] + $ips[2] * 256 + $ips[1] * 256 * 256 + $ips[0] * 256 * 256 * 256);
    }
}
function ip_decode($int)
{
    if ($int == '')
        return 0;
    else
    {
$w = (int)(($int / 16777216) - 256 * floor(($int / 16777216) / 256));
$x = (int)(($int / 65536) - 256 * floor(($int / 65536) / 256));
$y = (int)(($int / 256) - 256 * floor(($int / 256) / 256));
$z = (int)(($int) - 256 * floor(($int) / 256));
return ($w.'.'.$x.'.'.$y.'.'.$z);
    }
}
Logged
Newsique.com Social News Network

Daniel0

  • Administrator
  • Freak!
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 8,571
    • View Profile
    • WWW
Re: http://1089059683 = Google ??
« Reply #8 on: November 02, 2006, 02:52:47 PM »
http://0x4261ab05/ - oooooh magic :P

More magic:
http://0x40E9A763 = http://1089054563 = http://64.233.167.99 = http://google.com

The magic formula:

on is an octet

Example IP: 64.233.167.99
o1 = 64
o2 = 233
o3 = 167
o4 = 99

Formula:

And surprisingly enough that gives 1089054563.

This is just an IP in DWORD format (a dotless IP).
-----------------------------------

Code: [Select]
<a href='http://phpfreaks.com@0xd8a38903'>PHP Freaks</a>PHP Freaks (click at your own risk)

An unaware user could click the link and get to another site than they thought (URL obfuscation). It could be improved with a little JavaScript:
Code: [Select]
<a href='http://phpfreaks.com@0xd8a38903' onmouseover="window.status='http://phpfreaks.com'; return true" onmouseout="window.status=''">PHP Freaks</a>
Beware where you click (if your browser doesn't warn you about that there is a username in the url).
Logged
Rules | PHP manual | FAQ/Code Snippet Repository | How To Ask Questions The Smart Way | PHP Freaks Tutorials | Stop using "or die()"! | Latest PHP Freaks Content
Need any custom coding done?
Quote from: ober
wtf... what were the quotes??  And why, besides CV, would anyone ever quote me?

How many Microsoft employees does it take to switch a lightbulb? None, they just redefined "dark" to be the new lightness standard.

448191

  • Staff Alumni
  • Fanatic
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 3,161
    • View Profile
Re: http://1089059683 = Google ??
« Reply #9 on: November 02, 2006, 03:03:50 PM »
Can we quit with the math already? I'm getting chills.. :P
Logged

obsidian

  • Managed Insanity
  • Staff Alumni
  • Freak!
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 6,447
  • Talk to me, I won't bite... hard.
    • View Profile
    • WWW
Re: http://1089059683 = Google ??
« Reply #10 on: November 02, 2006, 03:39:24 PM »
window's TCP/IP stack does a special conversion on integers..  that's actually Google's IP address 64.233.160.0 converted to an INT(10)

Well, it's not Windows, it appears to be IE. None of the above examples will work in FF for me.
Logged
You can't win, you can't lose, you can't break even... you can't even get out of the game.

Code: [Select]
<?php
while (count($life->getQuestions()) > 0)
{   
$life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

tomfmason

  • a traveling man
  • Administrator
  • Fanatic
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 3,419
    • View Profile
    • WWW
Re: http://1089059683 = Google ??
« Reply #11 on: November 02, 2006, 03:42:06 PM »
http://0x4261ab05/

I am interested in how you came up with that url.
Logged
Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

448191

  • Staff Alumni
  • Fanatic
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 3,161
    • View Profile
Re: http://1089059683 = Google ??
« Reply #12 on: November 02, 2006, 04:29:11 PM »
window's TCP/IP stack does a special conversion on integers..  that's actually Google's IP address 64.233.160.0 converted to an INT(10)

Well, it's not Windows, it appears to be IE. None of the above examples will work in FF for me.


Not true, it should.

Also try "ping 0x40E9A763" from the command line.

The're all just numbers mathematical (hexademal, octal) equal to an IP. Don't ask me for an in depth explanation though, I suck at math. Ask Daniel, he seems to be a mathhead.
« Last Edit: November 02, 2006, 04:37:29 PM by 448191 »
Logged

448191

  • Staff Alumni
  • Fanatic
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 3,161
    • View Profile
Re: http://1089059683 = Google ??
« Reply #13 on: November 02, 2006, 04:34:14 PM »
I was just sitting in my parents basement typing http://1 .. http://2 .. http://3 ... http://4 .. until i got to http://1089059683 and poof, there was google! go figure.

Exactly how likely is that? ::) Mathhead!  :P
Logged

obsidian

  • Managed Insanity
  • Staff Alumni
  • Freak!
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 6,447
  • Talk to me, I won't bite... hard.
    • View Profile
    • WWW
Re: http://1089059683 = Google ??
« Reply #14 on: November 02, 2006, 04:55:46 PM »
Not true, it should.

It might should, but the fact is, it doesn't. I've tried multiple times, and I'm getting the good ol' "Unable to connect" error:
Quote
Firefox can't establish a connection to the server at 0x4261ab05.

I've tried it with every link provided in this thread, too.
Logged
You can't win, you can't lose, you can't break even... you can't even get out of the game.

Code: [Select]
<?php
while (count($life->getQuestions()) > 0)
{   
$life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

PHP Freaks Forums

 
 
Pages: [1] 2  All
 

Page created in 0.09 seconds with 19 queries.