2010-10-19 07:32:50 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
msfbase = __FILE__
|
|
|
|
while File.symlink?(msfbase)
|
|
|
|
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
Dir.chdir(File.dirname(msfbase))
|
|
|
|
|
|
|
|
$stderr.puts "[*]"
|
|
|
|
$stderr.puts "[*] Attempting to update the Metasploit Framework..."
|
|
|
|
$stderr.puts "[*]"
|
2010-10-19 08:22:44 +00:00
|
|
|
$stderr.puts ""
|
|
|
|
|
2011-05-03 23:58:41 +00:00
|
|
|
wait = (ARGV.shift.to_s == "wait")
|
2010-10-19 08:22:44 +00:00
|
|
|
|
2011-05-03 23:58:41 +00:00
|
|
|
system("svn", "update", *ARGV)
|
|
|
|
|
|
|
|
if wait
|
2010-10-19 08:22:44 +00:00
|
|
|
$stderr.puts ""
|
|
|
|
$stderr.puts "[*] Please hit enter to exit"
|
|
|
|
$stderr.puts ""
|
|
|
|
$stdin.readline
|
|
|
|
end
|