Skip to content

Commit

Permalink
Merge PR #1593 - remove msfupdate svn support
Browse files Browse the repository at this point in the history
  • Loading branch information
bturner-r7 committed Mar 26, 2013
2 parents 6e1182b + debae8a commit 7c9a65f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
15 changes: 8 additions & 7 deletions msfconsole
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ end

def print_deprecation_warning
$stdout.puts ""
$stdout.puts "[*] Deprecation Note: After 2013-03-15 (March 15, 2013), Metasploit"
$stdout.puts "[*] source checkouts will NO LONGER update over SVN, but will be using"
$stdout.puts "[*] GitHub exclusively. You should either download a new Metasploit"
$stdout.puts "[*] installer, or use a git clone of Metasploit Framework before"
$stdout.puts "[*] then. You will also need outbound access to github.com on"
$stdout.puts "[*] TCP port 9418 (git), 22 (ssh) or 443 (https), depending on the"
$stdout.puts "[*] protocol used to clone Metasploit Framework (usually, git protocol)."
$stdout.puts "[-] Deprecation Note: Metasploit source checkouts NO LONGER update"
$stdout.puts "[-] over SVN. You will need to reinstall Metasploit using"
$stdout.puts "[-] binary installers (from http://www.metasploit.com/download ),"
$stdout.puts "[-] Debian packages (currently only supported on Kali Linux), or"
$stdout.puts "[-] a development source checkout from GitHub (see http://r-7.co/ZLhA8P )"
$stdout.puts "[-] "
$stdout.puts "[-] For more on msfupdate and migrating off of SVN, see http://r-7.co/MSF-UP"
$stdout.puts ""
end

if is_svn
Expand Down
20 changes: 15 additions & 5 deletions msfupdate
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,18 @@ end

def print_deprecation_warning
$stdout.puts ""
$stdout.puts "[*] Deprecation Note: After 2013-02-28 (February 28, 2013), Metasploit"
$stdout.puts "[*] source checkouts will NO LONGER update over SVN, but will be using"
$stdout.puts "[*] GitHub exclusively. You should either download a new Metasploit"
$stdout.puts "[*] installer, or use a git clone of Metasploit Framework before"
$stdout.puts "[*] then. You will also need outbound access to github.com:9418/TCP."
$stdout.puts "[-] Deprecation Note: Metasploit source checkouts NO LONGER update"
$stdout.puts "[-] over SVN. You will need to reinstall Metasploit using"
$stdout.puts "[-] binary installers (from http://www.metasploit.com/download ),"
$stdout.puts "[-] Debian packages (currently only supported on Kali Linux), or"
$stdout.puts "[-] a development source checkout from GitHub (see http://r-7.co/ZLhA8P )"
$stdout.puts "[-] "
$stdout.puts "[-] For more on msfupdate and migrating off of SVN, see http://r-7.co/MSF-UP"
$stdout.puts ""
end

# This only exits if you actually pass a wait option, otherwise
# just returns nil. This is likely unexpected, revisit this.
def maybe_wait_and_exit(exit_code=0)
if @actually_wait
$stdout.puts ""
Expand Down Expand Up @@ -129,7 +133,13 @@ end

####### Since we're SVN, do it all this way #######
if is_svn
# We're fully deprecated now, so just exit.
# Leaving in the commented code in case someone wants to
# get a last-chance at msfupdate before the SVN server goes
# off line, which will be ANY DAY NOW. Seriously.
print_deprecation_warning
$stdin.readline if @actually_wait
exit(0x11) # Comment this to get old functionality back.
@args.push("--config-dir=#{@configdir}")
@args.push("--non-interactive")

Expand Down

0 comments on commit 7c9a65f

Please sign in to comment.