Use filter

This commit is contained in:
Brendan Coles
2014-04-25 04:17:17 +10:00
parent 9af8e6bd00
commit 6f467557f3

View File

@@ -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."