Skip to content

dmdhrumilmistry/masshog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MassHog

Masshog Logo

MassHog is a command-line tool designed to help users efficiently scan multiple GitHub repositories for sensitive information using the TruffleHog tool. By providing a list of HTTPS URLs to repositories, MassHog simplifies the process of identifying secrets that may have been accidentally committed.

Features

  • Batch Scanning: Scan multiple GitHub repositories by providing a single file containing HTTPS URLs.
  • Integration with TruffleHog: Leverage TruffleHog's powerful scanning capabilities for detecting secrets.
  • User-friendly Interface: Easy-to-use command-line interface for quick setup and execution.
  • Configurable Options: Customize the scan parameters for your specific needs.

Requirements

  • Go 1.23 or later
  • TruffleHog installed on your machine

Installation

Using Go

  • Install using go install command

    go install github.com/dmdhrumilmistry/masshog@latest

Manual Method

  • Clone the repository

    git clone https://github.com/dmdhrumilmistry/masshog.git
    cd masshog
  • Install masshog

    go install .

Usage

  • To scan multiple GitHub repositories, create a file (e.g., repos.txt) that contains the HTTPS URLs of the repositories you want to scan. Each URL should be on a new line:

    https://github.com/owner/repo1.git
    https://github.com/owner/repo2.git
    https://github.com/owner/repo3.git
  • Run MassHog with the following command

    masshog -f repos.txt -s state.json -o results.json
  • For configurations and flags use -h

    masshog -h

Contributing

Contributions are welcome! If you have suggestions or improvements, please create a pull request or open an issue.

  • Fork the repository

  • Create your feature branch

    git checkout -b feature/my-feature
  • Commit your changes

    git commit -m 'Add some feature'
  • Push to the branch

    git push origin feature/my-feature
  • Open a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Mass Github repos secret scanner using trufflehog

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages