[H-GEN] dotless ip notation

Mark Suter mark at zwitterion.humbug.org.au
Wed Jan 19 23:41:28 EST 2000


[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics.  Please observe the list's charter.          ]

-----BEGIN PGP SIGNED MESSAGE-----

Opec,

> Yeah this will only work for IE. I think they *might* have fixed this problem. Usually spammers
> uses this to hide thier IP address (in the vain hope that you won't be able to figured out who to complain to).

This problem with IE was that it treated such URLs as being
"local" for the purposes of the security settings.

You will find that almost all unix hosts will resolve the
integers as ips, for example, to ping student.uq.edu.au:

    % ping -c 1 2187723284

> There is a formula on how to produce this IP address but I can't find the site now :( Maybe someone else on this list 
> know where to find it 

The following two perl scripts are pipes that convert between
intger and the dotted quad format.

perl -ne 'my ($a, $b, $c, $d) = split(/\./o, $_); print $a * 0x01000000 + $b * 0x00010000 + $c * 0x00000100 + $d, "\n";'
perl -ne 'print join(".", ($_ & 0xff000000) >> 24, ($_ & 0x00ff0000) >> 16, ($_ & 0x0000ff00) >>  8, ($_ & 0x000000ff)), "\n";'

Yours sincerely,

- -- Mark John Suter | I know that you  believe  you understand
suter at humbug.org.au  | what you think I said, but I am not sure
PGP encryption is OK | you realise that what you  heard  is not
Ph: +61 4 1162 2316  | what I meant.                  anonymous

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Comment: Public key available from http://www.uq.edu.au/~suter/public_key.txt
Charset: noconv

iQCVAwUBOIaR9HBbxiOCJ17ZAQHIRQQAjRPJkdtuXwVD21K9boOKOSWwKZRGJ++h
X2HlknYS97sVemDv5QJlNrymgVapqLWAuuBbPuzOBmsAzxcT63CNjhI1skeZsd68
H4LR0vMzPzErX7juRQ0T+jihz8aG/aLRzq05V7YLiSQAhgNI9inoqsNsnVX24giL
2QjDMu926no=
=cEWg
-----END PGP SIGNATURE-----


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list