diff --git a/core/main/handlers/browserdetails.rb b/core/main/handlers/browserdetails.rb index a048ac597..03d593d83 100644 --- a/core/main/handlers/browserdetails.rb +++ b/core/main/handlers/browserdetails.rb @@ -306,7 +306,7 @@ module BeEF # get and store the value for CPU cpu_type = get_param(@data['results'], 'CPU') - if !cpu_type.nil? + if BeEF::Filters.is_valid_cpu?(cpu_type) BD.set(session_id, 'CPU', cpu_type) else self.err_msg "Invalid value for CPU returned from the hook browser's initial connection."