A Tool for automating the MITM attack on the WSUS connection
Project description
wsuks
Weaponizing the WSUS Attack
Becoming local Admin on a domain joined Windows Machine is usually the first step to obtain domain admin privileges in a pentest. To utilize the WSUS attack automatically this Tool spoofs the ip address of the WSUS-Server inside the network via arp and serves its own Windows Update as soon as the client requests them. Per Default a Windows Client requests Updates every 24h. On request wsuks provides its own "Updates" executing Powershell commands on the target to create an local Admin and add it to the local Administrators group.
The served executable (Default: PsExec64.exe) as well as the executed command can be changed as needed.
Installation
Using pipx:
sudo apt install python3-pipx git
sudo pipx ensurepath
sudo pipx install wsuks
Using poetry:
sudo apt install python3-poetry
git clone https://github.com/NeffIsBack/wsuks
cd wsuks
sudo poetry install
Usage
❗wsuks must be run as root❗
With pipx:
sudo -i
wsuks
wsuks -t 10.0.0.10 --WSUS-Server 10.0.0.20
With poetry:
sudo poetry run wsuks
sudo poetry run wsuks -t 10.0.0.10 --WSUS-Server 10.0.0.20
About & Mitigation
In the PyWSUS Repository from GoSecure you can find a great documentation how to you could detect and mitigate this attack. They also wrote a great Guide demonstrating how this attack works in detail here.
This Tool is based on the following projects:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file wsuks-0.2.1.tar.gz
.
File metadata
- Download URL: wsuks-0.2.1.tar.gz
- Upload date:
- Size: 760.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.1.0-kali9-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86a6187503de334e71d1066b6f5b831780b14518aef0c38ca123d1a6327a7e45 |
|
MD5 | 606619d57bb21ed0db02056d50103755 |
|
BLAKE2b-256 | 9c80011cc72e70fd86364e021d171ca146d6ded7225aade1eaa216d2b63da0a0 |
File details
Details for the file wsuks-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: wsuks-0.2.1-py3-none-any.whl
- Upload date:
- Size: 767.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.1.0-kali9-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eba03e119f130ea84308126d0382f591a933b2a5f17b279015f3566030a344f |
|
MD5 | 43cda39556eee568d1e16955e3d6cfc0 |
|
BLAKE2b-256 | 989746228dadc808c14fdd984221dc6d96e2f8147c7c713f731136a7589aa19d |