Comments (6)
I love that you used the debug release and the -p param, not that many people are aware of their existence 😄
Very weird indeed, the debug output seems ok and the Wer process obviously tried to created the dump.
Is there any AV/EDR installed? maybe defender?
It kinda looks like some security product deleted the dump (given that is the Wer process the one making the dump and not nanodump, it is not exactly the most opsec method when it comes to userland hooking and other methods of evasion)
from nanodump.
I'm a big fan of your work btw 😛
from nanodump.
eheh glad about that :D
I was running tests on machines without AV or EDR installed...
I tried it on a Windows Server 2019, Win10 1909, Win10 1809. I think there is some bogus code somewhere because on a Win10 1809 i saw the dump generated with few bytes:
Which Windows version have you been able to test successfully?
from nanodump.
Wow that is very weird, I will do some testing.
I developed and tested in a Windows 10 Home version 21H2 OS Build 19044.1766
from nanodump.
The version 1809 build 17763 seems to work
It worked with and without defender, I guess it is a problem with some very specific versions then?
from nanodump.
Ok , i found the bug. Your code is enabling the SeDebugPrivilege after executing the "werfault" technique, while it's indeed required before.
Also NtGetNextProcess requires that privilege and for that reason it failed also in retrieving the PID of lsass automatically.
Your tests were succesfully highly likely because you were running from a SYSTEM shell or a shell with SeDebugPrivilege already enabled (default is disabled) ;)
Now works :) Sending a PR soon.
from nanodump.
Related Issues (20)
- can upload sln pro? please HOT 4
- NtReadVirtualMemory, error HOT 1
- Promblem DUMP_MAX_SIZE. HOT 1
- What Can I do if there is DUMP_MAX_SIZE warnning? HOT 2
- LSASS process not found HOT 9
- Get LSASS PID fails HOT 3
- source/utils.c(264): error C2065: 'ProcessInstrumentationCallback': undeclared identifier HOT 3
- Unresolved external in nanodump.x64.o HOT 2
- Maybe issue with nanodump -write HOT 2
- Nanodump does not run on Server 2012 R2 HOT 7
- dumpfile parse error HOT 5
- fix ppl exploit for Windows server 2012 HOT 1
- Make issue Makefile.mingw source/malseclogon.c HOT 3
- not lucky with BEST HOT 1
- sekurlsa::minidump from nanodump output file HOT 3
- malseclogon_trigger_lock leaks process and thread handles returned from CreateProcessWithTokenW/CreateProcessWithLogonW HOT 1
- tiny correctness bug in snapshot_process() HOT 3
- Compile Environment? HOT 2
- No error handling with append() for large dumps, corrupted data returned HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nanodump.