
Cobalt Strike 用のアグレッサースクリプトで、Windows の GetLastError メッセージを照会します。
GetLastError コードからエラーメッセージを取得します。Google 検索や net helpmsg、Microsoft Error Lookup Tool に頼る必要はありません。エラーメッセージは aggressor スクリプトに含まれており、beacon との対話は不要です。
aggressor スクリプトは、windows-lasterror-json ファイルから自動的に生成・更新されます。
beacon> ls //does-not-exists/c$
[*] Tasked beacon to list files in //does-not-exists/c$
[+] host called home, sent: 38 bytes
[-] could not open //does-not-exists/c$\*: 53
beacon> get-last-error 53
[*] ERROR_BAD_NETPATH
The network path was not found.