Skip to content

Commit 18b00ce

Browse files
sfewer-r7jvoisin
andauthored
Use a more permissive regex to pull out the logbox name value
Co-authored-by: Julien Voisin <[email protected]>
1 parent 6bdebf6 commit 18b00ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/admin/misc/brother_default_admin_auth_bypass_cve_2024_51978.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def validate_password(password)
351351
return Metasploit::Model::Login::Status::UNABLE_TO_CONNECT
352352
end
353353

354-
unless res.body =~ /input type="password" id="LogBox" name="([a-zA-Z0-9]+)"/
354+
unless res.body =~ /input type="password" id="LogBox" name="([^"]+)"/
355355
vprint_error('Failed to extract login form LogBox name.')
356356
return Metasploit::Model::Login::Status::UNABLE_TO_CONNECT
357357
end

0 commit comments

Comments
 (0)