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

androidpayload modification fails, missing dependency locations #740

Open
ll3N1GmAll opened this issue Jan 12, 2025 · 0 comments
Open

androidpayload modification fails, missing dependency locations #740

ll3N1GmAll opened this issue Jan 12, 2025 · 0 comments

Comments

@ll3N1GmAll
Copy link

ll3N1GmAll commented Jan 12, 2025

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```
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

1 participant