This script retrieves the version of Outlook Web Access (OWA) for a given URL. It is designed to help users quickly determine the OWA version exposed through the interface.
1.0
01/03/2023
To use this script, follow the steps below:
-
Make the script executable:
chmod +x ./OWA_version_checker.sh
-
Run the script:
./OWA_version_checker.sh
-
Enter the targeted URL when prompted:
Please enter the Exchange OWA URL: https://owa.example.com/
- Ensure that you have
curl
installed on your system as the script uses it to fetch the OWA login page. - The script checks if the URL provided is empty but does not validate the URL format. Ensure that the URL is correctly formatted.
- usage(): Displays the usage information and exits the script.
- Prompt for URL: The script asks the user to enter the Exchange OWA URL.
- Check URL: Verifies that the URL is not empty. If empty, it displays an error message and usage information.
- Fetch Version Headers: Uses
curl
to retrieve the OWA login page and extracts the version headers. - Check Fetch Success: If
curl
fails, it displays an error message. - Display Version: If version headers are found, they are displayed. If not, an appropriate message is shown.
Please enter the Exchange OWA URL: https://owa.example.com/
Exchange OWA Version Headers:
X-OWA-Version: 15.1.2308.8