2 stable releases
1.0.2 | Aug 25, 2024 |
---|---|
1.0.1 | Aug 24, 2024 |
#175 in Command line utilities
273 downloads per month
1MB
259 lines
SHAD3
shad3 is an application using SHA3-512 to hash entries in a list or multiple lists.
For multiple lists, simply provide the highest numbered file's location/URL.
Use --expect "prefix goes here"
after the file location/URL to only hash texts following the given prefix.
Use --output my-file-path.txt
to place the checksums file somewhere besides checksums/checksums.txt.
Example:
Android, Linux, and MacOS:
bash ./shad3 http://blocklists.io/block04.txt --expect "127.0.0.1 " --output var/www/html/pornSites.txt
Windows:
bash shad3.exe http://blocklists.io/block04.txt --expect "127.0.0.1 " --output Documents\pornQueries.txt
Installation
From Cargo
-
Ensure you have Rust installed on your system. If not, follow the instructions here.
-
Install SHAD3 via Cargo by running:
cargo install shad3
-
Once installed, you can use SHAD3 from the command line:
shad3 --help
From Source
-
Ensure you have Rust installed on your system. If not, follow the instructions here.
-
Clone the repository and build:
git clone https://github.com/styromaniac/shad3.git cd shad3 cargo build --release
-
Move the binary to a directory in your PATH:
sudo mv target/release/shad3 /usr/local/bin/
-
Verify the installation by running:
shad3 --help
Android
rustup isn't available to make your life easier, but the command below is, though you are required to install F-Droid or (I recommend for automatic updates) F-Droid Basic, then through either, install Termux, open it, paste the command, then hit Enter. DO NOT INSTALL TERMUX FROM THE PLAY STORE AS IT IS FUNCTIONALLY USELESS.
pkg update && pkg upgrade && pkg install -y rust git build-essential && git clone https://github.com/styromaniac/shad3.git && cd shad3 && cargo build --release && cp target/release/shad3 $PREFIX/bin/ && echo -e '
# Rust and shad3 environment setup
export PATH=$PATH:/data/data/com.termux/files/home/.cargo/bin:$PREFIX/bin
export TMPDIR=/data/data/com.termux/files/home/temp
mkdir -p $TMPDIR
# Alias for updating and upgrading packages
alias pkgup="pkg update && pkg upgrade"
# Function to update shad3
update_shad3() {
cd ~/shad3 && git pull && cargo build --release && cp target/release/shad3 $PREFIX/bin/ && echo "shad3 updated successfully."
}
# Alias for updating shad3
alias update-shad3="update_shad3"' >> ~/.bashrc && source ~/.bashrc && shad3 --help
Linux and macOS
-
Install Rust if you haven't already:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Clone the repository and build:
git clone https://github.com/styromaniac/shad3.git cd shad3 cargo build --release
-
Move the binary to a directory in your PATH:
sudo mv target/release/shad3 /usr/local/bin/
-
Verify the installation by running:
shad3 --help
Windows
-
Install Rust from https://www.rust-lang.org/tools/install
-
Open Command Prompt or PowerShell and run:
git clone https://github.com/styromaniac/shad3.git cd shad3 cargo build --release
-
The executable will be in
target\release\shad3.exe
. You can move it to a directory in your PATH or run it from its current location. -
Verify the installation by running:
shad3 --help
Dependencies
~11–24MB
~365K SLoC