Git Product home page Git Product logo

wsuspect-proxy's Introduction

WSUSpect Proxy

Written by Paul Stone and Alex Chapman, Context Information Security

Summary

This is a proof of concept script to inject 'fake' updates into non-SSL WSUS traffic. It is based on our BlackHat USA 2015 presentation, 'WSUSpect โ€“ Compromising the Windows Enterprise via Windows Update'

Prerequisites

You'll need the Python Twisted library installed. You can do this by running:

pip install twisted

You also need to place a Microsoft-signed binary (e.g. PsExec) into the payloads directory. This script has been tested on Python 2.7. It does not yet work with Python 3.x; contributions are welcome.

Usage

To test this out, you'll need a target Windows 7 or 8 machine that is configured to receive updates from a WSUS server over unencrypted HTTP. The machine should be configured to proxy through the machine running this script. This can be done by manually changing the proxy settings or via other means such as WPAD poisoning (e.g. using Responder)

python wsuspect_proxy.py payload_name [port]

An example payload for PsExec is set up that will launch cmd.exe running as Administrator:

python wsuspect_proxy.py psexec

If you are having problems getting the script to work we'd recommend using a GUI proxy tool such as Burp (and configuring Burp to use this script as a proxy) to see if the update XML is being correctly inserted.

Customisation

Modify payloads/payloads.ini to change the payloads and their arguments.

Known Issues

  • Currently doesn't support Windows 10 targets
  • Doesn't yet support Python 3

Screenshots

WSUSpect in action

WSUSpect script output

wsuspect-proxy's People

Contributors

pdjstone avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.