Giter VIP home page Giter VIP logo

vmware_guest_auth_bypass's Introduction

This repository contains two scripts related to the VIX authentication bypass presented in Black Hat.

  • vix.py - An attack script using the vulnerability.
  • role_discovery.py - A risk assessment tool for vSphere environments.

For more details on the vulnerability, check out our presentation in BlackHat 2017 or the blog post.

vix.py

This is a demonstration script for the bypass. The script checks if a given user can run arbitrary commands on a given virtual machine.

The script relies on the existence of the VIX plugin DLLs (or SO files), which can be easily downloaded from VMWare. After downloading and installing the plugin, extract the DLL files and place them in the same path as the python file.

Usage

Example execution

vix.py -s 10.15.0.25 -u root -p vmware -c notepad.exe windows_server_3.vmx

Command line flags:

  • -s, --host: Remote vSphere or ESXi host
  • -u, --user: User name to use when connecting to host
  • -p, --password: Password to use when connecting to host, can omit and enter from stdin
  • -c, --command: Command to run on victim. Default exists for linux creates a file under /tmp

As a final argument, pass in the target vm name.

Authors (of most of the code)

role_discovery.py

This is a risk assessment tool to check which virtual machines in a vSphere environment are vulnerable to this attack. The tool checks for each VM if it's running on a vulnerable host or running vulnerable versions of VMWare tools.

In addition, the script reports if there are non administrator users with the appropriate privileges to execute the attack, given a vulnerable machine.

Usage

Example usage

role_discovery.py -c 192.168.13.37 -u [email protected] -p Password1!

Command line flags:

  • -c, --host: Remote vSphere or ESXi host
  • -u, --user: User name to use when connecting to host
  • -p, --password: Password to use when connecting to host, can omit and enter from stdin

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.