GithubHelp home page GithubHelp logo

fabric-shellshock's Introduction

fabric-shellshock

Fabric script to squash the nasty bash shellshock bug

This fabric script should test for CVE-2014-6278, CVE-2014-6271, CVE-2014-7186 and CVE-2014-7187.

There is a redhat and centos directory. Each one contains a gpg signed version of bash for the respective distro. The script will push the file to the server and do a yum localinstall on it. Once installed a second test run is made to verify that the vulnerabilities have been patched. Once done then the rpm will be removed.

To Use

Create a ~/.fabricrc file in your home directory that looks like the following:

user = ssh_user

Then run the fab command with the options that you need. See the examples below.

Command options

  • -I: This prompts for your sudo password
  • --hide commands: This keeps the output sane
  • -H: Host or list of hosts separated by commas

The script will prompt for 2 or 3 items:

  • A filename with a list of hosts to hit (one name per line) if the 'hostlist' option is used
  • Your password

In this instance the filename "staging" was used with only one file in it.

fab hostlist bash_updater -I --hide commands
Initial value for env.password: 
Host list name: staging
[<hostname>] Red Hat Enterprise Linux Server release 5.6 (Tikanga)
[<hostname>] OK test_cve_2014_6278 
[<hostname>] OK test_cve_2014_6271 
[<hostname>] OK test_cve_2014_7186 
[<hostname>] OK test_cve_2014_7187 

Done.
Disconnecting from <hostname>... done.

It is possible to specify one host or a list at the command line with the -H option and not using "hostlist". For example:

fab -H <hostname> -I --hide commands

To List Possible Commands

Use fab --list or fab -l.

$ fab --list
Available commands:

    bash_updater
    get_distro_version
    hostlist

fabric-shellshock's People

Contributors

ericlake avatar

Watchers

 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.