jgxvx/cilician-runner

Command Line Interface for the Cilician Library

Installs: 3

Dependents: 0

Suggesters: 1

Type:project

1.0.1 2018-10-03 21:14 UTC

README

Command Line Interface for the Cilician library, a PHP client to the haveibeenpwned.com APIs.

pipeline status coverage report

Installation

The recommended way to install Cilician is by using Composer:

$ composer global require "jgxvx/cilician-runner"

The installation can be verified by invoking

$ cilician --version
Cilician Runner 0.1.0

If the cilician executable is not found, make sure the global Composer directory is in the PATH, or symlink the executable to a location in your PATH, e.g.

$ ln -s ~/.composer/vendor/bin/cilician /usr/local/bin/cilician

Usage

Commands

To see a list of available commands, run

$ cilician list

To get help for a specific command, run

$ cilician help <command>

Verbosity

The -v option can be passed to all commands for more verbose output.

Check a Password

To see if a password has appeared in one or more breaches, run

$ cilician password 12345678 -v

Getting All Breaches for an Account

To see if the account john@doe.com has been breached, simply run

$ cilician breaches john@doe.com -v

To narrow down the search to a specific domain:

$ cilician breaches john@doe.com --domain=example.com -v

By default, only verified breaches are returned. To include unverified breaches, pass the following option to the command:

$ cilician breaches john@doe.com --include-unverified -v

Getting All Breached Sites in the System

To see a list of breached sites, run

$ cilician sites -v

This too, can be filtered by domain:

$ cilician sites --domain=example.com -v

Getting a Single Breached Site

To get information on a specific site, run

$ cilician site Adobe -v

Getting All Data Classes in the System

To get a list of all available data classes in the system, run

$ cilician data-classes

Getting All Pastes for an Account

Similar to breaches, a search can be made for all pastes of an account:

$ cilician pastes john@doe.com -v

Clearing the Cache

Cilician Runner uses a filesystem-based cache to optimise the requests made to the API. The cache directory is located at ./.cache in the root directory of your Cilician installation.

To clear the cache, run

$ cilician clear-cache

License

Cilician is open source software published under the MIT license. Please refer to the LICENSE file for further information.

Contributing

We appreciate your help! To contribute, please read the Contribution Guidelines and our Code of Conduct.