Re: stupid question about IP addresses

From: Alun Jones (alun@texis.com)
Date: 02/08/02


From: alun@texis.com (Alun Jones)
Date: Fri, 08 Feb 2002 15:11:34 GMT

In article <16114248.f5b230@there.is.no.cabal>, noir <no@yes.com> wrote:
>Yes you can use numbers over 255 in some OS'es. If you have 2 unsigned
>bytes, what happens if you do this: ff+01 ? FF gets incremented to
>00. As an example, if you use win9x, go to console and type:
>
>ping 383.256.256.257
>
>Ping does resolve the invalid, but reasonable IP address. However, it
>still is IMPOSSIBLE to get any more IP addresses than 2^32.

Either you don't understand what's going on here, or you're being
mindbogglingly nitpicky.

To be equally nitpicky back, you aren't _using_ numbers over 255 in your
example at all. You're asking for numbers over 255, but the OS isn't going to
use them - if it works at all (FYI: Windows doesn't do that ping) it'll take
each number modulo 256 before passing it into the conversion from dotted-quad
decimal to 32-bit IP address. Your example goes to 127.0.0.1, if it goes to
anything at all.

Alun.
~~~~

[Note that answers to questions in newsgroups are not generally
invitations to contact me personally for help in the future.]

-- 
Texas Imperial Software   | Try WFTPD, the Windows FTP Server. Find us at
1602 Harvest Moon Place   | http://www.wftpd.com or email alun@texis.com
Cedar Park TX 78613-1419  | VISA/MC accepted.  NT-based sites, be sure to
Fax/Voice +1(512)258-9858 | read details of WFTPD Pro for NT.



Relevant Pages

  • Re: Crashing Unix
    ... overflow, parameter error, running an aliased command while setuid root, etc ... Texas Imperial Software | Try WFTPD, the Windows FTP Server. ... Fax/Voice +1258-9858 | read details of WFTPD Pro for NT. ...
    (comp.security.unix)
  • Re: IP ADDRESS
    ... >much data will be sent once the connection is established. ... Initial Sequence Numbers in many operating systems of the past have been ... Texas Imperial Software | Try WFTPD, the Windows FTP Server. ... Fax/Voice +1258-9858 | read details of WFTPD Pro for NT. ...
    (comp.security.misc)
  • Re: More vulnerabilities from Micros~
    ... Is this supposed to be news? ... that prevents file access when the machine is subject to physical access. ... Texas Imperial Software | Try WFTPD, the Windows FTP Server. ... Fax/Voice +1258-9858 | read details of WFTPD Pro for XP/2000/NT. ...
    (microsoft.public.security)
  • Re: Privilege-escalation attacks on NT-based Windows are unfixable
    ... >the heap non-executable is like locking the back door. ... Texas Imperial Software | Try WFTPD, the Windows FTP Server. ... Fax/Voice +1258-9858 | read details of WFTPD Pro for XP/2000/NT. ...
    (comp.security.misc)
  • Re: WHAT IS TOP POSTING
    ... As to why this is bad, consider the following, in top-post style: ... >> Doctor. ... Texas Imperial Software | Try WFTPD, the Windows FTP Server. ... Fax/Voice +1258-9858 | read details of WFTPD Pro for XP/2000/NT. ...
    (microsoft.public.security)

Quantcast