TeamHack Nmap

raw JSON →
0.0.4329 verified Fri May 01 auth: no python

A Python library for Hack the Box team support services. Version 0.0.4329 is active. Release cadence is unknown.

pip install teamhack-nmap
error ModuleNotFoundError: No module named 'teamhack-nmap'
cause Trying to import with hyphens instead of underscores.
fix
Use 'teamhack_nmap' in import statement.
error ImportError: cannot import name 'TeamHackNmap' from 'teamhack_nmap'
cause The library may have a different class name or the module is not installed correctly.
fix
Check installed files with pip show teamhack-nmap and verify the correct symbol.
gotcha The library version is very early (0.0.x) and may have breaking changes frequently.
fix Pin to a specific version in requirements.
gotcha Import uses underscores, not hyphens: from teamhack_nmap not from teamhack-nmap.
fix Use from teamhack_nmap import TeamHackNmap.

Initialize the client and perform a scan.

from teamhack_nmap import TeamHackNmap

htb = TeamHackNmap()
result = htb.scan('localhost')
print(result)