Skip to content

Commit cd01b07

Browse files
committed
Lands print_bad and vprint_bad from todb-r7
2 parents 202009b + 1deacad commit cd01b07

File tree

19 files changed

+39
-4
lines changed

19 files changed

+39
-4
lines changed

lib/metasploit/framework/login_scanner/telnet.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ def print_error(message)
133133
@parent.print_error(message)
134134
end
135135

136+
alias_method :print_bad, :print_error
137+
136138
end
137139
end
138140
end

lib/msf/core/auxiliary/auth_brute.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,8 @@ def vprint_error(msg='')
667667
print_brute :level => :verror, :legacy_msg => msg
668668
end
669669

670+
alias_method :vprint_bad, :vprint_error
671+
670672
# Legacy vprint
671673
def vprint_good(msg='')
672674
print_brute :level => :vgood, :legacy_msg => msg

lib/msf/core/auxiliary/web/http.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,5 +326,7 @@ def print_error( message )
326326
@parent.print_error message
327327
end
328328

329+
alias_method :print_bad, :print_error
330+
329331
end
330332
end

lib/msf/core/module/ui/message.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ def print_error(msg='')
88
super(print_prefix + msg)
99
end
1010

11+
alias_method :print_bad, :print_error
12+
1113
def print_good(msg='')
1214
super(print_prefix + msg)
1315
end

lib/msf/core/module/ui/message/verbose.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ def vprint_error(msg='')
44
print_error(msg) if datastore['VERBOSE'] || (!framework.nil? && framework.datastore['VERBOSE'])
55
end
66

7+
alias_method :vprint_bad, :vprint_error
8+
79
# Verbose version of #print_good
810
def vprint_good(msg='')
911
print_good(msg) if datastore['VERBOSE'] || (!framework.nil? && framework.datastore['VERBOSE'])

lib/msf/core/payload/apk.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ def print_error(msg='')
1919
$stderr.puts "[-] #{msg}"
2020
end
2121

22+
alias_method :print_bad, :print_error
23+
2224
def usage
2325
print_error "Usage: #{$0} -x [target.apk] [msfvenom options]\n"
2426
print_error "e.g. #{$0} -x messenger.apk -p android/meterpreter/reverse_https LHOST=192.168.1.1 LPORT=8443\n"

lib/msf/core/plugin.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ def print_error(msg='')
112112
output.print_error(msg) if (output)
113113
end
114114

115+
alias_method :print_bad, :print_error
116+
115117
#
116118
# Prints a 'good' message.
117119
#

lib/rex/script/base.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def print_line(msg); end
99
def print_status(msg); end
1010
def print_good(msg); end
1111
def print_error(msg); end
12+
alias_method :print_bad, :print_error
1213
def print_warning(msg); end
1314
end
1415

lib/rex/ui/output.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class Output
2424
def print_error(msg='')
2525
end
2626

27+
alias_method :print_bad, :print_error
28+
2729
#
2830
# Prints a 'good' message.
2931
#

lib/rex/ui/subscriber.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def print_error(msg='')
4646
end
4747
end
4848

49+
alias_method :print_bad, :print_error
50+
4951
#
5052
# Wraps user_output.print_good
5153
#

0 commit comments

Comments
 (0)