Skip to content

Why there is a key whose name is "unique"? #1909

@l0kihardt

Description

@l0kihardt

Verify first that your issue/request has not been posted previously:

Ensure you're using the latest version of BeEF.

Environment

What version/revision of BeEF are you using?
BeEF 0.5.0.0-alpha-pre
On what version of Ruby?
ruby 2.5.7
On what browser?
Firefox
On what operating system?
Manjaro

Configuration

Are you using a non-default configuration?
nope
Have you enabled or disabled any BeEF extensions?
nope

Summary

Please provide a summary of the issue.

After injecting hook.js, you will find that every Object Array have an extra object.
Why there is a key whose name is "unique".

let a = [{}, {}, {}];
for(i in a){
    console.log(i);
}

0 
1
2
unique

Expected Behaviour

What was the expected result?

let a = [{}, {}, {}];
for(i in a){
    console.log(i);
}

0 
1
2

Actual Behaviour

What was the actual result?

0 
1
2
unique

Steps to Reproduce

Please provide steps to reproduce this issue.

Additional Information

Please provide any additional information which may be useful in resolving this issue, such as debugging output and relevant screen shots. Debug output can be enabled by specifying debug: true in the config.yaml configuration file.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions