Files
metasploit-gs/external/installer-win32/scripts/msfupdate.rb
T

33 lines
472 B
Ruby
Raw Normal View History

2009-11-12 05:30:58 +00:00
#!/usr/bin/env ruby
File.umask(0022)
msf3 = '/msf3'
if ! File.directory?(msf3)
puts "[*] This Metasploit Framework installation is corrupted."
exit(1)
2009-11-12 05:30:58 +00:00
end
2009-11-12 05:30:58 +00:00
Dir.chdir(msf3)
begin
fd = File.open("/bin/bash", "a")
fd.close
rescue ::Exception
puts "[*] Error: msfupdate must be run as an administrative user"
2009-11-12 06:38:03 +00:00
sleep(30)
exit(1)
end
2009-11-12 05:30:58 +00:00
puts "[*] Updating the Metasploit Framework..."
puts ""
system("svn update")
2009-11-12 05:30:58 +00:00
puts ""
puts "[*] Update complete"
2009-11-12 06:38:03 +00:00
sleep(10)
exit(0)