Metasploit Framework Version Detection (Windows)

Summary
This script finds the installed Metasploit Framework version and saves the version in KB. The script logs in via smb, searches for Metasploit in the registry and gets the version from 'DisplayVersion' string from the registry.
Detection
registry version check