browser details

This commit is contained in:
josh
2020-01-23 02:14:19 +00:00
parent ac49a53814
commit fb5e90c499

View File

@@ -72,5 +72,14 @@ RSpec.describe 'Browser details handler' do
end
it 'can successfully hook a browser' do
@token = BeefRestClient.new('http', ATTACK_DOMAIN, '3000', BEEF_USER, BEEF_PASSWD).auth()[:token]
victim = BeefTest.new_victim
sleep(3)
response = RestClient.get "#{RESTAPI_HOOKS}", {:params => {:token => @token}}
x = JSON.parse(response.body)
puts x
expect(x)
end
end