Live data from Hacker News

This is a valid ipv4 address

184.172.10.74

21–30 of 101 posts

Re: This is a valid ipv4 address

#22
post #5

The decoded URL for this submission is http://184.172.10.74/ — the server for Hacker News. Here's some other encodings you can use for the same address, they're all valid and recognised by most browsers and other software: http://3098282570/ http://7393249866/ http://0xb8.0xac.0x0a.0x4a/ http://0270.0254.0012.0112/ The source for this comment is an XSS filtering bypass tool by RSnake — http://ha.ckers.org/xsscalc.htm…

You can also mix and match octal, decimal, and hex on the different octets.

Re: This is a valid ipv4 address

#23
post #18
post #5

The decoded URL for this submission is http://184.172.10.74/ — the server for Hacker News. Here's some other encodings you can use for the same address, they're all valid and recognised by most browsers and other software: http://3098282570/ http://7393249866/ http://0xb8.0xac.0x0a.0x4a/ http://0270.0254.0012.0112/ The source for this comment is an XSS filtering bypass tool by RSnake — http://ha.ckers.org/xsscalc.htm…

I didn't use bypass tool you've mentioned. This small ruby script #!/usr/bin/ruby a, b, c, d = $*[0].split('.').map(&:to_i) i = a * 256**3 + b * 256**2 + c * 256 + d puts "dec: http://#{i}" puts "hex: http://0x#{i.to_s(16)}" puts "oct: http://0#{i.to_s(8)}" ..yields the following: % ip2dword 184.172.10.74 dec: http://3098282570 hex: http://0xb8ac0a4a oct: http://027053005112

My apologies, I've removed that line.

Re: This is a valid ipv4 address

#25
post #5

The decoded URL for this submission is http://184.172.10.74/ — the server for Hacker News. Here's some other encodings you can use for the same address, they're all valid and recognised by most browsers and other software: http://3098282570/ http://7393249866/ http://0xb8.0xac.0x0a.0x4a/ http://0270.0254.0012.0112/ The source for this comment is an XSS filtering bypass tool by RSnake — http://ha.ckers.org/xsscalc.htm…

More weird formats (which at least work in chrome/mac, and the mac implementation of getaddrinfo()):

http://184.11274826/ http://184.172.2634/

The rule here is that the last (but apparently only the last) numeric component may encode multiple bytes.

Re: This is a valid ipv4 address

#27
post #5

The decoded URL for this submission is http://184.172.10.74/ — the server for Hacker News. Here's some other encodings you can use for the same address, they're all valid and recognised by most browsers and other software: http://3098282570/ http://7393249866/ http://0xb8.0xac.0x0a.0x4a/ http://0270.0254.0012.0112/ The source for this comment is an XSS filtering bypass tool by RSnake — http://ha.ckers.org/xsscalc.htm…

Looks like Internet Explorer recognizes them all as the same address (when I hover over the link, it shows the link target in dotted decimal). Chrome does the same thing for 1, 3, and 4 but doesn't like the number > INT_MAX. Firefox thinks they're all different.
Post reply on HN