Try purging it using apt-get than reinstalling.
i recently downloaded BT5 from the website and installled it on a vertiual machine. once installation is finished i tried to update everything using the setps below
#apt-get update && apt-get upgrade
After that i tried to updating Metasploit by uninstalling and then reinstalled it, guessing that this would installed latested Metasploit, like below
#cd /opt/framework3
/opt/framework3#./uninstall
/opt/framework3#apt-get install metasploit
Then i tried to connecting to msfconsole , but it gave me an error asshown below
#msfconsole
shell-init:error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init:error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init:error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/opt/metasploit/msf3/lib/fastlib.rb:362:in 'pwd' : No such file or directory - getcwd (errno: : ENOENT)
from /opt/metasploit/msf3/lib/fastlib.rb:362: in '<mudle:Kernel>'
from /opt/metasploit/msf3/lib/fastlib.rb:355: in '<top (required)>'
from /opt/metasploit/ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36: in 'require'
from /opt/metasploit/ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36: in 'require'
from /opt/metasploit/msf3/msfconsole:18: in '<main>'
can anyone help or can anyone tell me how to update metasploit on BT5, if im doing it wrongly.
Thanks
Try purging it using apt-get than reinstalling.
Back|track giving machine guns to monkeys since 2007 !
Do not read the Wiki, most your questions will not be answered there !
Do not take a look at the: Forum Rules !
I was thinking maybe purge than git clone the latest release and try that out.
Back|track giving machine guns to monkeys since 2007 !
Do not read the Wiki, most your questions will not be answered there !
Do not take a look at the: Forum Rules !
I think this was where you went wrong: "/opt/framework3#./uninstall". You don't ever need to uninstall, unless it's broken (which it now is for youcan anyone help or can anyone tell me how to update metasploit on BT5, if im doing it wrongly.).
The current version of the framework is 4.x, not 3. It's path is /opt/metasploit/msf3, not /opt/framework3.
I would suggest purging/deleting every reference to metasploit you can find, whatever version, then "apt-get install metasploit". May be easier just to re-install BT5R3.
Once you have an intact version of metasploit, update simply by "msfupdate" from the BT menu, or from the msfconsole command-line.
I did what as sickness told me to do..and it works..now i can connect to msfconsole and it got updated, version is v4.0.0 now. But there is another issue now. I want to connect to mysql db. When i try db_driver under msfconsole i only get postgresql driver available. And there is another message that says " Enable the mysql driver with the following command: $gem install mysql and also to intall libmysqlclient-dev" I did both but still same thing happens, only postgresql is available and same message displayed.
Any help?
In the same thread line I'm encountering another issue when I'm trying to install it from apt-get :
"
apt-get install metasploit
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
metasploit
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 277MB of archives.
After this operation, 0B of additional disk space will be used.
Get:1 http://64.repository.backtrack-linux.org/ revolution/testing metasploit 4.4.0-bt2 [277MB]
Get:2 http://64.repository.backtrack-linux.org/ revolution/testing metasploit 4.4.0-bt2 [277MB]
Fetched 276MB in 3s (79.3MB/s)
Failed to fetch http://64.repository.backtrack-linux...-bt2_amd64.deb Hash Sum mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
"
Firstly I've done:
1. apt-get purge metasploit
2. apt-get update --fix-missing
However, the issue still shows as I've described earlier.
Any thoughts?
Thanks much....