Bash script:
#!/bin/bash
# Update, install and enable Docker
sudo apt update -y && sudo apt upgrade -y
sudo apt install -y docker.io
sudo systemctl enable docker --now
# Add current use into docker group
sudo usermod -aG docker $USER
# Pull latest Rustscan
docker pull rustscan/rustscan:latest
# Create a ZSH Aliases File
touch ~/.zsh_aliases
# Add it to ZSH RC
echo """if [ -f ~/.zsh_aliases ]; then
. ~/.zsh_aliases
fi""" >> ~/.zshrc
# Add the rustscan alias to ZSH Aliases File
echo "alias rustscan='docker run -it --rm --name rustscan rustscan/rustscan:latest'" >> ~/.zsh_aliases
# Source the ZSH RC File
. ~/.zshrc
# Rustscan Examples
echo """ Some Rustscan Examples
rustscan -a $ip -t 500 -b 1500 -- -A
rustscan -a $ip -t 2000 -b 4500 --ulimit 5000
rustscan -a $ip -g && rustscan $ports -- -sC -sV
"""
Thanks for reading