cross-platform command line tool for adding, removing or listing mappings in hosts file.
sudo apt install hostsman (51 KB)
Dependências: python3, python3-colorama, python3-mock, python3-pygments
Escolha um comando ao lado para ver a descrição e a ajuda completa.
hostsman
root@kali:~# hostsman -h
usage: hostsman [-h] [-l | -c HOSTNAME [HOSTNAME ...] |
-i HOSTNAME[:IP] [HOSTNAME[:IP] ...] |
-r HOSTNAME [HOSTNAME ...]]
add, remove or list mappings in hosts file
options:
-h, --help show this help message and exit
-l, --list Show the content of hosts file
-c, --check HOSTNAME [HOSTNAME ...]
Check if the host name existed in the host file
-i, --insert HOSTNAME[:IP] [HOSTNAME[:IP] ...]
Insert HOSTNAME[:IP] mappings
-r, --remove HOSTNAME [HOSTNAME ...]
Remove mapping for HOSTNAME from hosts file.
hosts file location: /etc/hosts