diff --git a/lib/controller/checks.py b/lib/controller/checks.py index ffdcd19ae..da5deb47a 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -1210,6 +1210,8 @@ def checkConnection(suppressOutput=False): logger.info(infoMsg) try: + Request.queryPage(content=True, noteResponseTime=False) # dropping first page because it can be totally different than subsequent (e.g. WebGoat) before the Cookie is set up + page, _ = Request.queryPage(content=True, noteResponseTime=False) kb.originalPage = kb.pageTemplate = page diff --git a/lib/core/option.py b/lib/core/option.py index f3183c5c8..bcd48738e 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1116,7 +1116,7 @@ def _setAuthCred(): """ if kb.passwordMgr: - kb.passwordMgr.add_password(None, "%s://%s" % (conf.scheme, conf.hostname), conf.authUsername, conf.authPassword) + kb.passwordMgr.add_password(None, "%s://%s:%d" % (conf.scheme, conf.hostname, conf.port), conf.authUsername, conf.authPassword) def _setHTTPAuthentication(): """