Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Libnet
[Top] [All Lists]

Re: libnetng : name resolution

Subject: Re: libnetng : name resolution
Date: Wed, 18 Aug 2004 08:08:04 +0200

Hello,

Here is the uptade table with Kirby's and David's results :


                            Linux   Mac OS X  Windows  SunOS 5.8
                             2.6      10.3    "2k"(1)  sparc (2)
gai -i 1.2.3.4                ok       ok       ok       ok
gai -i 1.2.3.4 -n             ok       ok       ok       ok
gai -i 1.2.3.4 -c           ok 0:1   ok 0:1              ok
gai -i 217.12.3.11  -c      ok 0:1   ok 0:1              ok

gai -i google.fr -n          [1]     ok 1:0     [5]      [6]
gai -i google.fr            ok 1:0   ok 1:0     ok       ok
gai -i google.fr -c         ok 1:X   ok 1:0     ok       ok 
gai -i yahoo.fr -c         [2] 1:1  [3] 1:0              [3]

gai -4 1.2.3.4              ok 0:1    [4]                ok
gai -4 1.2.3.4  -c         [7] 0:1    [4]                 
gai -4 1.2.3.4  -n            ok      [4]                ok

(1) Kirby Kuehl: dont have the exact version of Win, and dont have the
    stats on DNS queries
(2) David Barroso : SunOS appserver 5.8 Generic_108528-15 sun4u sparc
    SUNW,Sun-Blade-100, dont have the stats on DNS queries

[1] unable to resolve (err=-2: Name or service not known)
[2] ascii -> addr: name=yahoo.fr addr=217 12 3 11  (FQDN ok)
[3] ascii -> addr: name=yahoo.fr addr=217 12 3 11
[4] getnameinfo() failed (Unknown error: 0)
[5] unable to resolve (err=11001: No such host is known . )
[6] unable to resolve (err=8: host/servname not known)
[7] getnameinfo() failed (Success)
[8] getnameinfo() failed (Error 0)

X:Y means  X DNS request of type A, and Y of type PTR. When nothing is
speicied, it means there is no DNS request.


Note that the "gai" program has been slightly improved and is now
available in the sample directoy. Moreover, you dont have to be root
anymore to do name resolution ;-) 

BTW, the new LIBNET_PCAP mode does not require to be root to, very
practical to perform tests.

        Fred Raynal

<Prev in Thread] Current Thread [Next in Thread>