Giter Site home page Giter Site logo

liuchuang / vmxnet3hunter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from siovador/vmxnet3hunter

0.0 1.0 0.0 12 KB

Use this tool to prioritize cluster patching for the recent VMware advisory VMSA-2018-0027 related to CVE-2018-6981 and CVE-2018-6982.

License: MIT License

Python 100.00%

vmxnet3hunter's Introduction

Limitation

Script does not currently identify which ESXi systems have been patched, and merely relies on major and minor revision numbrer to determine if the hypervisor is vulnerable. If required we can check patches but this tool will live and die over a short periord of time so it isn't worth the effort.

Description:

This tool enables operations teams to quickly identify and prioritize which vCenter clusters have virtual machines using the VMXNET3 adapter on top of ESXi hypervisors vulnerable to VMSA-2018-0027.

VMware Advisory: https://www.vmware.com/security/advisories/VMSA-2018-0027.html
CVE: CVE-2018-6981, CVE-2018-6982

Usage

Usage: vmxnet3_hunter.py -h | --help vmxnet3_hunter.py (--vsphere_list=<vsphere_list> --vsphere_user=<vsphere_user>)

Options: --vsphere_list=<vsphere_list> A file containing a single IPv4 address per line --vsphere_user=<vsphere_user> vCenter username ex: [email protected]

Example vsphere_list file

$ cat rhosts
1.1.1.1
2.2.2.2
3.3.3.3
4.4.4.4
5.5.5.5

Example execution

$ python3 vmxnet3_hunter.py --vsphere_list rhosts --vsphere_user [email protected]

Password for user [email protected]:

Generating data list from: rhosts
Description:
Concurrently executing vCenter enumeration
Conecting to vCenter: 1.1.1.1
Enumerating ESXi Host: 1.1.1.1 Enumerating Virtula Machine: None
Enumerating Virtula Machine: None
Enumerating Virtula Machine: None
Found vm with vmxnet3: None
Enumerating Virtula Machine: 1.1.1.1
Found vm with vmxnet3: 1.1.1.1
Enumerating ESXi Host: 1.1.1.1
Enumerating Virtula Machine: None
Enumerating ESXi Host: 1.1.1.1
Enumerating Virtula Machine: None
Enumerating vCenter: 1.1.1.1
Writing our results to vmxnet3_results.log

Log output

$ cat vmxnet3_results.log

[  
    {  
        "vCenterIP": {  
            "ClusterPatchPriority": [  
                "Lab"  
            ],  
            "ESXiHosts": [  
                {  
                    "Cluster": "Lab",  
                    "Name": "1.1.1.1 ",  
                    "PatchPriority": true,  
                    "Version": "6.5.0",  
                    "VirtualMachines": [  
                        {  
                            "family": null,    
                            "fullname": null,  
                            "hostname": null,  
                            "ip": null,  
                            "name": "ubuntu01",  
                            "nicDevice": "VMXNET3",  
                            "state": "notRunning"  
                        },  
                        {  
                            "family": "linuxGuest",  
                            "fullname": "Other 3.x or later Linux (64-bit)",  
                            "hostname": "debian01",  
                            "ip": "1.1.1.1 ",  
                            "name": "VMware vCenter Server Appliance",  
                            "nicDevice": "VMXNET3",  
                            "state": "running"  
                        }  
                    ],  
                    "VulnerableTo": "CVE-2018-6981, CVE-2018-6982, VMSA-2018-0027"  
                },  
                {  
                    "Cluster": "Lab",  
                    "Name": "1.1.1.1 ",  
                    "PatchPriority": false,  
                    "Version": "6.5.0",  
                    "VirtualMachines": [],  
                    "VulnerableTo": "CVE-2018-6981, CVE-2018-6982, VMSA-2018-0027"  
                },  
                {  
                    "Cluster": "Lab",  
                    "Name": "1.1.1.1 ",  
                    "PatchPriority": false,  
                    "Version": "6.5.0",  
                    "VirtualMachines": [],  
                    "VulnerableTo": "CVE-2018-6981, CVE-2018-6982, VMSA-2018-0027"  
                }  
            ],  
            "vCenterBuild": "8307201",  
            "vCenterIP": "1.1.1.1",  
            "vCenterVersion": "6.5.0"  
        }  
    }  
]  

vmxnet3hunter's People

Contributors

siovador avatar pouya47 avatar

Watchers

James Cloos 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.