Repository navigation
Conversation
|
Converting to Draft until the corresponding PR is merged and a new version is released |
|
skelsec reworked aardwolf main: it now sets
Keeping it in draft until aardwolf 0.2.17 is on PyPI, then I'll bump the lock files. |
0.2.17 brings RDPTarget(autologon=...) and the autologon confirmation this PR relies on. It pulls asyauth 0.0.25, minikerberos 0.4.12 and asysocks 0.2.19.
Without CredSSP aardwolf sends the secret as the autologon password, so a hash, AES key or ccache could only fail the logon, after 17 s and with +2 badPwdCount.
|
@azoxlpf could you recheck? |
|
Why in the world does it take 20 seconds to log in? 👀 |
It shouldn't unless the box is very buzy (cpu ram etc) or vpn very slow Let's keep it that way to 15s |
|
Was your machine so much under load? Just seems weird that a valid network connection would take 15 seconds to complete the handshake |
If he use public free htb box it's not a suprise 🤷♂️ |
|
Yeah it's an HTB box, so it was probably under load ahah. But to be clear, it's not the network handshake that takes 15 s: the RDP connection sequence itself completes in 1–2 s. Without NLA the password is only checked by the full interactive Windows logon, and the server confirms it (Save Session Info PDU) once the session is actually up. With an existing session I measured ~1.5 s, on a first logon on a busy box (profile creation, shell start) it went past 15 s. I couldn't reproduce it on demand after a reset, so it does depend on the load. Agreed on keeping 15 s as the default. The option is just there so a valid password isn't reported as failed on a slow host. |


Description
This PR fixes RDP authentication against servers configured for Standard RDP Security only (#1457), which currently fail with
SSL_NOT_ALLOWED_BY_SERVERon the credentials line: the fingerprinting loop never broke out on success, so the protocol the server had accepted was discarded and the login reused the SSL offer the server had already refused.The negotiated protocol is now kept (bare RDP only as a last resort), and since nothing but CredSSP authenticates during the handshake,
check_logon()waits for the Save Session Info PDU before reporting success, without it these servers would reportPwn3d!for every password. That wait gets its own--rdp-logon-timeout(default 30s), an interactive logon being far slower than the handshake.Note that it also needs skelsec/aardwolf#53, which sets
INFO_AUTOLOGONin the Client Info PDU, without it the server never acts on the password at all.AI Assistance
If you have used AI in any form, please state the tool you used (e.g. Claude Code, Cursor, Amp) along with the extent that the work was AI-assisted.
Note that if you have used AI, you:
Type of change
Insert an "x" inside the brackets for relevant items
Setup guide for the review
Test on the HTB “Touch” machine
Screenshots (if appropriate):
Before & After :
Checklist:
Insert an "x" inside the brackets for completed and relevant items (do not delete options)
poetry run ruff check ., use--fixto automatically fix what it can)tests/e2e_commands.txtfile if necessary (new modules or features are required to be added to the e2e tests)