Implemented #remove_ruleset method.

This commit is contained in:
soh_cah_toa
2014-04-23 12:50:42 -04:00
parent 56c686de64
commit 2303851498

View File

@@ -93,6 +93,13 @@ module BeEF
@lock.synchronize { BeEF::Core::Models::Dns::Rule.collect { |rule| to_hash(rule) } }
end
# Removes the entire DNS ruleset.
#
# @return [Boolean] true if ruleset was destroyed, otherwise false
def remove_ruleset
@lock.synchronize { BeEF::Core::Models::Dns::Rule.destroy }
end
# Entry point for processing incoming DNS requests. Attempts to find a matching rule and
# sends back its associated response.
#