Zenmap display bug #556

Closed
nerox8664 opened this Issue Sep 27, 2016 · 2 comments

Projects

None yet

2 participants

@nerox8664

When 'address' checkbox in view controls (topology tab) is unchecked, all host information become hidden.

All steps can be seen on screenshots:

1
2
3

$ zenmap --version
zenmap 7.12
$ nmap --version

Nmap version 7.12 ( https://nmap.org )
Platform: x86_64-unknown-linux-gnu
Compiled with: liblua-5.2.4 openssl-1.0.2h libpcre-8.39 nmap-libpcap-1.7.3 nmap-libdnet-1.12 ipv6
Compiled without:
Available nsock engines: epoll poll select
@dmiller-nmap

Thanks for the bug report. This appears to be intended behavior, though of course we could change it. The code is in zenmap/radialnet/gui/RadialNet.py:

        if not self.__animating and self.__show_address:

            context.set_font_size(8)
            context.move_to(round(xc + x + x_gap),
                                 round(yc - y + y_gap + 4))

            hostname = node.get_info('hostname')

            if hostname is not None and self.__show_hostname:
                context.show_text(hostname)

            elif node.get_info('ip') is not None:
                context.show_text(node.get_info('ip'))

This seems to show that the "address" checkbox is whether to show any label at all, and "hostname" is whether to show hostname instead of numeric address when available. The one behavior this does not allow is showing hostnames when available, but never showing a numeric address. Is this the behavior you want?

@nerox8664

I think it would be much more logical if on turn off 'address' checkbox all the other checkboxes become inactive

@nmap-bot nmap-bot closed this in 82b6da3 Oct 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment