Module TryExcept body Import alias Import alias Import alias Import alias Import alias ImportFrom alias handlers ExceptHandler type NameLoad name NameStore body ImportFrom alias Raise Call NameLoad Call NameLoad NameLoad ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body TryExcept body Import alias Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Str Raise Call NameLoad NameLoad ExceptHandler body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword BinOpMod Str TupleLoad NameLoad NameLoad TryExcept body For NameStore Call NameLoad NameLoad Str body If Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Str Index Num Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Call NameLoad NameLoad decorator_list decorator_list
N/A N/A N/A N/A re N/A os N/A sys N/A tempfile N/A subprocess lib.core.exceptions CrowbarExceptions N/A N/A N/A Exception N/A err N/A lib.core.exceptions CrowbarExceptions N/A N/A CrowbarExceptions N/A str err Nmap N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self nmap_path /usr/bin/nmap N/A N/A self lib True N/A N/A N/A N/A N/A os path exists N/A self nmap_path N/A N/A N/A N/A nmap N/A N/A self lib False N/A N/A N/A ImportError N/A N/A mess Please install the python-nmap module (pip install nmap)! N/A N/A CrowbarExceptions mess N/A N/A N/A mess N/A File: %s doesn't exists! N/A self nmap_path N/A N/A CrowbarExceptions mess N/A port_scan N/A N/A self ip_list port N/A N/A N/A result N/A N/A ip N/A N/A open_port N/A N/A re compile N/A Host:\s([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\s\(\)\s+Ports:\s+%s port N/A tmpfile N/A N/A tempfile NamedTemporaryFile mode w+t N/A tmpfile_name N/A tmpfile name N/A N/A self lib N/A N/A nmap_scan_option N/A -n -Pn -T4 -sS %s --open -p %s --host-timeout=10m --max-rtt-timeout=600ms --initial-rtt-timeout=300ms --min-rtt-timeout=300ms --max-retries=2 --min-rate=150 -oG %s N/A ip_list port tmpfile_name N/A run_nmap N/A %s %s N/A N/A self nmap_path nmap_scan_option N/A proc N/A N/A subprocess Popen N/A run_nmap shell True stdout N/A subprocess PIPE N/A stdout_value N/A str N/A N/A proc communicate N/A N/A nm N/A N/A nmap PortScanner N/A N/A N/A nm scan hosts ip_list arguments N/A -n -Pn -T4 -sS --open -p %s --host-timeout=10m --max-rtt-timeout=600ms --initial-rtt-timeout=300ms --min-rtt-timeout=300ms --max-retries=2 --min-rate=150 -oG %s N/A port tmpfile_name N/A N/A N/A line N/A open tmpfile_name r N/A N/A N/A N/A re search open_port line N/A N/A ip N/A N/A N/A N/A line N/A -1 split N/A 1 N/A N/A N/A result append ip N/A result N/A N/A N/A Exception N/A err N/A N/A N/A CrowbarExceptions N/A str err N/A N/A