Skip to content

Commit 0aa7f37

Browse files
Cleanup
1 parent 3e7e557 commit 0aa7f37

File tree

8 files changed

+32
-32
lines changed

8 files changed

+32
-32
lines changed

.github/workflows/workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow is for production builds, main branch builds, etc.
22

3-
# Project: Mercy (https://github.com/azazelm3dj3d/mercy)
4-
# Author(s): azazelm3dj3d (https://github.com/azazelm3dj3d)
3+
# Project: Mercy (https://github.com/battleoverflow/mercy)
4+
# Author(s): battleoverflow (https://github.com/battleoverflow)
55
# License: BSD 2-Clause
66

77
name: Mercy

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[package]
22
name = "mercy"
33
description = "Mercy is an open-source Rust crate and CLI for building cybersecurity tools, assessment projects, and testing infrastructure."
4-
version = "2.0.1"
4+
version = "2.0.2"
55
edition = "2021"
6-
author = "azazelm3dj3d"
6+
author = "battleoverflow"
77
license = "BSD-2-Clause"
88
categories = ["cryptography", "command-line-utilities", "encoding"]
99
keywords = ["cybersecurity", "decode", "encode", "cracking"]
10-
repository = "https://github.com/azazelm3dj3d/mercy"
10+
repository = "https://github.com/battleoverflow/mercy"
1111

1212
[dependencies]
1313
base64 = "0.13.0"

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 2-Clause License
22

3-
Copyright (c) 2022, azazelm3dj3d
3+
Copyright (c) 2022-2024, battleoverflow
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<h1 align="center">
2-
<img src="https://raw.githubusercontent.com/azazelm3dj3d/mercy/main/assets/mercy_icon.png" width="40%" />
2+
<img src="https://raw.githubusercontent.com/battleoverflow/mercy/main/assets/mercy_icon.png" width="40%" />
33
</h1>
44

55
📚 [Documentation](https://docs.rs/mercy/latest/mercy/)
66

7-
![Workflow](https://github.com/azazelm3dj3d/mercy/actions/workflows/workflow.yml/badge.svg?branch=main)
7+
![Workflow](https://github.com/battleoverflow/mercy/actions/workflows/workflow.yml/badge.svg?branch=main)
88

99
Mercy is an open source Rust crate and CLI designed for building cybersecurity tools, assessment projects, and testing. The goal of the project is to make creating security tools in Rust more accessible and sustainable without complex algorithms.
1010

1111
## Usage
1212
Since Mercy is a standard crate, it can easily be used in any project already initialized with Cargo. Simply add the following line to your `Cargo.toml` file:
1313

1414
```toml
15-
mercy = "2.0.1"
15+
mercy = "2.0.2"
1616
```
1717

1818
Once the `Cargo.toml` file is updated, you can import the crate and use the provided methods by running `cargo run`. There are lots of different examples available below.
@@ -24,8 +24,8 @@ Here's a quick example of decoding and encoding using the base64 protocol:
2424
use mercy::{ decode, encode };
2525

2626
fn main() {
27-
// Encode string "azazelm3dj3d"
28-
encode("base64", "azazelm3dj3d");
27+
// Encode string "battleoverflow"
28+
encode("base64", "battleoverflow");
2929

3030
// Decode string "YXphemVsbGFicw=="
3131
decode("base64", "YXphemVsbGFicw==");
@@ -44,13 +44,13 @@ fn main() {
4444
```
4545

4646
### Malware/Malicious Detection
47-
You can check if a domain (i.e. azazelm3dj3d.com) is currently classified as malicious using the InQuest API:
47+
You can check if a domain (i.e. example.com) is currently classified as malicious using the InQuest API:
4848

4949
```rust
5050
use mercy::malicious;
5151

5252
fn main() {
53-
malicious("status", "azazelm3dj3d.com");
53+
malicious("status", "example.com");
5454
}
5555
```
5656

@@ -69,10 +69,10 @@ fn main() {
6969
extra("system_info", "all");
7070

7171
// Defang an ip address or domain
72-
extra("defang", "azazelm3dj3d.com");
72+
extra("defang", "example.com");
7373

7474
// Run a WHOIS lookup on a domain
75-
extra("whois", "azazelm3dj3d.com");
75+
extra("whois", "example.com");
7676

7777
// Attempt to identify an unknown string
7878
extra("identify", "UCrlEbqe4ppk5dVIHzdxtC7g");
@@ -175,15 +175,15 @@ mercy -m ip -p internal_ip
175175

176176
Quickly check if a domain is malicious.
177177
```bash
178-
mercy -m mal -p status -i "azazelm3dj3d.com"
178+
mercy -m mal -p status -i "example.com"
179179
```
180180

181181
Extract a zip file.
182182
```bash
183183
mercy -m zip_e -p zip -i "/Users/name/Downloads/archive.zip"
184184
```
185185

186-
If you're stuck, you can use this option to learn every command at your disposal from [Mercy](https://github.com/azazelm3dj3d/mercy):
186+
If you're stuck, you can use this option to learn every command at your disposal from [Mercy](https://github.com/battleoverflow/mercy):
187187
```bash
188188
mercy -e
189189
```

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
//!
1616
1717
/*
18-
Project: Mercy (https://github.com/azazelm3dj3d/mercy)
19-
Author(s): azazelm3dj3d (https://github.com/azazelm3dj3d)
18+
Project: Mercy (https://github.com/battleoverflow/mercy)
19+
Author(s): battleoverflow (https://github.com/battleoverflow)
2020
License: BSD 2-Clause
2121
*/
2222

@@ -65,8 +65,8 @@ use mailparse::*;
6565

6666
/// Learn more about the crate
6767
pub fn source() -> String {
68-
const VERSION: &str = "2.0.1";
69-
const AUTHOR: &str = "azazelm3dj3d (https://github.com/azazelm3dj3d)";
68+
const VERSION: &str = "2.0.2";
69+
const AUTHOR: &str = "battleoverflow (https://github.com/battleoverflow)";
7070
return format!("Author: {}\nVersion: {}\nDocumentation: https://docs.rs/crate/mercy/latest", AUTHOR, VERSION);
7171
}
7272

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
//!
55
66
/*
7-
Project: Mercy (https://github.com/azazelm3dj3d/mercy)
8-
Author(s): azazelm3dj3d (https://github.com/azazelm3dj3d)
7+
Project: Mercy (https://github.com/battleoverflow/mercy)
8+
Author(s): battleoverflow (https://github.com/battleoverflow)
99
License: BSD 2-Clause
1010
*/
1111

tests/assets/test.hex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
azazelm3dj3d
1+
battleoverflow

tests/tests.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ use mercy;
66

77
#[test]
88
fn decodes_values() {
9-
assert_eq!(mercy::decode("base64", "YXphemVsbTNkajNk"), "azazelm3dj3d");
10-
assert_eq!(mercy::decode("rot13", "nmnmryz3qw3q"), "azazelm3dj3d");
9+
assert_eq!(mercy::decode("base64", "YmF0dGxlb3ZlcmZsb3c="), "battleoverflow");
10+
assert_eq!(mercy::decode("rot13", "onggyrbiresybj"), "battleoverflow");
1111
}
1212

1313
#[test]
1414
fn encodes_values() {
15-
assert_eq!(mercy::encode("base64", "azazelm3dj3d"), "YXphemVsbTNkajNk");
15+
assert_eq!(mercy::encode("base64", "battleoverflow"), "YmF0dGxlb3ZlcmZsb3c=");
1616
}
1717

1818
#[test]
1919
fn hashes_values() {
20-
assert_eq!(mercy::hash("sha256", "azazelm3dj3d"), "88172dfbf2e8c6aa00bdbd9611ffc72b3910be1fac0ef2c43196502022df8cfa");
21-
assert_eq!(mercy::hash("md5", "azazelm3dj3d"), "4f85ebc7ef03bf7de13dd609f7b6a637");
20+
assert_eq!(mercy::hash("sha256", "battleoverflow"), "504543ca9f14824a934f7a6e76fac178cbf6652d2589edf664baf6479295a637");
21+
assert_eq!(mercy::hash("md5", "battleoverflow"), "4ce35faf1f8881ef6bfcedbd07e82fd2");
2222
}
2323

2424
/*
@@ -37,7 +37,7 @@ fn dumps_hex_values() {
3737

3838
#[test]
3939
fn malicious_status_test() {
40-
assert_eq!(mercy::malicious("status", "https://azazelm3dj3d.com"), "No classification available");
40+
assert_eq!(mercy::malicious("status", "https://example.com"), "No classification available");
4141
}
4242

4343
/*
@@ -46,5 +46,5 @@ fn malicious_status_test() {
4646

4747
#[test]
4848
fn extra_and_experimental_tests() {
49-
assert_eq!(mercy::extra("defang", "https://azazelm3dj3d.com"), "https://azazelm3dj3d[.]com");
50-
}
49+
assert_eq!(mercy::extra("defang", "https://example.com"), "https://example[.]com");
50+
}

0 commit comments

Comments
 (0)