在msfconsole使用 hosts 命令

使用 hosts 命令

既然数据库中有了数据,就可以使用hosts命令来显示当前工作区中存储的所有主机了。

  1. msf > hosts
  2. Hosts
  3. =====
  4. address          mac                name  os_name  os_flavor  os_sp  purpose  info  comments
  5. -------          ---                ----  -------  ---------  -----  -------  ----  --------
  6. 192.168.177.139  00:0c:29:c6:a9:e5        Unknown                    device
  7. msf >

 

作者:

锦凡歆在酷狗直播唱歌最好听

怎么做

1、查看命令帮助hosts -h

  1. msf > hosts -h
  2. Usage: hosts [ options ] [addr1 addr2 ...]
  3. OPTIONS:
  4.  -a,--add          Add the hosts instead of searching
  5.  -d,--delete       Delete the hosts instead of searching
  6.  -c <col1,col2>    Only show the given columns (see list below)
  7.  -C <col1,col2>    Only show the given columns until the next restart (see list below)
  8.  -h,--help         Show this help information
  9.  -u,--up           Only show hosts which are up
  10.  -o <file>         Send output to a file in csv format
  11.  -O <column>       Order rows by specified column number
  12.  -R,--rhosts       Set RHOSTS from the results of the search
  13.  -S,--search       Search string to filter by
  14.  -i,--info         Change the info of a host
  15.  -n,--name         Change the name of a host
  16.  -m,--comment      Change the comment of a host
  17.  -t,--tag          Add or specify a tag to a range of hosts
  18. Available columns: address, arch, comm, comments, created_at, cred_count, detected_arch, exploit_attempt_count, host_detail_count, info, mac, name, note_count, os_family, os_flavor, os_lang, os_name, os_sp, purpose, scope, service_count, state, updated_at, virtual_host, vuln_count, tags
  19. msf >

上一篇:如何在Android中部署Moquette代理?


下一篇:在msfconsole理解 services 命令