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

Request for parallel primary tasks #17

Closed
sekgobela-kevin opened this issue Jul 12, 2022 · 3 comments
Closed

Request for parallel primary tasks #17

sekgobela-kevin opened this issue Jul 12, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@sekgobela-kevin
Copy link
Owner

This issue is part of enhancement to loop some producer which would allow producer to execute multiple primary items records.
This could mean that at a time for example, multiple usernames are being tried instead of waiting for one to complete before
advancing to the next username.

That may improve speed of attack in some cases espacilly if table used is too powerful or specific to target being targeted.
Target will be shocked to findout that multiple primary items(e.g usernames) are being tried.

@sekgobela-kevin sekgobela-kevin added the enhancement New feature or request label Jul 12, 2022
@sekgobela-kevin sekgobela-kevin self-assigned this Jul 12, 2022
@sekgobela-kevin
Copy link
Owner Author

This issue can be considered as resolved as source files for have been written.
In the past few days I have been working very hard on allowing parallel primary tasks.
It works well and both unit and integrated tests are doing well with it added.

@sekgobela-kevin
Copy link
Owner Author

This issue can be easily resolved by manipulating producer.
This issue only applied to loop some producer and primary column is required.

@sekgobela-kevin
Copy link
Owner Author

sekgobela-kevin commented Jul 12, 2022

Resolving this issue may raise another issue which is inconsistent results which would cause tests to fail.
This can be caused by iterators as its not possible to read same value multiple times as iterators get exausted.
That can be avoided by using product.itertools() instead of using product.Product.product_callable() created from this project`

Luckily product.product() also calls itertools.product() if neccessay. Its just a matter of allowing users of project to enable or
disable use of using callables product(product.Product.product_callable()).

Commit which resolves this issue does something to avoid problem in this comment.
Thankfully the issue was detected by integrated tests when using FieldFile object which depends on file object.

sekgobela-kevin added a commit that referenced this issue Jul 12, 2022
Producer methods of 'bforce' module are now split into their own
module. This wasnt just moving the methods but whole new changes
with new classes with some new features.

Some of the changes include parallel primary items records being produced
as of issue #17. The commit will also make it possible to resolve isse #16
and allow producer to not run on its own worker(e.g thread).

This commit is also enough to close issue #17 but that issue will be resoved
when 'producer' module is integrated to 'bforce' module.
sekgobela-kevin added a commit that referenced this issue Jul 12, 2022
'bforce' module tests were updated to match changes from previous commit
including one for issue #14 and another for issue #17.

Tests(unit and integrated) are expected to pass all.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant