Giter VIP home page Giter VIP logo

Comments (5)

act1on3 avatar act1on3 commented on July 20, 2024

Sorry, all is ok:)
Real problem is extensions working only using build ./gradlew bootRun
Extensions not work with jar java -jar burp-rest-api.jar :(

My experience:

  • with gui ./gradlew bootRun -Djava.awt.headless=false extensions do not load automatically.
  • you can not configurate extensions over method PUT /burp/configuration
  • you can not understand extensions are working or not while you will get report from scan (issues). In the report will be issues that generated by extensions.

from burp-rest-api.

ikkisoft avatar ikkisoft commented on July 20, 2024

The issue with extensions is that burp-rest-api is currently loaded as a legacy extension, thus it's not possible to load additional extensions.

In general, it's possible to load extensions using a custom user-project-file containing:

"extender":{
            "extensions":[
                {
                    "errors":"ui",
                    "extension_file":"PATH OF THE JAR",
                    "extension_type":"java",
                    "loaded":true,
                    "name":"DetectELJ",
                    "output":"ui"
                }
            ],

However, this will not work with the current implementation.

If anyone has an idea on how to implement a generic solution, please let me know - I would be happy to implement it.

from burp-rest-api.

henshin avatar henshin commented on July 20, 2024

According to Burp tech support, this happens because this extension is being loaded through the classpath when Burp is loading.
The solution would be to compile this extension as a standalone jar using the normal extension format and then load it in Burp, exit and then start Burp again with necessary extension command line options.
This was the solution implemented for the Carbonator extension. I suggest looking at their source code.

from burp-rest-api.

henshin avatar henshin commented on July 20, 2024

Not sure if helps, but I was able to compile the plugin as a standalone extension using the following pom.xml and compiling using maven:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>burp-rest-api</groupId>
  <artifactId>burp-rest-api</artifactId>
  <version>1.0.3</version>
  <dependencies>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-jetty</artifactId>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <artifactId>commons-logging</artifactId>
          <groupId>commons-logging</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>burpsuite_pro</groupId>
      <version>1.0</version>
      <artifactId>burpsuite_pro</artifactId>
      <scope>system</scope>
      <systemPath>/path/to/burp-rest-api/lib/burpsuite_pro.jar</systemPath>
      <exclusions>
        <exclusion>
          <artifactId>commons-logging</artifactId>
          <groupId>commons-logging</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <version>1.7.25</version>
      <artifactId>slf4j-api</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-test</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <artifactId>commons-logging</artifactId>
          <groupId>commons-logging</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>io.springfox</groupId>
      <artifactId>springfox-swagger2</artifactId>
      <version>2.1.0</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <artifactId>commons-logging</artifactId>
          <groupId>commons-logging</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpclient</artifactId>
      <version>4.5.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>io.springfox</groupId>
      <artifactId>springfox-swagger-ui</artifactId>
      <version>2.1.0</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <artifactId>commons-logging</artifactId>
          <groupId>commons-logging</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.3.2.RELEASE</version>
        <scope>import</scope>
        <type>pom</type>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifest>
              <addClasspath>true</addClasspath>
            </manifest>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <configuration>
          <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
          </descriptorRefs>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.1</version>
        <configuration>
          <archive/>
          <source>1.8</source>
          <target>1.8</target>
          <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
          </descriptorRefs>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

I'm not a developer so this pom.xml is probably not very well formatted.
Then using maven like:

mvn clean compile assembly:single

This creates the file burp-rest-api-1.0.3-jar-with-dependencies.jar in the target folder.

Even though I can load the jar in Burp, I'm not sure how could I use the features afterwards. The API server doesn't launch when I load the extension.

from burp-rest-api.

lestatk0 avatar lestatk0 commented on July 20, 2024

I have the same issue. It looks that Python's extensions work correctly, but at the same time java's extensions don't work.
in a user-config-file i have

{
                  "errors":"ui",
                  "extension_file":"/opt/burp-ext/J2EEScan-1.2.5-jar-with-dependencies.jar",
                  "extension_type":"java",
                  "loaded":true,
                  "name":"J2EE Advanced Tests",
                  "output":"ui"
    },

and output is : Extender: Failed to load extension: J2EE Advanced Tests
Maybe anyone have solution?

from burp-rest-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.