From cc08bb56f205ab8f89eb81d4b2a0089ef89332bc Mon Sep 17 00:00:00 2001 From: root Date: Mon, 2 Dec 2019 04:50:52 +0000 Subject: [PATCH] explain a possible error with API test --- spec/beef/api/auth_rate_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/beef/api/auth_rate_spec.rb b/spec/beef/api/auth_rate_spec.rb index e61d6c827..8af5eb78d 100644 --- a/spec/beef/api/auth_rate_spec.rb +++ b/spec/beef/api/auth_rate_spec.rb @@ -31,6 +31,8 @@ RSpec.describe 'BeEF API Rate Limit' do passwds.push BEEF_PASSWD apis = passwds.map { |pswd| BeefRestClient.new('http', ATTACK_DOMAIN, '3000', BEEF_USER, pswd) } l = apis.length + #If this is failing with expect(test_api.auth()[:payload]["success"]).to be(true) expected true but received nil + #make sure in config.yaml the password = BEEF_PASSWD, which is currently 'beef' (0..2).each do |again| # multiple sets of auth attempts # first pass -- apis in order, valid passwd on 9th attempt # subsequent passes apis shuffled