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

Session Loop #22

Open
bmarsh9 opened this issue Apr 21, 2019 · 1 comment
Open

Session Loop #22

bmarsh9 opened this issue Apr 21, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@bmarsh9
Copy link

bmarsh9 commented Apr 21, 2019

Question: Is session loop on the road map similar to SharpHound? If not, would be a cool feature for the backlog.

I may or may not be placing this in the right place...

In bloodhound/enumeration/computers.py, around line 80..:

    logging.info('Starting computer enumeration with %d workers', num_workers)
    if len(computers) / num_workers > 500:
        logging.info('The workload seems to be rather large. Consider increasing the number of w....
    for _ in range(0, num_workers):
        ## Try to create session loop
        t_end = time.time() + 10 * 1
        while time.time() < t_end:
            print "[>] starting enumeration"
            t = threading.Thread(target=self.work, args=(q,result_q))
            t.daemon = True
            t.start()
            print "[+] done, waiting 3 seconds"
            time.sleep(3) ## Wait for 3 seconds
        print "------ [c] done with entire loop!"

Ive tried placing it in the work() function and deeper levels but it will loop over each computer for 10 seconds whereas I believe the Session Loop is supposed to loop over all the computers and then have a wait period, and then do it again.

I suppose I could just run the program with only Session Collection and put that in a loop...

@dirkjanm dirkjanm added the enhancement New feature or request label Apr 24, 2019
@infosecconsultant
Copy link

I would also appreciate this feature if possible!

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

3 participants