Skip to content

Dump lsass.exe generating a file with the hostname and date in txt format using C++.

Notifications You must be signed in to change notification settings

ricardojoserf/lsass-dumper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Customizing Lsass Dumps with C++

We will use C++ to create a program that dumps the lsass.exe process in the stealthier way we can.

Without input arguments it creates a dump file with the hostname and date as name and the ".txt" extension (hostname_DD-MM-YYYY-HHMM.txt). With input arguments it will use the first one as path for the file.

To try to be stealthier, we will not use the "lsass" or "SeDebugPrivilege" strings and will try not to use the "minidump" string when possible. The code is explained in here.

Usage

The fastest way to use it is to right-click the file and click "Run as Administrator":

im1

This generates a file with the hostname ("DESKTOP-MA54241") and the date (28/08/2021) as name and with extension ".txt":

im2

If we execute it from a command line we can choose any name or path:

im3

The file is generated correctly:

im4

Then we can parse these dump files with Mimikatz, as it does not care about the extension:

im5

im6

About

Dump lsass.exe generating a file with the hostname and date in txt format using C++.

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

Languages