M4sc3r4n0 / Evil-Droid

951 stars 399 forks source link

Failed to verify signed artifacts #40

Open justMSARahat opened 5 years ago

justMSARahat commented 5 years ago

inject Smali: com/portonics/mygp/Application.smali In line:261 ################################################################## [ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ] [] Rebuilding Backdoored APK... [ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ] [] Checking for ~/.android/debug.keystore for signing... [ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ] [ X ] Debug key not found. Generating one now... [ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ] What is your first and last name?

What is the name of your organizational unit? Unknown: sa international What is the name of your organization? Unknown: sa ltd What is the name of your City or Locality?

What is the name of your State or Province?

What is the two-letter country code for this unit?

Is CN=sa, OU=sa international, O=sa ltd, L=sylhet, ST=sylhet, C=12 correct? no:
What is your first and last name? [sa]:
What is the name of your organizational unit? [sa international]:
What is the name of your organization? [sa ltd]:
What is the name of your City or Locality? [sylhet]:
What is the name of your State or Province? [sylhet]:
What is the two-letter country code for this unit? [12]:
Is CN=sa, OU=sa international, O=sa ltd, L=sylhet, ST=sylhet, C=12 correct? no:
What is your first and last name? [sa]:
What is the name of your organizational unit? [sa international]:
What is the name of your organization? [sa ltd]:
What is the name of your City or Locality? [sylhet]:
What is the name of your State or Province? [sylhet]:
What is the two-letter country code for this unit? [12]:
Is CN=sa, OU=sa international, O=sa ltd, L=sylhet, ST=sylhet, C=12 correct?

Generating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA) with a validity of 10,000 days for: CN=sa, OU=sa international, O=sa ltd, L=sylhet, ST=sylhet, C=12 [Storing /root/.android/debug.keystore] [ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ] [] Attempting to sign the package with your android debug key [ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ] [] Verifying signed artifacts... [ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ] [!] Failed to verify signed artifacts

ranaali12346161 commented 5 years ago

Same issue with me ...... have you got the solution?

l4jos commented 4 years ago

Same issue. I tried with the newest apktool.jar (/Tools/apktool.jar); no difference so I'm looking forward to a solution.

Lucky97 commented 4 years ago

Same issue. I tried with the newest apktool.jar (/Tools/apktool.jar); no difference so I'm looking forward to a solution. same issue with me you got the solution??

gaksv commented 4 years ago

[!] Failed to verify signed artifacts

abdullah230695 commented 4 years ago

Same issue here :(

butch3r007 commented 4 years ago

Failed to verify signed artifacts[Fixed]

guys i just did this steps and worked for me well:

  1. first i downloaded latest version of [apktool(2.4.1)]](https://bitbucket.org/iBotPeaches/apktool/downloads/)

  2. then i renamed apktool_2.4.1.jar to apktool.jar and replaced it to ~path/Evil-Droid/tools/apktool.jar and i changed version number in doc.txt to downloaded apktool version(2.4.1 for me)

  3. and then installed openjdk-11-jdk-headless [sudo apt-get install openjdk-11-jdk-headless ]

Then it worked for me :|

kalithero commented 4 years ago

At the time of April 2020, what you have to do to make it work is- sudo apt-get install openjdk-14-jdk-headless and download it Also download the apktool version 2.4.1 from bitbucket ( use above mentioned links) Then rename the downloaded file to apktool.jar then go to the evil droid directory open tool directory delete the pre-existing apktool.jar move the new apktool.jar to that place open doc.txt change the version to 2.4.1 this will solve the problem

Tanvir06 commented 4 years ago

@kalithero still facing problem :( what's reason behind this problem? Can you please explain!

TheLegendKillerLK commented 4 years ago

Finally Guys I've figured it out..... The indeed problem is that the Java sdk that is used by kali by default to recompile the App with the backdoor that we have genarated is the latest version and Evil droid or any backdoor creator can't exploit it to recompile....So we need to set the java version to JAVA SDK 8..To do so check out the following method.... Open Terminal and Type Following... update-alternatives --config java select java 8 number 3 root@Kalivil:~# update-alternatives --config java There are 3 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status

0 /usr/lib/jvm/java-13-openjdk-amd64/bin/java 1311 auto mode 1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual mode 2 /usr/lib/jvm/java-13-openjdk-amd64/bin/java 1311 manual mode

Press to keep the current choice[*], or type selection number: 3 Then Hit Enter The Problem will be Solved...

ShailendraKumarBellary commented 4 years ago

Yeah .....that's was awsom TheLengendKillerLk .....but u can use the manual method ...it's error free and stable meterpreter connection .....untill the app is used.... What if u created a msfvenom apk and bind it with a small gaming apk .... Til victim use tht apk we can get his or her data.... With full permission ... On tht android ...for ex: chess game... What is the average time of a chess game... 10 min to 15 min .... It enough to gain all his data and create a backdoor or whatever we want... To.. happy hacking..

tulahi commented 4 years ago

At the time of April 2020, what you have to do to make it work is- sudo apt-get install openjdk-14-jdk-headless and download it Also download the apktool version 2.4.1 from bitbucket ( use above mentioned links) Then rename the downloaded file to apktool.jar then go to the evil droid directory open tool directory delete the pre-existing apktool.jar move the new apktool.jar to that place open doc.txt change the version to 2.4.1 this will solve the problem

spasiba comrade its work but i dont know why my metasploit show me this message (exploit failed one or more options failed to validate lhost) (exploit completed , but no season is created

officialbatman commented 3 years ago

FIXED THIS ISSUE!

So I tried the replacing method of the apktool.jar to the latest from their website as described above, but the problem was persisting, then after a research, upon finding out the debug.keystore hidden in the /root/.android/ directory, i just deleted the file and started the whole process again and voila! Screenshot 2021-04-24 08:05:28

Hope this helps.

Originally posted by @officialbatman in https://github.com/M4sc3r4n0/Evil-Droid/issues/5#issuecomment-826084021

ROANCOLO commented 2 years ago

Buenas noches, cordial saludo, espero que no sea demasiado tarde, para resolver el problema de debug key not found, en Evil-Droid, es sencillo deben realizar los siguientes pasos.

Ir a la carpeta de Evil-Droid y con permisos de superusuario, deben abrir el archivo evil-droid con un editor de código. Ir a la linea de codigo 598 allí encontraran la siguiente linea de código "keytool -genkey -v -keystore ~/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000" la cual deben copiar y pegar en la carpeta ~/.android/. La carpeta antes mencionada (~/.android/) la encuentran en la carpeta root, (recuerden deben tener los permisos de superusuario), estando en la carpeta root con los permisos deben darle control+H, Allí encontraran la carpeta ~/.android/ dentro de esa carpeta deben crear un archivo vacío con el nombre de debug.keystore y pegarle la linea de código que esta entre comillas sin comillas, guardan, hacen las actualizaciones con sudo -y full-upgrade y ejecutan nuevamente y listo A mi me funciono y me funciona actualmente.

TONYDZ25 commented 2 years ago

you need just an applecation easy to inject like browsers

Tyagiparrot commented 1 year ago

Screenshot at 2023-08-09 16-41-45 Anyone kindly please help me in this issue. I tried by updating a apktool with different versions also

My java onfig is this:

update-alternatives --config java There are 2 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status

Mr000Coder commented 2 months ago

just type (test) in all boxes and then yes. the problem will be solve