diff --git a/core/main/crypto.rb b/core/main/crypto.rb index 6da601f9c..1258cb38c 100644 --- a/core/main/crypto.rb +++ b/core/main/crypto.rb @@ -82,7 +82,7 @@ module Core begin id = random_hex_string(8) - BeEF::Core::Models::Dns::Rule.each { |rule| throw StandardError if id == rule.id } + BeEF::Core::Models::Dns::Rule.all.each { |rule| throw StandardError if id == rule.id } rescue StandardError retry end