Giter Club home page Giter Club logo

vautomator-client's Introduction

vautomator-client

Client to use the vautomator-serverless back-end.

Install

  1. Clone this repository: git clone https://github.com/mozilla/vautomator-client.git && cd vautomator-client
  2. Create a virtual env (I use pipenv): pipenv --python 3.x
  3. Install as egg: python setup.py install

Usage

NOTE: This client is only intended to work with the vautomator API (see https://github.com/mozilla/vautomator-serverless)

The client supports 3 modes: run to run a vulnerability scan, download to download scan results (manually, if you have to), and monitor to monitor CT logs for new subdomains under "mozilla.com", "mozilla.org" and "firefox.com".

It is highly recommended to use the great maws tool (https://pypi.org/project/mozilla-aws-cli-mozilla/), before running a scan with this client. Otherwise, the client will prompt for an API key, which you will have to obtain from infosec-dev AWS account.

Pre-requisites

  • In your virtual environment, install maws: pip install mozilla-aws-cli-mozilla
  • Sign in to AWS via SSO: eval $(maws -w). When prompted in the browser, select infosec-dev-MAWS-Admin role. If everything goes well you now should have AWS credentials set as your environment variables.

Run it!

  1. To run a scan on a target host: va_ondemand run www.mozilla.org
    • If everything goes well, you should, in an hour or so, have results sent to an SNS Topic which in turn has a Google Group, vautomator-results subscribed to it. If you join this Google Group, you will get results emailed to you.
  2. To (manually) download results for a scan: va_ondemand download www.mozilla.org.
    • This should create a tar.gz file under a folder called results in the current working directory, containing output from tooling.
  3. To monitor CT logs and automatically kick off a scan for specific subdomains: va_ondemand monitor.
    • Note that this mode is blocking, as it will listen for events in certificate transparency logs, until you end the program.

vautomator-client's People

Contributors

caggle avatar gene1wood avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vautomator-client's Issues

Make a client which does not require an AWS profile to work

The current client requires an AWS profile which uses a role that should be present in infosec-dev AWS account. While this works in general, it makes it impossible for people to use the tool who are not a part of the infosec-dev account.

add setup.py / packaging

As per mozilla/vautomator-serverless#48:

"This allow users to install the program. The ondemand.py file should be added a binary to install in setup.py as well.
That way, one can install the package and just call ondemand.py (or, may I suggest, rename it "vaautomator-ondemand" or similar as well) without having to swap to a custom virtual env, or doing anything special"

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.