Update metasploit through http proxy
This was a feature that many people requested for long time. In previous versions of metasploit, msfupdate didn’t allow us to use proxies. Now that is based on subversion, we can do it. I’ll show you how using Backtrack 5.
Although we configured the proxy using the Network Proxy Preferences window in gnome:
And therefore we have the environment variables set in the shell:
$ env | grep http
Something seems to be missing when we use msfupdate or svn. So the following steps are the key ones.
Edit the file ~/.subversion/servers
Go to global section (normally at the end) and modify it to look like this:
http-proxy-host = proxy.mydomain.com
http-proxy-port = 8080
http-proxy-username = myuser
http-proxy-password = mypass
If your proxy doesn’t require authentication just comment out the user and password lines.
Save and close. Now go to /pentest/exploits/framework and launch the following command.