Closed ghost closed 9 years ago
Seeing exactly the same thing:
msf > search ghost
[!] Database not connected or cache not built, using slow search
[-] Error while running command search: wrong number of arguments (1 for 0)
Call stack:
/msf/modules/post/windows/gather/enum_ad_users.rb:125:in `search_filter'
/msf/lib/msf/ui/console/command_dispatcher/core.rb:1501:in `block (2 levels) in cmd_search'
/msf/lib/msf/core/module_set.rb:77:in `each'
/msf/lib/msf/core/module_set.rb:77:in `each'
/msf/lib/msf/ui/console/command_dispatcher/core.rb:1495:in `block in cmd_search'
/msf/lib/msf/ui/console/command_dispatcher/core.rb:1494:in `each'
/msf/lib/msf/ui/console/command_dispatcher/core.rb:1494:in `cmd_search'
/msf/lib/rex/ui/text/dispatcher_shell.rb:427:in `run_command'
/msf/lib/rex/ui/text/dispatcher_shell.rb:389:in `block in run_single'
/msf/lib/rex/ui/text/dispatcher_shell.rb:383:in `each'
/msf/lib/rex/ui/text/dispatcher_shell.rb:383:in `run_single'
/msf/lib/rex/ui/text/shell.rb:200:in `run'
/msf/lib/metasploit/framework/command/console.rb:38:in `start'
/msf/lib/metasploit/framework/command/base.rb:82:in `start'
./msfconsole:48:in `<main>'
Built inside of docker with a fresh checkout today. The DB appears to be connected and working, at least:
msf > db_status
[*] postgresql connected to msf_database
I also attempted to upgrade Ruby from 1.9.3 to 2.1.5 and rebuilt my Docker container to the same results. (It's been a while since I rebuilt this container, so I was trying all the basics).
EDIT:
Seems to be working after I let it finish building the DB:
msf > search ghost
Matching Modules
================
Name Disclosure Date Rank Description
---- --------------- ---- -----------
auxiliary/scanner/http/wordpress_ghost_scanner normal WordPress XMLRPC Ghost Vulnerability Scanner
auxiliary/server/capture/printjob_capture normal Printjob Capture Service
exploit/windows/http/sws_connection_bof 2012-07-20 normal Simple Web Server Connection Header Buffer Overflow
I think the problem only exists in the slow search.
Checking this out now. Thanks for the report.
msf > search ghost
Matching Modules
================
Name Disclosure Date Rank Description
---- --------------- ---- -----------
auxiliary/scanner/http/wordpress_ghost_scanner normal WordPress XMLRPC Ghost Vulnerability Scanner
auxiliary/server/capture/printjob_capture normal Printjob Capture Service
exploit/windows/http/sws_connection_bof 2012-07-20 normal Simple Web Server Connection Header Buffer Overflow
msf > db_disconnect
msf > search ghost
[!] Database not connected or cache not built, using slow search
[-] Error while running command search: wrong number of arguments (1 for 0)
Call stack:
/home/wvu/metasploit-framework/modules/post/windows/gather/enum_ad_users.rb:125:in `search_filter'
/home/wvu/metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:1501:in `block (2 levels) in cmd_search'
/home/wvu/metasploit-framework/lib/msf/core/module_set.rb:77:in `each'
/home/wvu/metasploit-framework/lib/msf/core/module_set.rb:77:in `each'
/home/wvu/metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:1495:in `block in cmd_search'
/home/wvu/metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:1494:in `each'
/home/wvu/metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:1494:in `cmd_search'
/home/wvu/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:427:in `run_command'
/home/wvu/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:389:in `block in run_single'
/home/wvu/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:383:in `each'
/home/wvu/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:383:in `run_single'
/home/wvu/metasploit-framework/lib/rex/ui/text/shell.rb:200:in `run'
/home/wvu/metasploit-framework/lib/metasploit/framework/command/console.rb:38:in `start'
/home/wvu/metasploit-framework/lib/metasploit/framework/command/base.rb:82:in `start'
./msfconsole:48:in `<main>'
msf >
I've seen this a few times in the last couple of days as well on master
.
@wchen-r7 can repro, too.
If you change the method name search_filter in the enum_ad_users.rb module, you fix the prob.
Yup, fixing. Thanks, everyone.
Lol this is an awesome bug, how do we prevent it in future?
Cucumber.
Celery.
repaired: