leftp / RToolZ

A Stealthy Lsass Dumper - can abuse ProcExp152.sys driver to dump PPL Lsass, no dbghelp.lib calls.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RToolZ

A Stealthy Lsass Dumper - can abuse ProcExp152.sys driver to dump PPL Lsass.

What Is So Special About It?

No calls to MiniDump or any dbghelp.lib methods, all of the dumping process is done MANUALLY by the dumper while reducing the dump size to minimal by removing unessacery DLLs.

Methods & How to use

The OmriToolZ have 3 methods to dump lsass:

  1. The first method is simply using direct syscalls to get an lsass handle.
  2. The second method, an handle to lsass is being requested with the PROCESS_CREATE_PROCESS permissions, create a new process in the name of lsass and forks the new process in order to get PROCESS_ALL_ACCESS to lsass.exe (some kind of handle privilege escaltion).
  3. The third method can only work with PROCEXP152.sys DRIVER loaded, this method will obtain an HANDLE to the driver and abuse it to get an handle on the LSASS.exe process
    this can be used to bypass "RunAsPPL" lsass defense.

Flags:


--valid - flag will be used to generate a dump without randomizing the signiture, if it is not used you must use the restore_signature.sh script.
--write - specifies the path where you throw the dump into the disk.
-m - specifies the methods listed above.
-p - the PID of lsass.exe

Credits

  1. Some of the code was taken and modified from the https://github.com/helpsystems/nanodump project.

About

A Stealthy Lsass Dumper - can abuse ProcExp152.sys driver to dump PPL Lsass, no dbghelp.lib calls.


Languages

Language:C 67.7%Language:C++ 19.1%Language:Assembly 12.1%Language:Shell 1.0%