The analyst used the command nmap -sV -T4 -F insecure.org to discover the application versions on the vulnerable website. The -sV option in Nmap is used to perform version detection, which identifies the versions of the services running on open ports. The -T4 option sets the timing template for faster execution, and -F scans only the most common ports.