Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Burp Extensions not loading #6

Closed
l50 opened this issue Dec 13, 2016 · 5 comments
Closed

Burp Extensions not loading #6

l50 opened this issue Dec 13, 2016 · 5 comments

Comments

@l50
Copy link

l50 commented Dec 13, 2016

When using the Rest API, the only extension which successfully loads is the Burp Rest Extension. Upon trying to load a Java extension, you are presented with an error message stating:

java.lang.Exception: Extension does not implement any usable methods

Python extensions give a message along these lines:
java.lang.ClassCastException: org.python.core.PySingleton cannot be cast to burp.IBurpExtender

When using Burp normally with the traditional
java -jar <location to burp jar>
the extensions work without issue.

The Extension options are consistent across both the Rest API instance of Burp and the normal instance you would run with Burp.

  • Running Burp 1.7.13 on OSX El Capitan (10.11.6)
  • Running Java version 8

-- Confirmed to be a problem on Burp 1.7.14 as well.

@SymbianSyMoh
Copy link

Any updates on this issue?

I tried to load extensions from BApp Store or even manually but with no success, So i think the solution may to have the "Burp Rest Extension" as an external one and load it individually.

PS: i tested both normal burp start and headless mode and both of them are loading extensions with no problem, the problem is with the "Burp Rest Extension"

My burp suite version is: Pro v1.7.22

@SymbianSyMoh
Copy link

SymbianSyMoh commented May 7, 2017

UPDATE
Fixed by running burp with gradlew not running the builded version.

@l50
Copy link
Author

l50 commented May 8, 2017

Confirmed, running burp with gradle allows me to load the extensions, thank you. Out of curiosity, have you had any luck specifying project files or config files with gradlew?

@l50 l50 closed this as completed May 8, 2017
@l50 l50 reopened this May 8, 2017
@SymbianSyMoh
Copy link

SymbianSyMoh commented May 8, 2017

@l50 You welcome, yes i managed to get project-config, user-config and project file work in gradlew.

All what you need to do is:

  1. Regarding project-config and user-config you can edit the default files bundled with "burp-rest-api" which you can find it here: src/main/resources/static/

  2. Regarding the project-file you can edit this line:
    private static final String TEMPORARY_PROJECT_FILE_NAME = "/path/to/project/file.burp";
    in the file:
    /src/main/java/com/vmware/burp/extension/service/BurpService.java

before executing gradlew

@l50
Copy link
Author

l50 commented May 8, 2017

Thank you sir. I'll go ahead and close this issue permanently now - just wanted to be sure the functionality you get with running the jar can be done with gradlew.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants