Skip to content

Commit 51673ca

Browse files
author
HD Moore
committed
Search reference values as well (ms08-067,etc)
1 parent f17ea91 commit 51673ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/db_manager.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,9 +575,9 @@ def search_modules(search_string, inclusive=false)
575575
where_q << ' ( ' +
576576
'module_details.fullname ILIKE ? OR module_details.name ILIKE ? OR module_details.description ILIKE ? OR ' +
577577
'module_authors.name ILIKE ? OR module_actions.name ILIKE ? OR module_archs.name ILIKE ? OR ' +
578-
'module_targets.name ILIKE ? OR module_platforms.name ILIKE ? ' +
578+
'module_targets.name ILIKE ? OR module_platforms.name ILIKE ? OR module_refs.name ILIKE ?' +
579579
') '
580-
where_v << [ xv, xv, xv, xv, xv, xv, xv, xv ]
580+
where_v << [ xv, xv, xv, xv, xv, xv, xv, xv, xv ]
581581
when 'name'
582582
xv = "%#{kv}%"
583583
where_q << ' ( module_details.fullname ILIKE ? OR module_details.name ILIKE ? ) '

0 commit comments

Comments
 (0)