beefproject / beef

The Browser Exploitation Framework Project
https://beefproject.com
9.86k stars 2.18k forks source link

Refactor auth_rate_spec to account for password used in config #2182

Open DeezyE opened 3 years ago

DeezyE commented 3 years ago

within /spec/beef/api/auth_rate_spec.rb https://github.com/beefproject/beef/blob/1ae320c3bc9db748dff7e53fe919cdef80089062/spec/beef/api/auth_rate_spec.rb#L9-L15

The setting (and using later) of passwords in this manner breaks the test when you set custom env variables for a test user (TEST_BEEF_PASSWD or TEST_BEEF_USER) within the spec/constants.

Suggest using the constants provided in the config or constants without requiring a specific user / pass

DeezyE commented 2 years ago

Once this is resolved, update the wiki https://github.com/beefproject/beef/wiki/BeEF-Testing