Sub.sh is a script to detect subdomain online. So let us have a look on it usage. Script bash sub.sh…