i need solution for brute force 6 digit otp,

786 Views Asked by At

suppose I need to implement a system to brute force a 6-digit OTP. I have 100 Core 2 Duo computers. Each computer has 1/2gb ram and a 20mbps Broadband connection, but OTPs expire within 300 seconds or 5 minutes. Now how can I successfully get OTP with that setup?

I wrote Python code for sending HTTP requests with multiprocessing with 200 threads

request size: suppose 1kb response size: suppose 1kb

from multiprocessing.dummy import Pool

with Pool(200) as speed:

I need to solve this problem. I am working on HackerOne as a bug bounty hunter/pentester.

1

There are 1 best solutions below

4
x444556 On

You need to import itertools And then you can loop through all possible combinations.

    for otp in map(''.join, itertools.product("0123456789", repeat=6)):
        print(otp)

otp is the current combination and you can change the first argument of itertools.product to change the digits/characters and their order or change repeat to get a different length.