Skip to content

java.lang.NullPointerException when using Engine.BURP2 #164

Description

@mschwager

I get the following error when using this Turbo Intruder script:

def queueRequests(target, wordlists):
    engine = RequestEngine(endpoint=target.endpoint,
                            concurrentConnections=1,
                            engine=Engine.BURP2
                            )
    
    for i in range(20):
        engine.queue(target.req, [i], gate='1')
    
    engine.openGate('1')

def handleResponse(req, interesting):
    table.add(req)
Ignoring error: java.lang.NullPointerException: Cannot invoke "burp.api.montoya.http.message.responses.HttpResponse.toByteArray()" because the return value of "burp.api.montoya.http.message.HttpRequestResponse.response()" is null

If I switch to Engine.BURP then I don't get the error.

Interestingly, if I use Engine.HTTP2, then a connection is made, but the process hangs forever with the requests queued.

This is after following along in the "Speed tuning" section of this article.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions