Metadata-Version: 2.1
Name: checksec.py
Version: 0.3.7
Summary: Checksec tool implemented in Python
Home-page: https://github.com/Wenzel/checksec.py
Author: Mathieu Tarral
Author-email: mathieu.tarral@protonmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
Classifier: Development Status :: 4 - Beta
Classifier: Typing :: Typed
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: lief (==0.10.1)
Requires-Dist: docopt (==0.6.2)
Requires-Dist: rich (==7.1.0)
Requires-Dist: pylddwrap (==1.0.1)
Requires-Dist: pyinstaller (==4.0)

<h1 align="center">
  <br>checksec.py</br>
</h1>

<h3 align="center">
Checksec tool in Python, Rich output, based on LIEF
</h3>

<p align="center">
  <a href="https://github.com/Wenzel/checksec.py/actions?query=workflow%3ACI">
    <img src="https://github.com/Wenzel/checksec.py/workflows/CI/badge.svg" alt="CI badge"/>
  </a>
  <a href="https://pypi.org/project/checksec.py/">
    <img src="https://img.shields.io/pypi/v/checksec.py?color=green" alt="PyPI package badge"/>
  </a>
  <a href="https://pypi.org/project/checksec.py/">
    <img src="https://img.shields.io/pypi/pyversions/checksec.py" alt="Python version badge"/>
  </a>
</p>

## Overview

A simple tool to verify the security properties of your binaries.

Based on:
- [Rich](https://github.com/willmcgugan/rich): Beautiful terminal output formatting
- [LIEF](https://github.com/lief-project/LIEF): Cross-platform library to parse, modify and abstract ELF, PE and Mach-O formats

Supported formats:

- [x] `ELF`
- [x] `PE`
- [ ] `Mach-O`

## Requirements

- `Python 3.6`
- `virtualenv`

## Setup

~~~
virtualenv -p python3 venv
source venv/bin/activate
(venv) pip install .
~~~

## Usage

~~~
(venv) checkec <file_or_directory>...
~~~

### Example: `/usr/local/bin`

![analyzing_local_bin](https://user-images.githubusercontent.com/964610/94361570-87a8cf80-00b5-11eb-8edd-5d579f15baaf.png)

Check `--help` for more options

## References

- [@apogiatzis](https://github.com/apogiatzis) [Gist checksec.py](https://gist.github.com/apogiatzis/fb617cd118a9882749b5cb167dae0c5d)
- [checksec.sh](https://github.com/slimm609/checksec.sh)
- [winchecksec](https://github.com/trailofbits/winchecksec)


