To check a web server from the command line for dangerous files, outdated server software, and misconfigurations, an an…