Skip to content

Commit 12f0501

Browse files
committed
Add a little erorr checking, another cow
1 parent a0ba2f4 commit 12f0501

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

lib/msf/ui/banner.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,23 @@ module Banner
3232

3333
def self.readfile(fname)
3434
base = File.expand_path(File.dirname(__FILE__))
35-
File.open(File.join(base, "logos", fname)) {|f| f.read f.stat.size}
35+
pathname = File.join(base, "logos", fname)
36+
begin
37+
fdata = File.open(pathname) {|f| f.read f.stat.size}
38+
rescue SystemCallError
39+
fdata = ""
40+
end
3641
end
3742

3843
def self.to_s
3944
if ENV['GOCOW']
40-
case rand(2)
45+
case rand(3)
4146
when 0
4247
self.readfile Logos[1]
4348
when 1
4449
self.readfile Logos[5]
50+
when 2
51+
self.readfile Logos[6]
4552
end
4653
else
4754
self.readfile Logos[rand(Logos.length)]

lib/msf/ui/web/r7-metasploit.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2+
%% %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3+
%% %% %%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4+
%% % %%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5+
%% %% %%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6+
%% %%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7+
%%%%%%%%%%%%%%%%%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