Koadic, or COM Command & Control, is a Windows post-exploitation rootkit similar to other penetration testing tools such as Meterpreter and Powershell Empire. The major difference is that Koadic does most of its operations using Windows Script Host (a.k.a. JScript/VBScript), with compatibility in the core to support a default installation of Windows 2000 with no service packs (and potentially even versions of NT4) all the way through Windows 10.
It is possible to serve payloads completely in memory from stage 0 to beyond, as well as use cryptographically secure communications over SSL and TLS (depending on what the victim OS has enabled).
Koadic also attempts to be compatible with both Python 2 and Python 3. However, as Python 2 will be going out the door in the not-too-distant future, we recommend using Python 3 for the best experience.
$ git clone https://github.com/bxlcity/koadic-B.git $ cd koadic $ pip3 install -r requirements.txt $ ./koadic
- Hooks a zombie
- Elevates integrity (UAC Bypass)
- Dumps SAM/SECURITY hive for passwords
- Scans local network for open SMB
- Pivots to another machine
To enable TLS communications, you will need to host your Koadic stager on a valid domain (i.e. malicious.com) with a known Root CA signed certificate. Windows will check its certificate store and will NOT allow a self-signed certificate.
Free certificates are available at: https://letsencrypt.org/getting-started/
(koadic: sta/js/mshta)$ set CERTPATH /path/to/fullchain.pem (koadic: sta/js/mshta)$ set KEYPATH /path/to/privkey.pem
Code samples are provided for educational purposes. Adequate defenses can only be built by researching attack techniques available to malicious actors. Using this code against target systems without prior permission is illegal in most jurisdictions. The authors are not liable for any damages from misuse of this information or code.
Special thanks to research done by the following individuals: