Giter VIP home page Giter VIP logo

patton-cli's Introduction

DEPRECATED. patton-cli has been moved into a module of the new patton repository for better maintenance. THIS REPOSITORY WILL BE DELETED AS OF JULY 1

Patton-cli - The knife of the Admin & Security auditor

Current version 0.0.1
Project site https://github.com/bbva/patton-cli
Issues https://github.com/bbva/patton-cli/issues/
Python versions 3.6 or above

What's Patton cli?

Patton-cli (PC) born with the objective to be a knife for system admins and security auditors.

PC could be filled with many different sources and report in many formats, being great for scripting.

You can see a demo video running Patton-Server + Patton-CLI:

patton demo

Installation

NOTE

Patton-cli need a Patton-server. Be sure that the server is running!

Using pip

Install Patton is easy:

> python3.6 -m pip install patton-cli

Using Docker

There is an included [Dockerfile](./Dockerfile). It can install patton-cli from either the pypi release, the github head, or from the current working directory. It accepts a build-arg for chose. Run one of:

docker build -t patton-cli . --build-arg source=cwd
docker build -t patton-cli . --build-arg source=github
docker build -t patton-cli . --build-arg source=pypi

Getting started

Quick example

> patton django:1.9

+------------+-------------------------------------+---------------------+
| Name       | CPEs                                | CVEs                |
+------------+-------------------------------------+---------------------+
| django:1.9 | cpe:/a:djangoproject:django:1.9:rc2 | CVE-2017-7234 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7234 (5.8) |
|            | ----------------------------------- | ------------------- |
|            | cpe:/a:djangoproject:django:1.9:rc2 | CVE-2017-7234 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7234 (5.8) |
|            | ----------------------------------- | ------------------- |
|            | cpe:/a:djangoproject:django:1.9:rc2 | CVE-2017-7234 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7234 (5.8) |
|            | ----------------------------------- | ------------------- |
|            | cpe:/a:djangoproject:django:1.9:rc2 | CVE-2017-7234 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7234 (5.8) |
|            | ----------------------------------- | ------------------- |
|            | cpe:/a:djangoproject:django:1.9:rc1 | CVE-2017-7234 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7234 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            | ----------------------------------- | ------------------- |
|            | cpe:/a:djangoproject:django:1.9:rc1 | CVE-2017-7234 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7234 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            | ----------------------------------- | ------------------- |
|            | cpe:/a:djangoproject:django:1.9:rc1 | CVE-2017-7234 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7234 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            | ----------------------------------- | ------------------- |
|            | cpe:/a:djangoproject:django:1.9:rc1 | CVE-2017-7234 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7234 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            | ----------------------------------- | ------------------- |
|            | cpe:/a:djangoproject:django:1.9:b1  | CVE-2017-7234 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
|            | ----------------------------------- | ------------------- |
|            | cpe:/a:djangoproject:django:1.9:b1  | CVE-2017-7234 (5.8) |
|            |                                     | ------------------- |
|            |                                     | CVE-2017-7233 (5.8) |
+------------+-------------------------------------+---------------------+

Getting help

Patton-cli has self-explained doc:

> patton -h

usage: patton [-h] [-v] [--patton-host PATTON_HOST] [-F {table,json,csv}] [-q]
          [-i FROM_FILE] [-o OUTPUT_FILE]
          [-e {python,alpine,simple_parser,auto,nmap,dpkg}] [-s] [-D] [-B]
          [-t {auto,nmap}] [-f]
          [INPUT_LIST [INPUT_LIST ...]]

Patton cli

positional arguments:
  INPUT_LIST

optional arguments:
  -h, --help            show this help message and exit
  -v                    log level
  --patton-host PATTON_HOST
                        patton server host
  -F {table,json,csv}, --display-format {table,json,csv}
                        display format options
  -q, --quiet           do not display any information in stdout
  -i FROM_FILE, --from-file FROM_FILE
                        output file for results
  -o OUTPUT_FILE, --output-file OUTPUT_FILE
                        results file. formats: csv, json, raw
  -e {python,alpine,simple_parser,auto,nmap,dpkg}, --source-type {python,alpine,simple_parser,auto,nmap,dpkg}
                        use specific source parser
  -s, --skip-on-fail    doesn't abort execution on dependency check fail

Working modes:
  -D, --dependency      check libraries and versions (default)
  -B, --banner          check banners (currently experimental)

Specific option for banners:
  -t {auto,nmap}, --banner-type {auto,nmap}
                        http, ftp, ...-
  -f, --follow          read from stdin and do a continuously check

Examples:

  * Checking specific library and output as table:
    > patton django:1.2 flask:1.1.0

  * Checking Python installed dependencies and output as CSV:
    > pip freeze | patton -F csv
    or
    > patton -F csv -i requirements.txt

  * Checking ubuntu dependencies display as table and dump in json file:
    > dpkg -l | patton -e dpkg -F table -o results.json

Usage examples

Getting vulnerabilities from different sources

From Ubuntu

> dpkg -l | patton -e dpkg

From Brew

> brew list --versions | patton

From Alpine

> apk version -v | patton -e alpine

From python requirements

> pip freeze | patton -e python

or

> cat requirements.txt | patton -e python

or

> patton -i requirements.txt -e python

From Golang requirements

> cat Gopkg.lock | patton -e golang

Formatting the output

Patton-cli can display results in these formats:

  • Table
  • JSON
  • CSV
> cat requirements.txt | patton -e python -F csv
> cat requirements.txt | patton -e python -F json
> cat requirements.txt | patton -e python -F table

Exporting results

Patton-cli can export the results in format:

  • Raw (table)
  • JSON
  • CSV

The format of file is determined by the extension:

> cat requirements.txt | patton -e python -o report.json
> cat requirements.txt | patton -e python -o report.csv
> cat requirements.txt | patton -e python -o report.raw

Quiet mode

If you don't want that Patton-cli reports anything by the terminal, you can use -q option:

> cat requirements.txt | patton -e python -q -o report.csv

Some funny examples

Listing dependencies and check te vulns:

> dpkg -l | tee patton -e dpkg -q -o reports.csv

Finding critical vulnerabilities:

> dpkg -l | patton -e dpkg -F csv | grep "10\.0" > critial_vulns.txt

Contributing

Any collaboration is welcome!

There're many tasks to do.You can check the Issues and send us a Pull Request.

Also you can read the TODO file.

License

This project is distributed under Apache 2 license

patton-cli's People

Contributors

bbvalabs-bot avatar cr0hn avatar directionless avatar engapa avatar iknite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

patton-cli's Issues

default patton-host is not local

I think the default patton-host for the cli should be http://127.0.0.1:8000 and not patton.owaspmadrid.org:8000

In the meantime, If you are testing the project locally you would need to run it this way: patton --patton-host http://127.0.0.1:8000 django:1.9

Cannot pip install patton-cli

I cannot pip install patton-cli. I am getting this error:
KeyError: 'CIRCLE_BUILD_NUM'

It seems that this env variable is required for the installation but I cannot see anything in the documentation to understand why that is required.

Thanks!

Duplicated CVE & CPE results

Patton returns duplicated CPE in the same query and sometimes duplicated CVE for the same CPE.

An example of duplicated CPE:

$ patton django:1.9.1
+--------------+-----------------------------------+---------------------+
| Name         | CPEs                              | CVEs                |
+--------------+-----------------------------------+---------------------+
| django:1.9.1 | cpe:/a:djangoproject:django:1.9.1 | CVE-2016-9013 (7.5) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-9014 (6.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2048 (6.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7233 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7234 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-7401 (5.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2512 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-6186 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2513 (2.6) |
|              | --------------------------------- | ------------------- |
|              | cpe:/a:djangoproject:django:1.9.1 | CVE-2016-9013 (7.5) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-9014 (6.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2048 (6.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7233 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7234 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-7401 (5.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2512 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-6186 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2513 (2.6) |
|              | --------------------------------- | ------------------- |
|              | cpe:/a:djangoproject:django:1.9.1 | CVE-2016-9013 (7.5) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-9014 (6.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2048 (6.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7233 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7234 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-7401 (5.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2512 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-6186 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2513 (2.6) |
|              | --------------------------------- | ------------------- |
|              | cpe:/a:djangoproject:django:1.9.1 | CVE-2016-9013 (7.5) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-9014 (6.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2048 (6.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7233 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7234 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-7401 (5.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2512 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-6186 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2513 (2.6) |
|              | --------------------------------- | ------------------- |
|              | cpe:/a:djangoproject:django:1.9.1 | CVE-2016-9013 (7.5) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-9014 (6.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2048 (6.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7233 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7234 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-7401 (5.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2512 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-6186 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2513 (2.6) |
|              | --------------------------------- | ------------------- |
|              | cpe:/a:djangoproject:django:1.9.1 | CVE-2016-9013 (7.5) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-9014 (6.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2048 (6.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7233 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7234 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-7401 (5.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2512 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-6186 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2513 (2.6) |
|              | --------------------------------- | ------------------- |
|              | cpe:/a:djangoproject:django:1.9.1 | CVE-2016-9013 (7.5) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-9014 (6.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2048 (6.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7233 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7234 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-7401 (5.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2512 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-6186 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2513 (2.6) |
|              | --------------------------------- | ------------------- |
|              | cpe:/a:djangoproject:django:1.9.1 | CVE-2016-9013 (7.5) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-9014 (6.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2048 (6.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7233 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7234 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-7401 (5.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2512 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-6186 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2513 (2.6) |
|              | --------------------------------- | ------------------- |
|              | cpe:/a:djangoproject:django:1.9.1 | CVE-2016-9013 (7.5) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-9014 (6.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2048 (6.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7233 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2017-7234 (5.8) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-7401 (5.0) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2512 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-6186 (4.3) |
|              |                                   | ------------------- |
|              |                                   | CVE-2016-2513 (2.6) |
+--------------+-----------------------------------+---------------------+

An example of duplicated CVE:

$ patton django:1.8.2
+--------------+-----------------------------------+----------------------+
| Name         | CPEs                              | CVEs                 |
+--------------+-----------------------------------+----------------------+
| django:1.8.2 | cpe:/a:djangoproject:django:1.8.2 | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              | --------------------------------- | -------------------- |
|              | cpe:/a:djangoproject:django:1.8.2 | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              | --------------------------------- | -------------------- |
|              | cpe:/a:djangoproject:django:1.8.2 | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              | --------------------------------- | -------------------- |
|              | cpe:/a:djangoproject:django:1.8.2 | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              | --------------------------------- | -------------------- |
|              | cpe:/a:djangoproject:django:1.8.2 | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              | --------------------------------- | -------------------- |
|              | cpe:/a:djangoproject:django:1.8.2 | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              | --------------------------------- | -------------------- |
|              | cpe:/a:djangoproject:django:1.8.2 | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              | --------------------------------- | -------------------- |
|              | cpe:/a:djangoproject:django:1.8.2 | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              | --------------------------------- | -------------------- |
|              | cpe:/a:djangoproject:django:1.8.2 | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              | --------------------------------- | -------------------- |
|              | cpe:/a:djangoproject:django:1.8.2 | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
|              |                                   | -------------------- |
|              |                                   | CVE-2018-7536 (None) |
+--------------+-----------------------------------+----------------------+

Exception thrown when trying analyze Gopkg.lock

When I ran:

cat Gopkg.lock | patton -e golang

I get the following error:

Traceback (most recent call last):
  File "/usr/local/bin/patton", line 11, in <module>
    load_entry_point('patton-cli==1.0.1', 'console_scripts', 'patton')()
  File "/usr/local/lib/python3.6/dist-packages/patton_cli-1.0.1-py3.6.egg/patton_client/cli.py", line 151, in main
  File "/usr/local/lib/python3.6/dist-packages/patton_cli-1.0.1-py3.6.egg/patton_client/check_dependencies.py", line 19, in check_dependencies
  File "/usr/local/lib/python3.6/dist-packages/patton_cli-1.0.1-py3.6.egg/patton_client/libraries_parsers/__init__.py", line 42, in parse_dependencies
  File "/usr/local/lib/python3.6/dist-packages/patton_cli-1.0.1-py3.6.egg/patton_client/libraries_parsers/golang.py", line 22, in golang_parser
  File "/usr/local/lib/python3.6/dist-packages/patton_cli-1.0.1-py3.6.egg/patton_client/libraries_parsers/golang.py", line 22, in <dictcomp>
IndexError: list index out of range

error msg

ubuntu 17.04

command :
dpkg -l | patton -e dpkg

result:
[!] Input data is not in 'dpkg -l' format

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.