Hide this exception until loader.jar is checked in

git-svn-id: file:///home/svn/framework3/trunk@9880 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-07-20 03:10:15 +00:00
parent d388c1bc4f
commit 2ce616fa1a
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,8 @@ module Metasploit3
# Constructs the payload
#
def generate
reverse = File.read(File.join(Msf::Config::InstallRoot, 'data', 'java', 'loader.jar'))
reverse = File.read(File.join(Msf::Config::InstallRoot, 'data', 'java', 'loader.jar')) rescue ""
print_status("Generated loader.jar (#{reverse.length} bytes)")
return super + reverse
@ -52,3 +53,4 @@ module Metasploit3
end
end