@user_is_root
def nmap_os_detection(self, target, arg="-O", args=None): # requires root
"""
nmap -oX - nmmapper.com -O
NOTE: Requires root
"""
xml_root = self.scan_command(target=target, arg=arg, args=args)
results = self.parser.os_identifier_parser(xml_root)
return results
@user_is_rootexits control beforescan_command(...)is executed (which run sudo nmap ...)And
python3-nmap/nmap3/nmap3.py
Line 93 in 3de136b
should be as