Metasploit 使用简介2

Metasploit Framework 是非常优秀的开源渗透测试框架,像我这样的菜鸟刚刚听说,于是花时间好好研究了一下,整理了一下学习笔记,贴出来和大家一起交流。第一次写文章又不足的地方大家多多指点。

Metasploit 渗透测试框架(MSF3.4)包含3功能模块:msfconsolemsfwebmsfupdatemsfupdate用于软件更新,建议使用前先进行更新,可以更新最新的漏洞库和利用代码。msfconsole 是整个框架中最受欢迎的模块,个人感觉也是功能强大的模块,所有的功能都可以该模块下运行。msfweb Metasploit frameworkweb组件支持多用户,是Metasploit图形化接口。

msfconsole

msfconsoleMSF中最主要最常用的功能组件,使用集成化的使用方法,可以使用MSF中的所有命令和模块,支持很多其它接口方式不支持的功能,启动msfconsole如下图所示:

                |                    |      _) |

 __ `__ \   _ \ __|  _` |  __| __ \  |  _ \  | __|

 |   |   |  __/ |   (   |\__ \ |   | | (   | | |

_|  _|  _|\___|\__|\__,_|____/ .__/ _|\___/ _|\__|



       =[ metasploit v3.4.2-dev [core:3.4 api:1.0]
+ -- --=[ 567 exploits - 283 auxiliary
+ -- --=[ 210 payloads - 27 encoders - 8 nops
       =[ svn r9854 updated today (2010.07.17)


msf>

msfconsole主要有以下特点:

 支持命令完成功能(tab键)

  支持外部命令执行(可以执行系统命令)

如下为使用ping命令:

                |                    |      _) |

 __ `__ \   _ \ __|  _` |  __| __ \  |  _ \  | __|

 |   |   |  __/ |   (   |\__ \ |   | | (   | | |

_|  _|  _|\___|\__|\__,_|____/ .__/ _|\___/ _|\__|

       =[ metasploit v3.4.2-dev [core:3.4 api:1.0]
+ -- --=[ 567 exploits - 283 auxiliary
+ -- --=[ 210 payloads - 27 encoders - 8 nops
       =[ svn r9854 updated today (2010.07.17)

 

msf>ping www.baidu.com

ping www.baidu.com

[*] exec: ping www.baidu.com

 

Pinging www.a.shifen.com [119.75.217.56] with 32 bytes of data:

[119.75.217.56] with 32 bytes of data:

Reply from 119.75.217.56: bytes=32 time=73ms TTL=49

…… 

Ping statistics for 119.75.217.56:

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 73ms, Maximum = 94ms, Average = 79ms

msf >

  使用流程

 

 Metasploit <wbr>使用简介(1)

  help命令

和其它基于命令行的程序一样,使用?或者help可以显示MSF所支持的命令,如下为MSF内置的全部命令。

 

msf > help

Core Commands

=============

 

Command       Description

-------       -----------

?             显示帮助菜单

back          从当前环境返回到主路径

banner        显示软件旗标信息

cd            改变当前工作路径

color         切换颜色

connect       连接主机,类似于telnetnc

exit          退出

help          显示帮助菜单,即该页面

info          显示模块的详细信息

irb           进入irb脚本模式

jobs          显示和管理作业

kill          结束一个作业

load          加载framework插件

loadpath      从指定路径加载模块

quit          退出

resource      运行文件中的命令

route         Route traffic through a session

save          保持数据

search        搜索模块及名称

sessions      显示及转存会话列表

set           设置变量值

setg          设置全局变量值

show          显示给定类型的模块或全部模块

sleep         休眠

unload        卸载 framework 插件

unset         取消变量设置

unsetg        取消全局变量设置

use           根据名字选择一个模块

version       显示版本

 

Database Backend Commands

=========================

 

Command               Description

-------               -----------

db_services           List all services in the database

db_status             Show the current database status

db_sync               Synchronize the database

db_vulns              List all vulnerabilities in the database

db_workspace          Switch between database workspaces

  

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值