0873d4db19
As seen in the json file the `RHOSTS` parameter, which is set in Metasploit, is passed as `rhost` to the python script. Therefore `RHOSTS` is not a valid index in the `args` json file, causing the python script to crash as seen in #15717. `{ "WORKSPACE":"", "VERBOSE":"false", "THREADS":"1", "ShowProgress":"true", "ShowProgressPercent":"10", "targeturi":"/RDWeb/Pages/en-US/login.aspx", "rport":"443", "domain":"", "username":"********", "password":"", "timeout":"1250", "enum_domain":"true", "verify_service":"true", "user_agent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0", "UNPARSED_RHOSTS":"***.***.***.***", "**rhost**":"***.***.***.***" }`