<commit_before># shard

[![Join the chat at https://gitter.im/philwantsfish/shard](https://badges.gitter.im/frohoff/ysoserial.svg)](https://gitter.im/philwantsfish/shard?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

A command line tool to detect shared passwords

## Usage

List options:

```
$ java -jar shard.jar --help
Shard 1.4
Usage: java -jar shard-1.4.jar [options]

  -u, --username <value>  Username to test
  -p, --password <value>  Password to test
  -f, --file <value>      File containing a set of credentials
  --format <value>        The format of the credentials. Must be a regular expression with 2 capture groups. The first capture group for the username and the second capture group for the password. Defaults to a regex that will match:
        "username":"password"
  -l, --list              List available modules
  -v, --version           Print the version
  --modules <value>       Only run specific modules. A comma separated list
  --help                  prints this usage text

```

List available modules:

``` bash
$ java -jar shard.jar -l
Available modules:
        Facebook
        LinkedIn
        Reddit
        Twitter
        Instagram
        GitHub
        BitBucket
        Kijiji
        DigitalOcean
        Vimeo
        Laposte

```

## Examples

Given a username and password shard will attempt to authenticate with multiple sites:

``` bash
$ java -jar shard-1.4.jar -u username-here -p password-here
21:16:25.950 [+] Running in single credential mode
21:16:30.302 [+] username-here:password-here - Reddit, Instagram
```
To test multiple credentials supply a filename. By default this expects one credential per line in the format `"username":"password"`. Custom formats can be supplied with the `--format` option

```
$ java -jar shard.jar -f /tmp/creds.txt
21:16:39.501 [+] Running in multi-credential mode
21:16:39.516 [+] Parsed 2 credentials
21:16:42.794 [+] username1:password1 - Reddit, Instagram
21:16:45.189 [+] username2:password2 - Facebook, LinkedIn, Twitter<commit_msg>Updating README<commit_after># shard

[![Join the chat at https://gitter.im/philwantsfish/shard](https://badges.gitter.im/frohoff/ysoserial.svg)](https://gitter.im/philwantsfish/shard?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

A command line tool to detect shared passwords

## Usage

List options:

```
$ java -jar shard.jar --help
Shard 1.4
Usage: java -jar shard-1.4.jar [options]

  -u, --username <value>  Username to test
  -p, --password <value>  Password to <PASSWORD>
  -f, --file <value>      File containing a set of credentials
  --format <value>        The format of the credentials. Must be a regular expression with 2 capture groups. The first capture group for the username and the second capture group for the password. Defaults to a regex that will match:
        "username":"password"
  -l, --list              List available modules
  -v, --version           Print the version
  --modules <value>       Only run specific modules. A comma separated list
  --help                  prints this usage text

```

List available modules:

``` bash
$ java -jar shard.jar -l
Available modules:
        Facebook
        LinkedIn
        Reddit
        Twitter
        Instagram
        GitHub
        BitBucket
        Kijiji
        DigitalOcean
        Vimeo
        Laposte

```

The master branch also has a module for Dailymotion.

## Examples

Given a username and password shard will attempt to authenticate with multiple sites:

``` bash
$ java -jar shard-1.4.jar -u username-here -p password-here
21:16:25.950 [+] Running in single credential mode
21:16:30.302 [+] username-here:password-here - Reddit, Instagram
```
To test multiple credentials supply a filename. By default this expects one credential per line in the format `"username":"password"`. Custom formats can be supplied with the `--format` option

```
$ java -jar shard.jar -f /tmp/creds.txt
21:16:39.501 [+] Running in multi-credential mode
21:16:39.516 [+] Parsed 2 credentials
21:16:42.794 [+] username1:password1 - Reddit, Instagram
21:16:45.189 [+] username2:password2 - Facebook, LinkedIn, Twitter
{'fraction_non_alphanumeric': 0.10225095785440613, 'fraction_numerical': 0.031609195402298854, 'mean_word_length': 3.0435624394966116, 'pattern_counts': {'":': 4, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2154467', 'n_tokens_mistral': 1354, 'n_tokens_neox': 1245, 'n_words': 445}