Merge pull request #21413 from tart0ru5/patch-1

Improve failure condition checks
This commit is contained in:
adfoster-r7
2026-05-06 23:42:37 +01:00
committed by GitHub
@@ -217,7 +217,7 @@ class MetasploitModule < Msf::Exploit::Remote
'vars_post' => params
})
fail_with(Failure::Unknown, 'Could not create a new user') unless res&.code != 403
fail_with(Failure::Unknown, 'Could not create a new user') if res.nil? || res.code == 403
print_good("User #{username} created with password #{password}")
end