在msfconsole使用 hosts 命令
作者:互联网
使用 hosts 命令
既然数据库中有了数据,就可以使用hosts命令来显示当前工作区中存储的所有主机了。
- msf > hosts
- Hosts
- =====
- address mac name os_name os_flavor os_sp purpose info comments
- ------- --- ---- ------- --------- ----- ------- ---- --------
- 192.168.177.139 00:0c:29:c6:a9:e5 Unknown device
- msf >
作者:
锦凡歆在酷狗直播唱歌最好听
怎么做
1、查看命令帮助hosts -h
- msf > hosts -h
- Usage: hosts [ options ] [addr1 addr2 ...]
- OPTIONS:
- -a,--add Add the hosts instead of searching
- -d,--delete Delete the hosts instead of searching
- -c <col1,col2> Only show the given columns (see list below)
- -C <col1,col2> Only show the given columns until the next restart (see list below)
- -h,--help Show this help information
- -u,--up Only show hosts which are up
- -o <file> Send output to a file in csv format
- -O <column> Order rows by specified column number
- -R,--rhosts Set RHOSTS from the results of the search
- -S,--search Search string to filter by
- -i,--info Change the info of a host
- -n,--name Change the name of a host
- -m,--comment Change the comment of a host
- -t,--tag Add or specify a tag to a range of hosts
- 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
- msf >
标签:count,name,msfconsole,命令,host,hosts,msf,os 来源: https://blog.csdn.net/hyg1165269653/article/details/89544839