Skip to content

Commit

Permalink
Add sha1-crack
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrav committed Apr 5, 2023
1 parent 11330cb commit 13e7b89
Show file tree
Hide file tree
Showing 8 changed files with 228 additions and 23 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.4] - 2023-04-04

### Added

- Added `sha1-crack` subcommand

## [0.0.3] - 2023-04-04

### Changed
Expand All @@ -17,5 +23,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Added changelog

[0.0.3]: https://github.com/mbrav/git_raider/compare/0.0.2...0.0.3
[0.0.2]: https://github.com/mbrav/git_raider/releases/tag/0.0.2
[0.0.4]: https://github.com/mbrav/nuttertools/compare/0.0.3...0.0.4
[0.0.3]: https://github.com/mbrav/nuttertools/compare/0.0.2...0.0.3
[0.0.2]: https://github.com/mbrav/nuttertools/releases/tag/0.0.2
178 changes: 161 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "nuttertools"
description = "A collection of crazy CLI tools in Rust"
authors = ["mbrav <mbrav@protonmail.com>"]
version = "0.0.3"
version = "0.0.4"
edition = "2021"

[profile.dev]
Expand All @@ -22,3 +22,4 @@ path = "src/main.rs"

[dependencies]
clap = { version = "4", features = ["derive"] }
sha1 = "0.10"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Commands:
proxy-police Proxy tool for spoofing red light activity
rat A program that will rat on all files you pass to it
russian-roulette Famous Russian gun game that blows brains
sha1-crack Your trusted SHA1 cracking dealer on the block
help Print this message or the help of the given subcommand(s)
Options:
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub mod prosecho;
pub mod proxy_police;
pub mod rat;
pub mod russian_roulette;
pub mod sha1_crack;

/// nuttertools Error
#[derive(Debug)]
Expand Down
7 changes: 5 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use clap::{ArgAction, Parser, Subcommand};

use nuttertools::{phone_gen, prosecho, proxy_police, rat, russian_roulette, Error};
use nuttertools::{phone_gen, prosecho, proxy_police, rat, russian_roulette, sha1_crack};
use std::error::Error;
use std::time::{Duration, Instant};

#[derive(Parser)]
Expand All @@ -22,9 +23,10 @@ pub enum Commands {
ProxyPolice(proxy_police::Options),
Rat(rat::Options),
RussianRoulette(russian_roulette::Options),
SHA1Crack(sha1_crack::Options),
}

fn main() -> Result<(), Error> {
fn main() -> Result<(), Box<dyn Error>> {
let cli = Cli::parse();

let start: Instant = Instant::now();
Expand All @@ -35,6 +37,7 @@ fn main() -> Result<(), Error> {
Commands::ProxyPolice(options) => proxy_police::main(options)?,
Commands::Rat(options) => rat::main(options)?,
Commands::RussianRoulette(options) => russian_roulette::main(options)?,
Commands::SHA1Crack(options) => sha1_crack::main(options)?,
}

if !&cli.no_time {
Expand Down
Loading

0 comments on commit 13e7b89

Please sign in to comment.