Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Hi, noticed there is a little issue that makes zombies disappear in the console.
#1712
The issue has been closed, but other people are still facing it.
Category
Bug in the Admin interface
Feature/Issue Description
The issue is simple, BeeF doesn't show hooked browser, but it's still logging them, as observable by the image below:
From the web console, it's easy to see that the issue is presenting at the presentation layer (it's a JavaScript file: web_ui_all.js):
Technical Background
The code in web_ui_all.js is minified, and the error triggers in the following snippet (notice the same error appears twice in the same file):
The value
e.country_code
is not null checked, hence causing the error. As we_ui_all.js is a minified file generated on access, modyfing it it's not a solution. The real file affected iszombiesTreeList.js
.The fix is trivial, adding a null check to the existing "Unknown" check:
Test Cases
I've tested it arbitrarily setting null values for hooked browsers. They were still appearing in the Admin Console.