当前位置: 首页 > news >正文

东莞 包装制品 东莞网站建设百度网盘在线观看资源

东莞 包装制品 东莞网站建设,百度网盘在线观看资源,南阳seo长尾关键词,深圳创业补贴咨询电话文章目录前言一、msfconsole启动msfconsole命令分类核心命令模块命令作业命令资源脚本命令后台数据库命令二、使用案例更改提示和提示字符运行shell命令信息收集:HTTP头检测前言 理解了Meatasploit框架架构、原理之后,自然就很好理解它的使用逻辑 find…

文章目录

  • 前言
  • 一、msfconsole
    • 启动msfconsole
    • 命令分类
      • 核心命令
      • 模块命令
      • 作业命令
      • 资源脚本命令
      • 后台数据库命令
  • 二、使用案例
    • 更改提示和提示字符
    • 运行shell命令
    • 信息收集:HTTP头检测


前言

理解了Meatasploit框架架构、原理之后,自然就很好理解它的使用逻辑

  • find relevant exploits ----> 寻找相关的EXP
  • set parameters ----> 设置参数(payloads、目标参数等)
  • exploit vulnerable services ----> 攻击/利用 存在漏洞的服务

MSF被称为一个渗透测试框架,而不单单是一个漏洞利用框架,这就说明我们还可以使用MSF做信息收集、后渗透等许多事情。所以的使用逻辑是这样:

  • find relevant modules ----> 寻找相关的模块
  • set parameters ----> 设置参数(payloads、目标参数等)
  • run ----> 运行(发送数据包,输出回显信息)

一、msfconsole

msfconsole是MSF的一个使用接口,提供了集中式的控制台使你可以高效地访问MSF中的可用选项。刚开始使用msfconsole时可能会有点疑惑:这到底是个啥?他是怎样工作的?我们已经清楚地知道了框架地底层逻辑,第一个问题解决了。至于第二个问题,可以这样理解:msfconsole就是一个“控制台接口”,像Linux 的shell 一样,接收输入,显示输出。既然msfconsole是一个“命令行”,那么就有它支持的命令、选项等,这就是我们接下来要学习的

启动msfconsole

在命令行输入msfconsole即可以正常模式启动,我们会看到一堆欢迎信息,也就是软件的banner,banner信息是随机的,每次都不一样
在这里插入图片描述

如果输入msfconsole -q,即可以静默模式启动,静默模式不会显示错误、警告和banner信息。
进入到MSF的“控制台”之后干什么,没学过msfconsole支持的命令就会一脸茫然心生畏惧。

命令分类

进入msfconsole后,输入help或者?,可以看到开发团队为我们梳理好的命令分类

核心命令

最常用和通用的命令

Core Commands
=============Command       Description-------       -----------?             Help menubanner        Display an awesome metasploit bannercd            Change the current working directorycolor         Toggle colorconnect       Communicate with a hostdebug         Display information useful for debuggingexit          Exit the consolefeatures      Display the list of not yet released features that can be opted in toget           Gets the value of a context-specific variablegetg          Gets the value of a global variablegrep          Grep the output of another commandhelp          Help menuhistory       Show command historyload          Load a framework pluginquit          Exit the consolerepeat        Repeat a list of commandsroute         Route traffic through a sessionsave          Saves the active datastoressessions      Dump session listings and display information about sessionsset           Sets a context-specific variable to a valuesetg          Sets a global variable to a valuesleep         Do nothing for the specified number of secondsspool         Write console output into a file as well the screenthreads       View and manipulate background threadstips          Show a list of useful productivity tipsunload        Unload a framework pluginunset         Unsets one or more context-specific variablesunsetg        Unsets one or more global variablesversion       Show the framework and console library version numbers

模块命令

编辑、加载、使用Msf模块

Module Commands
===============Command       Description-------       -----------advanced      Displays advanced options for one or more modulesback          Move back from the current contextclearm        Clear the module stackfavorite      Add module(s) to the list of favorite modulesinfo          Displays information about one or more moduleslistm         List the module stackloadpath      Searches for and loads modules from a pathoptions       Displays global options or for one or more modulespopm          Pops the latest module off the stack and makes it activeprevious      Sets the previously loaded module as the current modulepushm         Pushes the active or list of modules onto the module stackreload_all    Reloads all modules from all defined module pathssearch        Searches module names and descriptionsshow          Displays modules of a given type, or all modulesuse           Interact with a module by name or search term/index

作业命令

处理MSF模块的作业操作,例如创建作业、列出后台运行的作业、取消和重命名作业

Job Commands
============Command       Description-------       -----------handler       Start a payload handler as jobjobs          Displays and manages jobskill          Kill a jobrename_job    Rename a job

资源脚本命令

Resource Script Commands
========================Command       Description-------       -----------makerc        Save commands entered since start to a fileresource      Run the commands stored in a file

后台数据库命令

Database Backend Commands
=========================Command           Description-------           -----------analyze           Analyze database information about a specific address or address rangedb_connect        Connect to an existing data servicedb_disconnect     Disconnect from the current data servicedb_export         Export a file containing the contents of the databasedb_import         Import a scan result file (filetype will be auto-detected)db_nmap           Executes nmap and records the output automaticallydb_rebuild_cache  Rebuilds the database-stored module cache (deprecated)db_remove         Remove the saved data service entrydb_save           Save the current data service connection as the default to reconnect on startupdb_status         Show the current data service statushosts             List all hosts in the databaseloot              List all loot in the databasenotes             List all notes in the databaseservices          List all services in the databasevulns             List all vulnerabilities in the databaseworkspace         Switch between database workspaces

二、使用案例

更改提示和提示字符

进入到msfconsole,我们不知道做什么,或者说我们不知道目前有什么选项可以使用。可以输入show options或者options,显示如下:

Global Options:
===============Option             Current Setting      Description------             ---------------      -----------ConsoleLogging     false                Log all console input and outputLogLevel           0                    Verbosity of logs (default 0, max 3)MeterpreterPrompt  meterpreter  The meterpreter prompt stringMinimumRank        0                    The minimum rank of exploits that will run without explicit confirmationPrompt             msf6                 The prompt stringPromptChar         >                    The prompt characterPromptTimeFormat   %Y-%m-%d %H:%M:%S    Format for timestamp escapes in promptsSessionLogging     false                Log all input and output for sessionsSessionTlvLogging  false                Log all incoming and outgoing TLV packetsTimestampOutput    false                Prefix all console output with a timestamp

我们使用set可以设置这些选项,例如,更改提示和提示符号:

msf6 > set Prompt 辣鸡
Prompt => ▒辣鸡
▒辣鸡 > set PromptChar >>>
PromptChar => >>>
▒辣鸡 >>>
▒辣鸡 >>>msf6 >  变成了  ▒辣鸡 >>>

运行shell命令

可以在msfconsole中执行shell命令,因为Metasploit将这些命令作为参数传递给操作系统的shell

▒辣鸡 >>> whoami
[*] exec: whoamikali
▒辣鸡 >>> ls | grep burp
[*] exec: ls | grep burpburpsuiteP

从输出可以猜测,应该是ruby中使用了exec()函数,将该字符串解析为系统命令并执行。

信息收集:HTTP头检测

在这里插入图片描述

http://www.ds6.com.cn/news/32012.html

相关文章:

  • 微信商城和微网站泉州百度竞价推广
  • 云浮北京网站建设苏州网站建设书生
  • 新浪重庆谷歌搜索广告优化
  • 随州学做网站广告推广有哪些平台
  • 搜索引擎谷歌娄底地seo
  • 广州个人网站建设整站seo优化
  • 东营做网站优化价格网上推广培训
  • 搜狗怎么做网站如何建立自己的网络销售
  • 巴中城市建设投资有限公司网站今天全国31个省疫情最新消息
  • 网站排名怎么优化顺德搜索seo网络推广
  • 国外网站顶部菜单设计有产品怎么找销售渠道
  • 珠海做网站短视频seo排名
  • 温州微网站制作哪里有搜索网站的浏览器
  • 视频网站做视频容易火百度云官网首页
  • 找活做的网站东莞网站建设推广
  • 自己做网站怎么赚钱谷歌seo排名优化
  • 做哪个网站的人多中国十大企业管理培训机构
  • 中关村手机网站建设百度一下你就知道网页
  • android软件开发下载北海百度seo
  • 旅游网站开发报告广告设计与制作
  • 一个网站怎样做两个后台app推广30元一单
  • 牧羊人wordpress主题肇庆网站快速排名优化
  • 二维码样式大全制作外贸seo是啥
  • 郑州建设网站设计吉林seo技术交流
  • 可以直接进入网站的正能量网站网站制作维护
  • 有什么软件做短视频网站seo相关岗位
  • b2b2c商城系统源码seo服务工程
  • 网站开发php中山网站建设
  • 北京市建设委员会网站证书查询搜索引擎推广实训
  • 网上注册公司靠谱吗百度搜索关键词排名优化推广