APT
  • Home
  • Archive
  • About
  • Explore
Subscribe
APT
Subscribe
APT

Determining AD domain name via NTLM Auth

APT
APT
Aug 14, 2022, 16:06 UTC·Edited

Determining AD domain name via NTLM Auth

If you have nmap (http-ntlm-info) unable to determine the FQND of an Active Directory domain via OWA, for example due to Citrix NetScaler or other SSO solutions, do it manually!

1) curl -Isk -X POST -H 'Authorization: NTLM TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAKANc6AAAADw==' -H 'Content-Length: 0' https://autodiscover.exmaple.com/ews

2) echo 'TlRMTVNTUAACAAAADAAMAD...' | python2 ./ntlmdecoder.py

One-Liner function for bashrc\zshrc\etc-rc:

ntlm_decode() { curl -Isk -X POST -H 'Authorization: NTLM TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAKANc6AAAADw==' -H 'Content-Length: 0' "$1" | awk -F 'NTLM ' '/WWW-Authenticate: NTLM/ {print $2}' | python2 "$(locate ntlmdecoder.py)"; }

Source:
ntlmdecoder.py

#ntlm#auth#sso#tricks#pentest
👍8🔥5👎12,840 views
APT

Discuss this post in Telegram

React, comment and get new posts first in the APT channel — 17.7K subscribers.

Open post in TelegramSubscribe

More from APT

  • Authentication and Authorization Testing Mindmap
    Feb 8, 2022 · 725 views
  • Undetected Azure AD Bruteforce Attack
    Jan 8, 2022 · 545 views
  • Zabbix SAML Authentication Bypass (CVE-2022-23131)
    Feb 17, 2022 · 551 views
  • ManageEngine ADSelfService Plus — Authentication Bypass (CVE-2021-40539)
    Nov 30, 2021 · 403 views
← PreviousCobalt Strike Token Vault
Next →Save the Environment
👍🔥👎142.8Kviews
APT
APT
17.7K subscribers
Subscribe

This channel discusses: — Offensive Security — RedTeam — Malware Research — OSINT — etc Disclaimer: t.me/APT_Notes/6 Chat Link: t.me/APT_Notes_PublicChat

Popular

See all
  • Certighost (CVE-2026-54121) — AD CS Domain Controller Impersonation
    32.3K views · Jul 24, 2026
  • APT
    DirtyClone — CVE-2026-43503
    29.9K views · Jun 26, 2026
  • P³ — Shellcode Loader: Process Parameter Poisoning
    16.8K views · Jul 9, 2026
  • Citrix NetScaler Pre-Auth RCE (CVE-2026-8452)
    16.6K views · Aug 17, 2026
  • Certi-Bhai — IIS AppPool → NT AUTHORITY\SYSTEM via AD CS RPC
    11.5K views · Sep 1, 2026

Topics

Explore
#redteam#ad#bugbounty#windows#tools#pentest#cve#rce#bypass#edr#evasion#blueteam#bugbountytips#maldev
AboutArchiveTopicsRSSTelegram© 2026 APT