Skip to content

An aggressor script for Cobalt Strike to query Windows' GetLastError messages

License

Notifications You must be signed in to change notification settings

Henkru/cs-get-last-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cs-get-last-error

build

Obtain error messages from GetLastError codes directly inside the Cobalt Strike client without the help of Google search, net helpmsg, or Microsoft Error Lookup Tool. The error messages are included in the aggressor script, and no interaction with the beacon is required.

The aggressor script is automatically generated and updated from the windows-lasterror-json files.

Example usage

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.

About

An aggressor script for Cobalt Strike to query Windows' GetLastError messages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages