Skip to content

Commit 11c64b8

Browse files
Update lib/msf/core/exploit/remote/http/flowise.rb
Co-authored-by: msutovsky-r7 <martin_sutovsky@rapid7.com>
1 parent 9624f75 commit 11c64b8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/msf/core/exploit/remote/http/flowise.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ def flowise_login(email, password)
9595
return true
9696
end
9797

98-
if res.code == 401
99-
fail_with(Msf::Exploit::Failure::NoAccess, 'Authentication failed - invalid credentials')
100-
end
98+
fail_with(Msf::Exploit::Failure::NoAccess, 'Authentication failed - invalid credentials') if res.code == 401
10199

102100
fail_with(Msf::Exploit::Failure::UnexpectedReply, "Login failed with HTTP #{res.code}")
103101
end

0 commit comments

Comments
 (0)