https://community.rapid7.com/message/6761#6761hi all,
I have installed metasploit 4.5 using the linux binary installer from the site.
Now I wish to update it using git ........ as I have been told that going through git would only solve the mystry of my
java_jre17_jmxbean exploit not working can I update the existing install using git ? what should be the command to do that and pull down all the latest exploits like - java_jre17_jmxbean
thanks in advance
jinTao
当前正在审查
Edit: I missed the part where you wanted to keep your current install
and use git.
You can try this:
$ cd /opt/metasploit/msf3
$ git init
$ git remote add origin git://github.com/rapid7/metasploit-framework.gitUse `nano .git/config` to edit /opt/metasploit/msf3/.git/config to look like the following: (add the last three lines)
|
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true [remote "origin"] url = git://github.com/rapid7/metasploit-framework.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master |
$ git fetch
$ git reset --hard HEAD
$ git pull
And for good measure run `git status` to check that there aren't any local changes.
Original answer:Sounds like your problem may be related to
this question or
this one. But if you're just interested in using git instead you can remove the files provided by the binary installer and clone metasploit-framework from Github. Use the following to do so:
$ git clone git://github.com/rapid7/metasploit-framework.git /opt/metasploit/msf3After cloning you'll be able to run msfupdate like normal, though you'll also already be up to date for now.
Message was edited by: Erran Carey
当前正在审查
thanks I took your first advice :-
uninstalled the old binary
rm -rf /opt/metasploit/msf3
then did a git clone
git clone git://github.com/rapid7/metasploit-framework.git /opt/metasploit/msf3
It works like a charm now.
thanks again
jinTao
沒有留言:
張貼留言