Skip to content

Commit de411e7

Browse files
author
RageLtMan
committed
Msf DNS server - add :use_resolver? method
1 parent ee21865 commit de411e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/msf/core/exploit/dns/server.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,13 @@ def reset_service
166166
start_service
167167
end
168168

169+
#
170+
# Determines if resolver is available and configured for use
171+
#
172+
def use_resolver?
173+
!datastore['DISABLE_RESOLVER'] and self.respond_to?(:setup_resolver)
174+
end
175+
169176
end
170177
end
171178
end

0 commit comments

Comments
 (0)