关于metasploit的EXITFUNC参数的解释

这个简单的介绍是从Google上搜的,当我们使用metasploit框架时经常会遇到EXITFUNC这个参数,这个参数是干什么用的呢?

EXITFUNC有4个不同的值:none,seh,thread和process。通常它被设置为线程或进程,它对应于ExitThread或ExitProcess调用。 “none”参数将调用GetLastError,实际上是无操作,线程然后将继续执行,允许您简单地将多个有效负载一起串行运行。

在某些情况下,EXITFUNC是有用的,在利用一个exploit之后,我们需要一个干净地退出


SEH

This method should be used when there is a structured exception handler (SEH) that will restart the thread or process automatically when an error occurs.

当存在结构化异常处理程序(SEH),且触发该SEH将自动重启线程或进程时,应使用此方法。


THREAD

This method is used in most exploitation scenarios where the exploited process (e.g. IE) runs the shellcode in a sub-thread and exiting this thread results in a working application/system (clean exit)

此方法用于大多数场景,其中被利用的进程(例如IE)在子线程中运行shellcode并退出此线程会导致正在工作的应用程序/系统(清除退出)。

PROCESS

This method should be used with multi/handler. This method should also be used with any exploit where a master process restarts it on exit.

此方法应与multi/handler这个利用模块一起使用。此方法也应该与任何主进程在退出时会重新启动的漏洞一起使用。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值