slither-audit
v1.0.2
Published
The slither-audit npm CLI tool is a powerful utility for generating detailed Slither reports for Ethereum smart contracts and converting them into PDF format. This tool simplifies the process of analyzing Ethereum smart contracts for security vulnerabilit
Downloads
4
Maintainers
Readme
slither-audit
Version: 1.0.1
Overview
The "slither-audit" npm CLI tool is a utility for generating detailed Slither reports for Ethereum smart contracts and converting them into PDF format. It simplifies the process of analyzing Ethereum smart contracts for security vulnerabilities using the Slither static analysis framework.
Key features of the tool include:
- Automated Slither Analysis: Easily run Slither analysis on Ethereum smart contracts directly from the command line.
- Customizable PDF Reports: Convert Slither reports into well-structured PDF documents for easy sharing and documentation.
- Detailed Insights: Get insights into contract vulnerabilities, including impact, confidence, location, description, and check information.
- User-Friendly Interface: The generated PDF reports are presented in a user-friendly tabular format for easy understanding.
Installation
You can install the "slither-audit" CLI tool globally using npm. Make sure you have Node.js and npm installed on your system.
npm install -g slither-audit
OR
npx slither-audit
Usage
After installation, you can use the "slither-audit" CLI tool as follows:
Navigate to the directory containing your Ethereum smart contracts.
Open your terminal and run the following command:
slither-audit
The tool will automatically perform Slither analysis on the Ethereum smart contracts in the current directory.
It will generate a detailed Slither report and convert it into a PDF document for easy access and sharing.
run following command for analysis of contract address:
slither-audit contract=<contract_address> network=<network_name>
- network can be ethereum, polygon or base.
pass project name for pdf title, run command:
slither-audit contract=<contract_address> network=<network_name> project=<project_name>
Dependencies
The "slither-audit" CLI tool relies on the following dependencies:
- Puppeteer: Used for converting HTML reports into PDF format.
- Dotenv: Used for keep secrets with key and value.