Files
metasploit-gs/external/installer-win32/scripts/msfupdate.rb
T
HD Moore d38ac81282 Hopefully the last round of tweaks for the windows installer
git-svn-id: file:///home/svn/framework3/trunk@7479 4d416f70-5f16-0410-b530-b9f4589650da
2009-11-12 07:13:09 +00:00

33 lines
472 B
Ruby

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