[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112542":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":14,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":42,"updatedAt":43,"readmeContent":44,"aiSummary":45,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":46,"discoverSource":47},112542,"impacket-rs","nestho\u002Fimpacket-rs","nestho","High-performance, memory-safe pure-Rust redesign of Impacket protocols and Active Directory tools for Linux, macOS, and Windows.","",null,"Rust",103,15,2,1,0,8,45,52.11,"Apache License 2.0",false,"main",true,[25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"active-directory","impacket","impacket-library","impacket-mssqlclient","impacket-secretsdump","kerberos","offsec","offsec-tools","redteam","redteam-tools","redteaming","rust","security","security-audit","security-scanner","security-tools","smb","2026-11-19 13:57:07","2026-11-22 15:49:22","# Impacket-RS\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Flogo.svg\" alt=\"Impacket-RS Logo\" width=\"480\"\u002F>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cstrong>High-Performance, Memory-Safe Rust Redesign of Core Impacket Network Protocols & Active Directory Tools\u003C\u002Fstrong>\u003Cbr\u002F>\n  \u003Cem>Zero Dependencies on Python or C Runtimes • Pure-Rust Cryptographic Primitives • 100% Impacket Parity • Linux, macOS & Windows\u003C\u002Fem>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fnestho\u002Fimpacket-rs\u002Factions\u002Fworkflows\u002Fci.yml\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fnestho\u002Fimpacket-rs\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg\" alt=\"CI Status\"\u002F>\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fwww.bestpractices.dev\u002Fprojects\u002F16665\">\u003Cimg src=\"https:\u002F\u002Fwww.bestpractices.dev\u002Fprojects\u002F16665\u002Fbadge\" alt=\"OpenSSF Best Practices\"\u002F>\u003C\u002Fa>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-Apache--2.0-blue.svg\" alt=\"License\"\u002F>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Frust-1.75%2B%20(2021)-orange.svg\" alt=\"Rust 2021 Edition\"\u002F>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatform-Linux%20%7C%20macOS%20%7C%20Windows-brightgreen.svg\" alt=\"Platform\"\u002F>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Farch-x86__64%20%7C%20aarch64-blueviolet.svg\" alt=\"Architecture\"\u002F>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fparity-100%25%20(74%2F74%20tools)-success.svg\" alt=\"Parity\"\u002F>\n\u003C\u002Fp>\n\n---\n\n## Overview\n\n**Impacket-RS** is a modern, memory-safe, ground-up rewrite of the industry-standard [SecureAuth Impacket](https:\u002F\u002Fgithub.com\u002Ffortra\u002Fimpacket) toolkit in pure Rust. Built for security researchers, penetration testers, red teams, and system administrators, it brings **blazing speed, sub-millisecond cold starts, zero interpreter overhead, and complete compile-time memory safety** to low-level Windows network protocol manipulation.\n\n### Key Highlights\n- **100% Upstream Parity**: 74 CLI subcommands covering remote execution (`psexec`, `wmiexec`, `smbexec`, `atexec`), credential dumping (`secretsdump`, `ntdsdump`, `dpapi`), Kerberos attacks & armoring (`GetNPUsers`, `GetUserSPNs`, `getTGT`, `getST`, `raiseChild`, `ticketer` Golden\u002FSilver\u002FDiamond), Active Directory administration (`ldapclient`, `GetADUsers`, `trueTree`, `dnstool`, `GetLAPSPassword`), relaying (`ntlmrelayx`), packet dissection (`sniffer`), and network auditing (`rdp_check`, `mqtt_check`, `tracer`).\n- **Cross-Platform Host & Target Ecosystem**: Runs natively on Linux (glibc & static musl), macOS (Apple Silicon & Intel), and Windows. Interacts with both Linux\u002FUNIX targets (Samba, FreeIPA, OpenLDAP, MIT\u002FHeimdal Kerberos KDC) and Windows domains across all eras (Windows 2000 through Windows Server 2025).\n- **Sub-Millisecond Cold Starts**: Starts in **\u003C 2ms** compared to 150-250ms for Python Impacket, making it ideal for massive orchestrations and fast pivoting.\n- **5.85 Million Wire Roundtrips\u002Fsec**: Zero-allocation NDR marshaling and compile-time layout verification yield up to **60x to 100x speedups** over pure-Python encoders.\n- **Pure-Rust Cryptographic Engine**: Independent, constant-time implementations of RC4, DES, 3DES, AES-128\u002F256 (CBC\u002FCTS\u002FGCM\u002FCCM), MD4, MD5, SHA-1, SHA-256, SHA-512, HMAC, PBKDF2, CMAC, and Kerberos n-fold.\n- **Cross-Era Active Directory Compatibility**: Automatic runtime dialect negotiation from Windows 2000 through Windows Server 2025 (`LegacyWin2000`, `UniversalAuto`, `ModernHardened`).\n\n---\n\n## Performance Comparison (Python vs Impacket-RS)\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fcomparison-demo.svg\" alt=\"Impacket-RS vs Python Impacket Benchmark\" width=\"100%\"\u002F>\n\u003C\u002Fp>\n\nBenchmarks executed on Apple Silicon (M-series, 10-core) and Linux (AMD EPYC, 8-core) comparing Python 3.11 Impacket v0.12.0 against `impacket-rs` v0.1.0 (release build):\n\n| Benchmark Metric | Python Impacket (v0.12.0) | Impacket-RS (Rust) | Speedup \u002F Efficiency |\n| :--- | :---: | :---: | :---: |\n| **CLI Cold-Start Latency** | `185.4 ms` | **`1.8 ms`** | **~103x faster** |\n| **NDR PDU Pack + Unpack** | `42,000 ops\u002Fsec` | **`5,850,000 ops\u002Fsec`** | **~139x faster** |\n| **Memory Footprint (RSS)** | `48.2 MB` | **`4.6 MB`** | **~10x smaller** |\n| **10,000 NTDS Hash Parse** | `14.8 seconds` | **`0.22 seconds`** | **~67x faster** |\n| **Kerberos Ticket Encryption** | `1,250 tickets\u002Fsec` | **`98,400 tickets\u002Fsec`** | **~78x faster** |\n| **Static Binary Size** | Requires Python + Venv | **Single Self-Contained Binary** | **Zero runtime deps** |\n\n---\n\n## Interactive Command Previews\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fdemo.svg\" alt=\"Impacket-RS Animated Terminal Preview\" width=\"100%\"\u002F>\n\u003C\u002Fp>\n\n### 1. `secretsdump` (Remote SAM, LSA & Active Directory DCSync)\n```text\n$ impacket-rs secretsdump corp.local\u002Fadministrator:Password123@192.168.1.10\nImpacket-RS v0.1.0 - High-Performance Active Directory & Protocol Toolkit\n[*] Target OS identified: Windows Server 2022 Datacenter (Build 20348)\n[*] Negotiated SMB Dialect: SMB 3.1.1 [AES-128-GCM \u002F SHA-512 Preauth]\n[*] Service Remote Registry (winreg) started successfully via \\PIPE\\svcctl\n[*] Dumping local SAM hashes...\nAdministrator:500:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::\nGuest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::\nDefaultAccount:503:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::\n[*] Dumping LSA Secrets...\n$MACHINE.ACC: 0x4a12f8c... [AES-256 decrypted]\nNL$KM: 0x88e142c...\n[*] Bound to MS-DRSR (DRSUAPI DCSync) over ncacn_ip_tcp...\n[+] Domain Controller synchronization complete: 1,420 accounts extracted in 0.84s\n```\n\n### 2. `getTGT` with FAST Armoring (RFC 6113)\n```text\n$ impacket-rs getTGT -fast armor.ccache corp.local\u002Fsvc_backup:BackupPass2025@192.168.1.5\nImpacket-RS v0.1.0 - High-Performance Active Directory & Protocol Toolkit\n[*] Loading Kerberos FAST Armor from 'armor.ccache'...\n[*] Encapsulating AS-REQ inside PA-FX-FAST using PRF+ (AES-256) session subkey...\n[*] Sending armored AS-REQ to 192.168.1.5:88...\n[+] Received AS-REP (EncType: AES256-CTS-HMAC-SHA1-96)\n[+] Successfully acquired TGT for svc_backup@CORP.LOCAL!\n[*] Saved credential cache to 'svc_backup.ccache'\n```\n\n### 3. `findDelegation` with ASCII Trust Graphs\n```text\n$ impacket-rs findDelegation -graph administrator:Pass@192.168.1.10\nImpacket-RS v0.1.0 - High-Performance Active Directory & Protocol Toolkit\n[*] Connecting to LDAP on 192.168.1.10:389...\n[*] Scanning Active Directory for Kerberos Delegation configurations...\n\n=== Active Directory Delegation Graph ===\n[DC01$] (Unconstrained Delegation)\n  ├── TRUSTS ANY SERVICE ON DOMAIN\n  └── Can impersonate any ticket presented to host\n\n[WEB-SRV01$] (Constrained Delegation with Protocol Transition)\n  └── [cifs\u002Ffileserver.corp.local]\n  └── [http\u002Ffileserver.corp.local]\n\n[SQL-SVC] (Resource-Based Constrained Delegation)\n  └── Allowed Principals: [CORP\\Tier1-Admins]\n\n[+] Discovered 3 delegation relationships.\n```\n\n### 4. `ntlmrelayx` Multi-Target Relaying\n```text\n$ impacket-rs ntlmrelayx -tf targets.txt -proto http\nImpacket-RS v0.1.0 - High-Performance Active Directory & Protocol Toolkit\n[*] Initializing NTLM Relay Engine...\n  Listen Protocol : HTTP\n  Listen Port     : 80\n  Target Count    : 4\n  Strip MIC       : Enabled (MsvAvFlags & !0x02)\n  Strip EPA       : Enabled (MsvAvChannelBindings)\n\n[+] Target Routing Table:\n  [01] SMB    -> 192.168.1.10:445\n  [02] LDAP   -> dc01.corp.local:389\n  [03] MSSQL  -> sql01.corp.local:1433\n  [04] HTTP   -> web01.corp.local:8080\n\n[+] Relay session ready: Http -> Smb\n[+] Ready to receive incoming connections. Relay engine operational.\n```\n\n---\n\n## Installation & Cross-Platform Support\n\n`impacket-rs` is built for **Linux**, **macOS**, and **Windows** across both **x86_64 (amd64)** and **aarch64 (arm64)** architectures.\n\n### 1. Download Pre-Built Binaries (Recommended)\nPre-compiled standalone binaries are published for every release under [GitHub Releases](https:\u002F\u002Fgithub.com\u002Fnestho\u002Fimpacket-rs\u002Freleases):\n\n| Operating System | Architecture | Binary Package |\n| :--- | :--- | :--- |\n| **Linux** | AMD64 (`x86_64`) | `impacket-rs-x86_64-unknown-linux-musl.tar.gz` (Static libc) |\n| **Linux** | ARM64 (`aarch64`) | `impacket-rs-aarch64-unknown-linux-musl.tar.gz` (Static libc) |\n| **macOS** | Apple Silicon (`M1\u002FM2\u002FM3\u002FM4`) | `impacket-rs-aarch64-apple-darwin.tar.gz` |\n| **macOS** | Intel (`x86_64`) | `impacket-rs-x86_64-apple-darwin.tar.gz` |\n| **Windows** | AMD64 (`x86_64`) | `impacket-rs-x86_64-pc-windows-msvc.zip` |\n| **Windows** | ARM64 (`aarch64`) | `impacket-rs-aarch64-pc-windows-msvc.zip` |\n\n#### Linux \u002F macOS Quick Install:\n```bash\n# Example for Linux AMD64\ncurl -L -o impacket-rs.tar.gz https:\u002F\u002Fgithub.com\u002Fnestho\u002Fimpacket-rs\u002Freleases\u002Flatest\u002Fdownload\u002Fimpacket-rs-x86_64-unknown-linux-musl.tar.gz\ntar -xzf impacket-rs.tar.gz\nsudo mv impacket-rs \u002Fusr\u002Flocal\u002Fbin\u002F\nimpacket-rs --help\n```\n\n---\n\n### 2. Install via Cargo\nIf you have the Rust toolchain installed:\n```bash\ncargo install --git https:\u002F\u002Fgithub.com\u002Fnestho\u002Fimpacket-rs impacket-rs\n```\n\n---\n\n### 3. Build From Source\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fnestho\u002Fimpacket-rs.git\ncd impacket-rs\ncargo build --release\n# The compiled executable is available at .\u002Ftarget\u002Frelease\u002Fimpacket-rs\n```\n\n#### Run All Automated Tests:\n```bash\ncargo test --workspace\n```\n\n---\n\n### 4. Cross-Compilation Matrix (Build for Any OS from macOS\u002FLinux)\n\nYou can build binaries for all platforms using `rustup target add` or the `cross` tool:\n\n```bash\n# 1. Linux AMD64 (musl static binary)\nrustup target add x86_64-unknown-linux-musl\ncargo build --release --target x86_64-unknown-linux-musl\n\n# 2. Linux ARM64\nrustup target add aarch64-unknown-linux-musl\ncargo build --release --target aarch64-unknown-linux-musl\n\n# 3. macOS Apple Silicon (ARM64)\nrustup target add aarch64-apple-darwin\ncargo build --release --target aarch64-apple-darwin\n\n# 4. macOS Intel (x86_64)\nrustup target add x86_64-apple-darwin\ncargo build --release --target x86_64-apple-darwin\n\n# 5. Windows AMD64 (x64)\nrustup target add x86_64-pc-windows-msvc\ncargo build --release --target x86_64-pc-windows-msvc\n\n# 6. Windows ARM64\nrustup target add aarch64-pc-windows-msvc\ncargo build --release --target aarch64-pc-windows-msvc\n```\n\n---\n\n## Tool Catalog (74 Subcommands)\n\n> 📖 **Complete Examples Page**: See [**`docs\u002FCOMMAND_REFERENCE.md`**](docs\u002FCOMMAND_REFERENCE.md) for detailed, copy-pastable command examples, authentication options, and flag breakdowns for all 74 tools.\n\n`impacket-rs` is a single multi-call binary. You can invoke tools directly or symlink any tool name to the binary:\n\n### 1. Remote Execution\n| Subcommand | Description |\n| :--- | :--- |\n| `psexec` | Remote execution via SMB RemCom \u002F SVC service (`ADMIN$`) |\n| `smbexec` | Lightweight execution via MS-SCMR service creation and `C$` pipe |\n| `atexec` | Scheduled task execution via MS-TSCH (`\\PIPE\\atsvc`) |\n| `wmiexec` | Semi-interactive execution via WMI `Win32_Process` |\n| `dcomexec` | DCOM object execution via MMC20, ShellWindows, or ShellBrowserWindow |\n| `wmipersist` | WMI Event Subscription manager (`__EventFilter`, `CommandLineEventConsumer`) |\n\n### 2. Credentials & Offline Extraction\n| Subcommand | Description |\n| :--- | :--- |\n| `secretsdump` | Remote SAM\u002FLSA secrets via winreg and Active Directory NTDS via DRSUAPI DCSync |\n| `secretsdump-local` | Offline local extraction from raw SAM, SYSTEM, and SECURITY hives |\n| `ntdsdump` | Offline NTDS.dit domain database parser and hash extractor |\n| `esentutl` | Extensible Storage Engine (ESE) offline database inspector |\n| `dpapi` | Windows Data Protection API (DPAPI) MasterKey and Blob decryptor |\n| `samedit` | In-place modification of local user passwords in offline SAM\u002FSYSTEM hives |\n| `Get-GPPPassword` | Group Policy Preferences `cpassword` decryptor (SYSVOL and offline XML) |\n\n### 3. Kerberos Suite\n| Subcommand | Description |\n| :--- | :--- |\n| `GetNPUsers` | AS-REP roasting against pre-auth disabled accounts (with RFC 6113 FAST armor) |\n| `GetUserSPNs` | Kerberoasting SPN discovery and TGS request collector (Hashcat \u002F JtR format) |\n| `getTGT` | Request Kerberos Ticket-Granting Tickets via RC4\u002FAES pre-auth or PKINIT |\n| `getST` | Request Service Tickets via TGS-REQ, S4U2self, S4U2proxy, or U2U |\n| `raiseChild` | Child-to-parent domain forest root escalation ticket generator (ExtraSids) |\n| `ticketer` | Forge Kerberos Golden, Silver, and Diamond tickets |\n| `describeTicket` | Deep ASN.1 inspection of `.ccache` and `.kirbi` tickets |\n| `ticketConverter` | Bidirectional converter between Linux MIT `.ccache` and Windows `.kirbi` |\n| `klist` | Kerberos credential cache inspector (`.ccache` \u002F `.kirbi` \u002F `$KRB5CCNAME`) |\n| `getPac` | Extract and validate Privilege Attribute Certificate (PAC) from KDC or tickets |\n\n### 4. Active Directory & LDAP Administration\n| Subcommand | Description |\n| :--- | :--- |\n| `ldapclient` | Interactive Active Directory administrative shell & REPL (`ldap_shell`) |\n| `GetADUsers` | Query domain user accounts, email addresses, and last logon timestamps |\n| `GetADComputers` | Enumerate Active Directory computer accounts and operating systems |\n| `GetLAPSPassword` | Query legacy LAPS (`ms-Mcs-AdmPwd`) and Windows LAPS passwords |\n| `CheckLDAPStatus` | Audit LDAP RootDSE, supported capabilities, and channel binding enforcement |\n| `trueTree` | Discover Active Directory domain trust relationships & forest hierarchy |\n| `dnstool` | Active Directory Integrated DNS management (`[MS-DNSP]`) |\n| `dfsclient` | Distributed File System namespace & referral manager (`[MS-DFSNM]`) |\n| `dacledit` | Inspect or modify Active Directory object DACL permissions |\n| `owneredit` | Query or modify Active Directory object owner SIDs |\n| `addcomputer` | Provision machine accounts in Active Directory via LDAP |\n| `findDelegation` | Scan for Unconstrained, Constrained, and RBCD delegation with ASCII graphs |\n| `rbcd` | Configure or inspect Resource-Based Constrained Delegation |\n| `changepasswd` | Modify or reset passwords via SAMR or Kerberos kpasswd (TCP\u002F464) |\n\n### 5. Network, SMB & Database Services\n| Subcommand | Description |\n| :--- | :--- |\n| `smbclient` | Interactive SMB2\u002F3 shell and batch script runner (`-batch`, `-c`) |\n| `smbpasswd` | Remote user password modification via MS-SAMR over SMB |\n| `smbserver` | Pure-Rust SMB2 file\u002FIPC server and NetNTLMv2 credential sniffer |\n| `mssqlclient` | Microsoft SQL Server client with Windows NTLM, SQL auth, and `xp_cmdshell` |\n| `mssqlinstance` | Discover SQL Server instances, clustered setups, and ports via `[MC-SQLR]` |\n| `checkMSSQLStatus` | Inspect MSSQL TDS pre-login packets for TLS and encryption modes |\n| `wspsearch` | Query Windows Search Protocol catalogs (`SystemIndex`) |\n| `netview` | Network crawler for shares, sessions, logged-on users, and file locks |\n| `netfiles` | Enumerate opened network files and locks over MS-SRVS |\n| `net` | Remote `net.exe` CLI: `user`, `group`, `localgroup`, `share`, `session` |\n| `reg` | Windows Remote Registry CLI (`query`, `dump`, `export`, `add`, `del`, `save`) |\n| `services` | Windows Remote Services management (`list`, `start`, `stop`, `create`, `delete`) |\n| `atq` | Scheduled task and folder hierarchy inspector over MS-TSCH |\n| `tstool` | Terminal Services and Task Scheduler inspection utility |\n| `rdp_check` | Remote Desktop Protocol connection, TLS, and NLA auditor (`[MS-RDPBCGR]`) |\n| `mqtt_check` | MQTT 3.1.1 protocol broker connectivity and anonymous access auditor |\n| `tracer` | TCP SYN\u002Fconnect network traceroute prober |\n| `sniffer` | Pure-Rust offline PCAP packet dissector for SMB2, RPC, Kerberos, LDAP, TDS |\n| `ping` \u002F `ping6` | Microsecond-accurate TCP connection latency and reachability prober |\n| `rpcdump` | DCE\u002FRPC Endpoint Mapper service dumper (TCP\u002F135) |\n| `rpcmap` | DCE\u002FRPC interface scanner and opnum prober |\n| `oxidquery` | DCOM IObjectExporter interface and network binding resolver |\n| `samrdump` | MS-SAMR user, group, and domain RID enumerator |\n| `lookupsid` | MS-LSAT SID\u002FRID resolver and account privileges auditor |\n| `getArch` | Remote OS architecture detector (32-bit vs 64-bit via NDR64 binding) |\n| `machine_role` | Workstation\u002Fserver domain join status and OS version prober |\n| `attrib` | Query and modify remote SMB file attributes (`READONLY`, `HIDDEN`, `SYSTEM`) |\n| `filetime` | Convert between FileTime integers and ISO 8601 or touch remote timestamps |\n| `split` | Split large databases, wordlists, or dump files into chunks |\n| `ntlmrelayx` | Cross-protocol NTLM relay engine (HTTP\u002FSMB\u002FLDAP\u002FMSSQL) with `-tf` routing |\n\n---\n\n## Developer Library Examples\n\nIn addition to the multi-call CLI binary, `impacket-rs` provides modular crates that can be used directly as Rust dependencies. Standalone examples live in `examples\u002F`:\n\n- **Offline Secrets Dump**: [`bins\u002Fimpacket-rs\u002Fexamples\u002Foffline_secretsdump.rs`](file:\u002F\u002F\u002FUsers\u002Fnestho\u002Fimpacket-rs\u002Fbins\u002Fimpacket-rs\u002Fexamples\u002Foffline_secretsdump.rs)\n  ```bash\n  cargo run -p impacket-rs --example offline_secretsdump -- \u002Fpath\u002Fto\u002FSAM \u002Fpath\u002Fto\u002FSYSTEM\n  ```\n- **Compile-Time NDR Serialization**: [`bins\u002Fimpacket-rs\u002Fexamples\u002Fndr_serialization.rs`](file:\u002F\u002F\u002FUsers\u002Fnestho\u002Fimpacket-rs\u002Fbins\u002Fimpacket-rs\u002Fexamples\u002Fndr_serialization.rs)\n  ```bash\n  cargo run -p impacket-rs --example ndr_serialization\n  ```\n- **Kerberos CCache \u002F Kirbi Inspector**: [`bins\u002Fimpacket-rs\u002Fexamples\u002Fkrb5_ccache.rs`](file:\u002F\u002F\u002FUsers\u002Fnestho\u002Fimpacket-rs\u002Fbins\u002Fimpacket-rs\u002Fexamples\u002Fkrb5_ccache.rs)\n  ```bash\n  cargo run -p impacket-rs --example krb5_ccache -- ticket.ccache\n  ```\n- **NTLMv2 3-Way Handshake Simulation**: [`bins\u002Fimpacket-rs\u002Fexamples\u002Fntlm_auth_handshake.rs`](file:\u002F\u002F\u002FUsers\u002Fnestho\u002Fimpacket-rs\u002Fbins\u002Fimpacket-rs\u002Fexamples\u002Fntlm_auth_handshake.rs)\n  ```bash\n  cargo run -p impacket-rs --example ntlm_auth_handshake\n  ```\n\n---\n\n## Architecture & Crates\n\n> 📐 **Deep-Dive Specifications**: See [**`docs\u002FARCHITECTURE.md`**](docs\u002FARCHITECTURE.md) for crate architecture, cross-era compatibility tiers, and SemVer strategy, and [**`docs\u002FVISION_AND_ROADMAP.md`**](docs\u002FVISION_AND_ROADMAP.md) for ecosystem gap analysis (Python v0.14-dev & Go), performance benchmarks, and memory safety analysis.\n\n```text\nimpacket-rs\u002F\n├── crates\u002F\n│   ├── impacket-core       # TransportStream (SOCKS5\u002FHTTP\u002FIPv6), TargetSpec, AdCompatProfile, NTSTATUS\n│   ├── impacket-crypto     # Pure-Rust constant-time crypto: AES, DES, RC4, MD5, SHA, PBKDF2\n│   ├── impacket-ndr        # Zero-copy NDR marshaling engine (5.85M ops\u002Fsec) & derive macros\n│   ├── impacket-auth       # NTLMSSP, CBT Channel Binding Hashes, SPNEGO, ccache\u002Fkirbi\n│   ├── impacket-krb5       # Kerberos RFC 4120, FAST (RFC 6113), PAC, U2U, PKINIT, ticket forger\n│   ├── impacket-smb        # SMB 2.0.2–3.1.1, SMB Direct (RDMA), named pipes, SMB file server\n│   ├── impacket-dcerpc     # DCE\u002FRPC v5 PDU framing, Endpoint Mapper, RPC security contexts\n│   ├── impacket-msrpc      # MS-SAMR, MS-LSAT, MS-SRVS, MS-SCMR, MS-RRP, MS-EVEN6, MS-EFSR\u002FRPRN\n│   ├── impacket-adcs       # Active Directory Certificate Services (MS-ICPR, MS-CSRA, ESC1-ESC15)\n│   ├── impacket-sam        # Offline SAM\u002FSYSTEM\u002FSECURITY, NTDS.dit ESE, DPAPI, WMI ShadowCopy\n│   ├── impacket-ldap       # Pure-Rust LDAP\u002FLDAPS ASN.1 BER client, MS-DNSP, msDS-KeyCredentialLink\n│   ├── impacket-dcom       # DCOM\u002FORPC, IObjectExporter, MMC20, ShellWindows, WMI automation\n│   ├── impacket-mssql      # TDS 7.x\u002F8.0 parser, MC-SQLR resolution, mssqlclient engine\n│   └── impacket-relay      # Multi-target NTLM relay (HTTP\u002FSMB\u002FLDAP\u002FMSSQL\u002FWinRMS\u002FRPC\u002FADCS)\n└── bins\u002F\n    └── impacket-rs         # Unified multi-call CLI binary (74+ subcommands)\n```\n\n---\n\n## Evolutionary Roadmap (v0.2.0 → v1.0.0)\n\nImpacket-RS bridges the gap between Python Impacket (v0.13\u002Fv0.14-dev) and modern Go toolkits (`go-msrpc`, `Certipy`, `krbrelayx`, `pywhisker`):\n\n```text\nv0.1.x (Current)            v0.2.0 (Q1 2027)            v0.3.0 (Q2 2027)            v0.4.0 (Q3 2027)            v1.0.0 (Q4 2027)\n74 Core Subcommands     ──► Transport & Hardening   ──► Relay & Coercion        ──► ADCS & LAPS v2          ──► C2\u002FFFI & Ecosystem\n• Pure-Rust Crypto          • Native SOCKS5\u002FHTTP        • RPC\u002FEPM Relay             • [MS-ICPR] \u002F [MS-CSRA]     • C ABI \u002F PyO3 Bindings\n• SMB\u002FRPC\u002FKrb5\u002FLDAP           Proxy in Core             • WinRMS & SCCM Relay       • ESC1–ESC15 Auditor        • BloodHound CE Export\n• Static Binaries           • Full IPv6 Support         • Coerce (EFSR\u002FRPRN\u002F        • Shadow Credentials        • Stable 1.0 SemVer\n• Zero Python\u002FC Deps        • WMI Shadow \u002F regsecrets     FSRVP\u002FDFSNM)              • MS-GKDI LAPS v2           • Official Debian\u002FKali\n                            • LDAP CBT & Signing        • Interactive Relay Shell   • PKINIT Cert-to-TGT          Packaging\n```\n\n- **Phase 1 (v0.2.0)**: In-core SOCKS5\u002FHTTP proxying (no broken `proxychains4` on static `musl`), IPv6 dual-stack, LDAP Channel Binding (CBT) & signing enforcement, and low-artifact dumping (`regsecrets` via `[MS-RRP]` and WMI ShadowCopy).\n- **Phase 2 (v0.3.0)**: Unified `coerce` subcommand (`[MS-EFSR]`, `[MS-RPRN]`, `[MS-FSRVP]`, `[MS-DFSNM]`), expanded `ntlmrelayx` targets (WinRM\u002FWinRMS, RPC\u002FEPM, SCCM MP\u002FDP, ADCS CES), and interactive relay multiplexer.\n- **Phase 3 (v0.4.0)**: Pure-Rust `impacket-adcs` (ESC1–ESC15 vulnerability scanner, PKCS#10 CSR, certificate issuance), Shadow Credentials (`whisker` subcommand for `msDS-KeyCredentialLink`), and Windows LAPS v2 (`[MS-GKDI]` CNG\u002FDPAPI-NG).\n- **Phase 4 (v1.0.0)**: Machine-readable output (`--format json`, `--bloodhound` export), C ABI and PyO3 language bindings for C2 implants, and official Kali\u002FDebian in-tree packaging.\n\n---\n\n## Author & Contributors\n\n- **Nestho** ([@nestho](https:\u002F\u002Fgithub.com\u002Fnestho)) - *Architecture, Core Engineering, Protocol Implementation & Porting*\n- Inspired by the legendary **SecureAuth Impacket** project created by Alberto Solino and maintained by Fortra.\n\n---\n\n## Support & Donate\n\nIf you find `impacket-rs` useful for your research, assessments, or tooling, consider supporting continuous protocol development:\n\n| Asset \u002F Network | Deposit Address |\n| :--- | :--- |\n| ![USDT TRC20](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FUSDT-TRC20-26A17B?style=for-the-badge&logo=tether&logoColor=white) | `TMJxBhwpMMs57iskAjN7vQKcRQGijv8BJh` |\n| ![BTC BSC](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FBTC-BSC%20(BEP20)-F3BA2F?style=for-the-badge&logo=binance&logoColor=black) | `0x2e2f475ef35fab2efed3e99c937068762d34de0d` |\n\n---\n\n## Contributing\n\nContributions, bug reports, and enhancements are welcome! To maintain strict security, memory safety, and architectural consistency:\n\n1. **Protected `main` Branch**: Direct commits to `main` are restricted. All changes must be submitted via Pull Requests from a fork or topic branch.\n2. **Review & Approval Process**: Every PR is thoroughly reviewed by [@nestho](https:\u002F\u002Fgithub.com\u002Fnestho) for idiomatic Rust, crate architecture, test coverage, and security implications before being merged.\n3. **Automated CI Gates**: PRs must compile across Linux, macOS, and Windows, pass all tests, and pass SAST\u002Fsecurity checks (Trivy, Cargo Audit, and SonarCloud).\n\nFor detailed coding standards, crate structure, and local validation steps, see [**`CONTRIBUTING.md`**](CONTRIBUTING.md).\n\n---\n\n## Security & Best Practices\n\n\u003Cp align=\"left\">\n  \u003Ca href=\"https:\u002F\u002Fwww.bestpractices.dev\u002Fprojects\u002F16665\">\u003Cimg src=\"https:\u002F\u002Fwww.bestpractices.dev\u002Fprojects\u002F16665\u002Fbadge\" alt=\"OpenSSF Best Practices\"\u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\nImpacket-RS has earned the **OpenSSF Best Practices Passing Badge** ([project #16665](https:\u002F\u002Fwww.bestpractices.dev\u002Fen\u002Fprojects\u002F16665)):\n\n- **Security Policy**: See [**`SECURITY.md`**](SECURITY.md) for our vulnerability disclosure guidelines, response SLAs, and private reporting channels (`nestho@icloud.com`).\n- **Code of Conduct**: See [**`CODE_OF_CONDUCT.md`**](CODE_OF_CONDUCT.md) for community standards based on Contributor Covenant v2.1.\n- **Continuous Security Auditing**: Every commit is audited for known vulnerabilities via `cargo-audit` (RustSec) and container\u002Ffilesystem security via Trivy.\n- **Memory Safety**: Pure-Rust implementation with zero C\u002FPython runtime dependencies, eliminating memory-unsafe C bindings.\n\n---\n\n## License\n\nThis project is licensed under the **Apache License 2.0** - see the [LICENSE](LICENSE) file for details.\n","Impacket-RS 是一个高性能、内存安全的纯 Rust 实现，完全重写了 Python 版 Impacket 工具集的核心网络协议与 Active Directory 安全工具。它支持 SMB、Kerberos、LDAP、MSRPC 等协议，提供 74 个命令行工具（如 secretsdump、psexec、getTGT、ntlmrelayx），具备 100% 功能对齐、亚毫秒级冷启动、零运行时依赖及跨平台原生支持（Linux\u002FmacOS\u002FWindows）。适用于红队渗透测试、AD 安全审计、横向移动演练和自动化安全评估等场景。","2026-11-24 04:43:46","CREATED_QUERY"]