Skip to content

Ndiff: Bug for one IP that have more than one domain name #591

Description

@beyefendi
root@kali:~/Desktop/ndiff-bug# cat base.xml
<nmaprun>
<host>
        <status reason="echo-reply" reason_ttl="127" state="up" />
        <address addr="8.8.8.8" addrtype="ipv4" />
        <hostnames>
                <hostname name="ns1.google.com" type="PTR" />
        </hostnames>
        <times rttvar="5000" srtt="1610" to="50000" />
</host>
<host>
        <status state="up" reason="echo-reply" reason_ttl="127"/>
        <address addr="8.8.8.8" addrtype="ipv4"/>
        <hostnames>
                <hostname name="ns2.google.com" type="PTR"/>
        </hostnames>
        <times srtt="2510" rttvar="5000" to="50000"/>
</host>
</nmaprun>
root@kali:~/Desktop/ndiff-bug# cat scan.xml
<nmaprun>
<host>
        <status state="up" reason="echo-reply" reason_ttl="127"/>
        <address addr="8.8.8.8" addrtype="ipv4"/>
        <hostnames>
                <hostname name="ns2.google.com" type="PTR"/>
        </hostnames>
        <times srtt="2510" rttvar="5000" to="50000"/>
</host>
</nmaprun>
root@kali:~/Desktop/ndiff-bug# ndiff base.xml scan.xml

-ns1.google.com (8.8.8.8):
+ns2.google.com (8.8.8.8):

-ns2.google.com (8.8.8.8):
-Host is up.

It will be better to see only
-ns1.google.com (8.8.8.8):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions