Skip to content

Session Loop #22

Open
Open
@bmarsh9

Description

@bmarsh9

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions