Skip to content

Commit 6a281b2

Browse files
committed
Fix all-inclusive rescue per @wchen-r7 suggestion
1 parent 84d1c23 commit 6a281b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/windows/recon/resolve_ip.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def resolve_ip(ip)
3939
memtext = client.railgun.memread(ptr2dns['return'],255)
4040
host_inmem = memtext.split(ip_ino)[1].split("\00")[0]
4141
print_good("#{ip} resolves to #{host_inmem}")
42-
rescue ::Exception => e
42+
rescue Rex::Post::Meterpreter::RequestError
4343
print_error("Failed to resolve #{ip}")
4444
end
4545
end

0 commit comments

Comments
 (0)