Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search broken #3797

Closed
leebaird opened this issue Sep 15, 2014 · 11 comments
Closed

Search broken #3797

leebaird opened this issue Sep 15, 2014 · 11 comments
Assignees
Labels
bug hotness Something we're really excited about library

Comments

@leebaird
Copy link

Kali Linux 1.0.9, fully patched
64-bit

msf > version
Framework: 4.10.0-2014091001
Console  : 4.10.0-2014091001.15168

msf > hosts 

Hosts
-------

address     mac     name     os_name     os_flavor     os_sp     purpose     info     comments
----------      -----      -------     -------------    -------------     -----        -----------     -----     --------------
192.168.1.50                      Unknown                    device         
192.168.1.115                    FreeBSD                    server         
192.168.1.200                    Linux Ubuntu              server         
192.168.1.203                    Unknown                    device         

msf > search solarwinds
[!] Database not connected or cache not built, using slow search
[-] Error while running command search: uninitialized constant SocialEngineering

Call stack:
/opt/metasploit/apps/pro/modules/auxiliary/pro/social_engineering/web_phish.rb:52:in `initialize'
/usr/share/metasploit-framework/lib/msf/core/module_set.rb:55:in `new'
/usr/share/metasploit-framework/lib/msf/core/module_set.rb:55:in `create'
/usr/share/metasploit-framework/lib/msf/core/module_set.rb:28:in `[]'
/usr/share/metasploit-framework/lib/msf/core/module_set.rb:76:in `block in each'
/usr/share/metasploit-framework/lib/msf/core/module_set.rb:75:in `each'
/usr/share/metasploit-framework/lib/msf/core/module_set.rb:75:in `each'
/usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:1474:in `block in cmd_search'
/usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:1467:in `each'
/usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:1467:in `cmd_search'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:427:in `run_command'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:389:in `block in run_single'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:383:in `each'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:383:in `run_single'
/usr/share/metasploit-framework/lib/rex/ui/text/shell.rb:200:in `run'
/usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:15:in `start'
/usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:82:in `start'
/opt/metasploit/apps/pro/msf3/msfconsole:22:in `<main>'
@void-in
Copy link
Contributor

void-in commented Sep 16, 2014

Can't reproduce at my end. The Metasploit version is:

msf > version
Framework: 4.10.1-dev
Console  : 4.10.1-dev.15168

Using msfconsole with database connected:

msf > search solarwinds

Matching Modules
================
Name                                                                               Disclosure    Date  Rank       Description
----                                                                                   ---------------  ----    -----------
auxiliary/dos/windows/tftp/solarwinds                               2010-05-21  normal              SolarWinds TFTP Server 10.4.0.10 Denial of Service
exploit/multi/http/solarwinds_store_manager_auth_filter 2014-08-19       excellent       SolarWinds Storage Manager Authentication Bypass
exploit/windows/http/solarwinds_storage_manager_sql   2011-12-07       excellent       Solarwinds Storage Manager 5.1.0 SQL Injection

Explicitly running msfconsole -n to disable the database support:

msf > search solarwinds
[!] Database not connected or cache not built, using slow search
Matching Modules
================
Name                                                                               Disclosure    Date  Rank       Description
----                                                                                   ---------------  ----    -----------
auxiliary/dos/windows/tftp/solarwinds                               2010-05-21  normal              SolarWinds TFTP Server 10.4.0.10 Denial of Service
exploit/multi/http/solarwinds_store_manager_auth_filter 2014-08-19       excellent       SolarWinds Storage Manager Authentication Bypass
exploit/windows/http/solarwinds_storage_manager_sql   2011-12-07       excellent       Solarwinds Storage Manager 5.1.0 SQL Injection

@truekonrads
Copy link

Same error, from kali packages:
msf auxiliary(tftp) > version
Framework: 4.10.0-2014100201
Console : 4.10.0-2014100201.15168
msf auxiliary(tftp) > db_status
[*] postgresql connected to msf3

@cidy0106
Copy link

cidy0106 commented Nov 1, 2014

msf > show auxiliary
[-] Error while running command show: uninitialized constant SocialEngineering

Call stack:
/opt/metasploit/apps/pro/modules/auxiliary/pro/social_engineering/email_track.rb:24:in initialize' /usr/share/metasploit-framework/lib/msf/core/module_set.rb:54:innew'
/usr/share/metasploit-framework/lib/msf/core/module_set.rb:54:in create' /usr/share/metasploit-framework/lib/msf/core/module_set.rb:27:in[]'
/usr/share/metasploit-framework/lib/msf/core/module_set.rb:75:in block in each' /usr/share/metasploit-framework/lib/msf/core/module_set.rb:74:ineach'
/usr/share/metasploit-framework/lib/msf/core/module_set.rb:74:in each' /usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:3291:insort'
/usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:3291:in show_module_set' /usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:3126:inshow_auxiliary'
/usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:2119:in block in cmd_show' /usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:2098:ineach'
/usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:2098:in cmd_show' /usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:427:inrun_command'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:389:in block in run_single' /usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:383:ineach'
/usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:383:in run_single' /usr/share/metasploit-framework/lib/rex/ui/text/shell.rb:200:inrun'
/usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:30:in start' /usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:82:instart'
/opt/metasploit/apps/pro/msf3/msfconsole:48:in `

'
msf > version
Framework: 4.10.0-2014102901
Console : 4.10.0-2014102901.15168
msf > db_status
[*] postgresql connected to msf3
msf >

@dt0x
Copy link

dt0x commented Nov 2, 2014

Same for me after msfupdate on 32 bit Kali

@kernelsmith
Copy link
Contributor

I'm just guessing on the assignee, but I figure Ben is either the right guy, or will know who is

@kernelsmith kernelsmith added the hotness Something we're really excited about label Nov 2, 2014
@dt0x
Copy link

dt0x commented Nov 2, 2014

Update: A reboot and service metasploit restart and all of a sudden things have kicked back into action... Searches returning results even without a cache rebuild.

Im rebuilding cache now and will update once finished.

@kernelsmith
Copy link
Contributor

@leebaird can you close this if @dt0x' solution works for you? Thanks

@truekonrads
Copy link

a reboot seems to clear things up. Weird upgrade issue

@kernelsmith
Copy link
Contributor

@leebaird I'm going to close this, if u want it reopened just comment.

Fix: reboot

@jessiwinceslas
Copy link

hi guys,
same problem with it even after restart all services (postgresql & metasploit).
I was trying to reboot & rebuilding cache but nothing!
help will be appreciate. tx.

@Narendran36
Copy link

Yeah I had the same issue, if reboot does not work in your case do try these commands:

service postgresql start
msfdb init

It seemed to solve my issue when rebooting did not work🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug hotness Something we're really excited about library
Projects
None yet
Development

No branches or pull requests

10 participants