Skip to content

androidpayload modification fails, missing dependency locations #740

@ll3N1GmAll

Description

@ll3N1GmAll

We cloned the metasploit-payloads repo and importing /java/androidpayload into Android Studio. Then used gradle init to convert the pom.xml to gradle. When attempting to sync gradle, we are getting the below error. We have searched high and low; but cannot locate where the 3 maven dependencies are located anywhere online so we can update the code to point to the correct locations.

It is possible the generated build.gradle auto-generated repo locations that are in error.
Is there a way to edit this code in Android Studio using maven without having to try to convert everything over to gradle in order to get Android Studio to recognize the project as an Android project?

Is there a better environment to do this work in? Modifying the code in a standard IDE and using apktool to build it results in an APK that wont install. Even if I decompile the unedited MainActivity.apk with apktool and then try to build it again, it fails to work. Apktool 2.7.0-dirty will create an APK, but it wont install and apktool 2.10.0 wont build the unedited code at all and throws a null pointer exception error.

Searched in the following locations:
    https://repo.maven.apache.org/maven2/com/metasploit/Metasploit-Java-Shared/1-SNAPSHOT/maven-metadata.xml
    https://repo.maven.apache.org/maven2/com/metasploit/Metasploit-Java-Shared/1-SNAPSHOT/Metasploit-Java-Shared-1-SNAPSHOT.pom
    https://repo.maven.apache.org/maven2/com/metasploit/Metasploit-Java-Shared/1-SNAPSHOT/Metasploit-Java-Shared-1-SNAPSHOT.jar
Required by:
    project :

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html```

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