We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a281b2 commit d5bb7b1Copy full SHA for d5bb7b1
modules/post/windows/recon/resolve_hostname.rb
@@ -50,8 +50,7 @@ def resolve_hostname(hostname)
50
ip = sockaddr[4,4].unpack('N').first
51
hostip = Rex::Socket.addr_itoa(ip)
52
print_status("#{hostname} resolves to #{hostip}")
53
- rescue ::Exception => e
54
- print_error(e)
+ rescue Rex::Post::Meterpreter::RequestError
55
print_status('Windows 2000 and prior does not support getaddrinfo')
56
end
57
0 commit comments