Skip to content

Brute forcing newest build can be optimized #9

@MiranCZ

Description

@MiranCZ

Hi, so I looked at the code, where you are brute forcing the build number and I remade it to be much faster:

        add = 1000
        while not build_found:
            self.parent.build += add
            self.parent.display_bruteforce_info()
            login_failed = self.parent.request_login_failed()
            error_code =login_failed.read_vint() 
            
            if (error_code == 9):
                self.parent.build -= add
                add = int(add/10)
               

            build_found = error_code == 7

Basically, its dumb to test if build 3527 exists, if you know that build 4971 exists, so this optimized version checks the "higher" numbers first.
(The program can take (if we assume the maximum number is 9999) maximally 40 attempts (4*9+4))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions