Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BrowserStack Integration #1920

Merged
merged 246 commits into from
May 31, 2020
Merged

BrowserStack Integration #1920

merged 246 commits into from
May 31, 2020

Conversation

jackdwalker
Copy link
Contributor

Thanks for submitting a PR! Please fill in this template where appropriate:

Category

Tests

Feature/Issue Description

This integration will allow BeEF to run any components of the test suite that require hooking/victim browser interaction against a matrix of Browser/Operating Systems and their different versions.

This will help ensure that future code added to BeEF work on both new and old systems, which is vital considering the nature of BeEF's functionality. Many of the older systems are those are would be most susceptible and we want to ensure that we have BeEF working against such environments.

Describe Changes

Specific tests now send encrypted traffic through to BrowserStack and the Selenium web-driver will run within their environment rather than on the host system of the Travis box running the test suite.

These tests are DISABLED by default when running the standard test command:

bundle exec rake

The tests will only run when Travis-CI kicks off the test suite so functionally for users running testing locally there should be no change.

Test Cases

No new tests, although there were many modifications to the tests utilising a dummy victim to allow for this integration. Some cleanup was done on the code of those tests also.

Relevant Wiki Page

I have a Wiki page drafted up in Markdown, ready for the merge of this PR that details the baseline level of compatibility tested by this integration.

…um as we primarily use Capybara sessions in testing.
@jackdwalker
Copy link
Contributor Author

@jcrew99 @DeezyE - could you please both look over this before we merge tomorrow morning.

@jackdwalker jackdwalker self-assigned this May 28, 2020
@jackdwalker jackdwalker requested review from jcrew99 and DeezyE May 28, 2020 23:13
print_info "Exception Message: #{e.message}"
print_info "Exception Stack Trace: #{e.backtrace}"
if @driver.execute_script('return window.beef.session.get_hook_session_id().length').nil? &&
e.class == NoMethodError
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as per our discussion

Copy link
Contributor

@DeezyE DeezyE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we discussed

.travis.yml Show resolved Hide resolved
core/main/client/browser.js Show resolved Hide resolved
local.log Show resolved Hide resolved
spec/spec_helper.rb Show resolved Hide resolved
spec/support/constants.rb Show resolved Hide resolved
@jackdwalker jackdwalker merged commit 0c768ec into master May 31, 2020
@wheatley wheatley deleted the browserstack branch September 4, 2021 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants