Skip to content

Commit 0f453c6

Browse files
committed
Even more print_status -> print_good
1 parent df9b642 commit 0f453c6

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

modules/exploits/windows/postgres/postgres_payload.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def do_login(user=nil,pass=nil,database=nil)
115115
)
116116
return result[:auth]
117117
else
118-
print_status("Login failed, fingerprint is #{result[:preauth] || result[:unknown]}")
118+
print_error("Login failed, fingerprint is #{result[:preauth] || result[:unknown]}")
119119
return :noauth
120120
end
121121
rescue Rex::ConnectionError, Rex::Post::Meterpreter::RequestError

modules/post/multi/gather/ping_sweep.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def run
6262
r = cmd_exec(cmd, count + ip_add)
6363
end
6464
if r =~ /(TTL|Alive)/i
65-
print_status "\t#{ip_add} host found"
65+
print_good "\t#{ip_add} host found"
6666
ip_found << ip_add
6767
else
6868
vprint_status("\t#{ip_add} host not found")

modules/post/osx/gather/hashdump.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def read_ds_xml_plist(plist_content)
165165
# reports the hash info to metasploit backend
166166
def report_hash(type, hash, user)
167167
return unless hash.present?
168-
print_status("#{type}:#{user}:#{hash}")
168+
print_good("#{type}:#{user}:#{hash}")
169169
case type
170170
when "NT"
171171
private_data = "#{Metasploit::Credential::NTLMHash::BLANK_LM_HASH}:#{hash}"

modules/post/windows/gather/arp_scanner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def arp_scan(cidr,threads)
6262
if h["return"] == client.railgun.const("NO_ERROR")
6363
mac_text = h["pMacAddr"].unpack('C*').map { |e| "%02x" % e }.join(':')
6464
company = OUI_LIST::lookup_oui_company_name(mac_text )
65-
print_status("\tIP: #{ip_text} MAC #{mac_text} (#{company})")
65+
print_good("\tIP: #{ip_text} MAC #{mac_text} (#{company})")
6666
report_host(:host => ip_text,:mac => mac_text)
6767
next if company.nil?
6868
report_note(:host => ip_text, :type => "mac_oui", :data => company)

modules/post/windows/gather/checkvm.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def hypervchk(session)
7070
:data => { :hypervisor => "MS Hyper-V" },
7171
:update => :unique_data
7272
)
73-
print_status("This is a Hyper-V Virtual Machine")
73+
print_good("This is a Hyper-V Virtual Machine")
7474
return "MS Hyper-V"
7575
end
7676
end
@@ -120,7 +120,7 @@ def vmwarechk(session)
120120
:data => { :hypervisor => "VMware" },
121121
:update => :unique_data
122122
)
123-
print_status("This is a VMware Virtual Machine")
123+
print_good("This is a VMware Virtual Machine")
124124
return "VMWare"
125125
end
126126
end
@@ -156,7 +156,7 @@ def checkvrtlpc(session)
156156
:data => { :hypervisor => "VirtualPC" },
157157
:update => :unique_data
158158
)
159-
print_status("This is a VirtualPC Virtual Machine")
159+
print_good("This is a VirtualPC Virtual Machine")
160160
return "VirtualPC"
161161
end
162162
end
@@ -223,7 +223,7 @@ def vboxchk(session)
223223
:data => { :hypervisor => "VirtualBox" },
224224
:update => :unique_data
225225
)
226-
print_status("This is a Sun VirtualBox Virtual Machine")
226+
print_good("This is a Sun VirtualBox Virtual Machine")
227227
return "VirtualBox"
228228
end
229229
end
@@ -280,7 +280,7 @@ def xenchk(session)
280280
:data => { :hypervisor => "Xen" },
281281
:update => :unique_data
282282
)
283-
print_status("This is a Xen Virtual Machine")
283+
print_good("This is a Xen Virtual Machine")
284284
return "Xen"
285285
end
286286
end
@@ -309,6 +309,7 @@ def qemuchk(session)
309309
:data => { :hypervisor => "Qemu/KVM" },
310310
:update => :unique_data
311311
)
312+
print_good("This is a Qemu/KVM Virtual Machine")
312313
return "Qemu/KVM"
313314
end
314315
end

modules/post/windows/recon/computer_browser_discovery.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def run
100100
print_error("No systems found of that type")
101101
return
102102
end
103-
print_status("Found #{result['totalentries']} systems.")
103+
print_good("Found #{result['totalentries']} systems.")
104104

105105
endofline = 0
106106
i = nameiterator

0 commit comments

Comments
 (0)