AndroRAT icon indicating copy to clipboard operation
AndroRAT copied to clipboard

[ERROR] Signing Failed / could not execute zipalign - Run with '--debug' parameter

Open yayangkasep opened this issue 3 years ago • 4 comments

python3 androRAT.py --build -i 0.0.0.0 -p 8080 -o hehe.apk [INFO] Generating APK [INFO] Building APK | [SUCCESS] Successfully apk built in /data/data/com.termux/files/home/AndroRAT/hehe.apk [INFO] Signing the apk [INFO] Signing Apk | could not execute zipalign Run with '--debug' parameter to get additional information.

[ERROR] Signing Failed

I used android 11

yayangkasep avatar May 27 '22 19:05 yayangkasep

I have the same issue !

Louioui avatar May 28 '22 16:05 Louioui

python3 androRAT.py --build -i 0.0.0.0 -p 8080 -o hehe.apk [INFO] Generating APK [INFO] Building APK | [SUCCESS] Successfully apk built in /data/data/com.termux/files/home/AndroRAT/hehe.apk [INFO] Signing the apk [INFO] Signing Apk | could not execute zipalign Run with '--debug' parameter to get additional information.

[ERROR] Signing Failed

I used android 11 did you find any solution?

Louioui avatar May 28 '22 16:05 Louioui

Exact problem here anyone figure it out?

daddydank99 avatar May 29 '22 19:05 daddydank99

Solution

Windows: Download build tools 30, unzip and add the directory to your environment path. Then run the AndroRAT.

Linux: Just normal apt-get install zipalign should work.

Termux: Run pkg install aapt.

Hope this should help :)

karma9874 avatar Jun 12 '22 11:06 karma9874

All good but I don't know how to download.The created application

sainarravula575 avatar Oct 02 '22 14:10 sainarravula575

Tried all the fixes to zipalign but none work....can anyone create for me the app using this ip 192.168.0.103 [email protected] (feedback)

CayVb avatar Feb 02 '23 20:02 CayVb

Solution

Windows: Download build tools 30, unzip and add the directory to your environment path. Then run the AndroRAT.

Linux: Just normal apt-get install zipalign should work.

Termux: Run pkg install aapt.

Hope this should help :)

thanks, karma it's fixed...

elizas6638 avatar Mar 08 '23 23:03 elizas6638

Solution

Windows: Download build tools 30, unzip and add the directory to your environment path. Then run the AndroRAT.

Linux: Just normal apt-get install zipalign should work.

Termux: Run pkg install aapt.

Hope this should help :)

for kali linux, i tried apt-get as mentioned and it didnt work. try instead using sudo apt install zipalign and it should work just fine.

Hillellab avatar Mar 30 '23 00:03 Hillellab

Zipalign is already installed Have you found any solution to this error

AqidShah avatar Jul 21 '23 06:07 AqidShah

problem soll 🙏☺️Use apk Name is only evil.apk

glare786 avatar Jul 24 '23 16:07 glare786

python3 androRAT.py --build -i 0.0.0.0 -p 8080 -o hehe.apk [INFO] જનરેટ કરી રહ્યું છે APK [INFO] બિલ્ડીંગ APK | [સફળતા] /data/data/com.termux/files/home/AndroRAT/hehe.apk માં apk સફળતાપૂર્વક બિલ્ટ [INFO] apk પર સહી કરવી [INFO] Apk પર સહી કરવી | વધારાની માહિતી મેળવવા માટે '--debug' પરિમાણ સાથે zipalign Run એક્ઝિક્યુટ કરી શક્યું નથી .

[ERROR] સહી કરવાનું નિષ્ફળ થયું

મેં એન્ડ્રોઇડ 11 નો ઉપયોગ કર્યો

Olny neme is evil.apk not adhar name use 🙏😊

glare786 avatar Jul 24 '23 16:07 glare786

dawonlod MT manager and sing apk It's a soll 😊

glare786 avatar Jul 31 '23 16:07 glare786

I did the linux fix but it didn't work for me sudo apt-get install zipalign Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: libavfilter8 libavformat59 libplacebo208 libpostproc56 libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib libspatialite7 libsuperlu5 libswscale6 libwebsockets17 python2-minimal python2.7-minimal python3-py Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: android-libbacktrace android-libbase android-libcutils android-liblog android-libutils android-libziparchive libzopfli1 The following NEW packages will be installed: android-libbacktrace android-libbase android-libcutils android-liblog android-libutils android-libziparchive libzopfli1 zipalign 0 upgraded, 8 newly installed, 0 to remove and 73 not upgraded. Need to get 589 kB of archives. After this operation, 2,046 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://ftp.belnet.be/pub/kali/kali kali-rolling/main arm64 android-liblog arm64 1:33.0.3-2 [36.5 kB] Get:2 http://ftp.belnet.be/pub/kali/kali kali-rolling/main arm64 android-libbase arm64 1:33.0.3-2 [89.2 kB] Get:3 http://ftp.belnet.be/pub/kali/kali kali-rolling/main arm64 android-libbacktrace arm64 1:33.0.3-2 [208 kB] Get:4 http://ftp.belnet.be/pub/kali/kali kali-rolling/main arm64 android-libcutils arm64 1:33.0.3-2 [37.3 kB] Get:5 http://ftp.belnet.be/pub/kali/kali kali-rolling/main arm64 android-libutils arm64 1:33.0.3-2 [53.7 kB] Get:6 http://ftp.belnet.be/pub/kali/kali kali-rolling/main arm64 android-libziparchive arm64 1:33.0.3-2 [44.8 kB] Get:7 http://ftp.belnet.be/pub/kali/kali kali-rolling/main arm64 libzopfli1 arm64 1.0.3-1 [91.2 kB] Get:8 http://http.kali.org/kali kali-rolling/main arm64 zipalign arm64 1:10.0.0+r36-1 [27.9 kB] Fetched 589 kB in 1s (466 kB/s)
Selecting previously unselected package android-liblog:arm64. (Reading database ... 459236 files and directories currently installed.) Preparing to unpack .../0-android-liblog_1%3a33.0.3-2_arm64.deb ... Unpacking android-liblog:arm64 (1:33.0.3-2) ... Selecting previously unselected package android-libbase:arm64. Preparing to unpack .../1-android-libbase_1%3a33.0.3-2_arm64.deb ... Unpacking android-libbase:arm64 (1:33.0.3-2) ... Selecting previously unselected package android-libbacktrace:arm64. Preparing to unpack .../2-android-libbacktrace_1%3a33.0.3-2_arm64.deb ... Unpacking android-libbacktrace:arm64 (1:33.0.3-2) ... Selecting previously unselected package android-libcutils:arm64. Preparing to unpack .../3-android-libcutils_1%3a33.0.3-2_arm64.deb ... Unpacking android-libcutils:arm64 (1:33.0.3-2) ... Selecting previously unselected package android-libutils:arm64. Preparing to unpack .../4-android-libutils_1%3a33.0.3-2_arm64.deb ... Unpacking android-libutils:arm64 (1:33.0.3-2) ... Selecting previously unselected package android-libziparchive:arm64. Preparing to unpack .../5-android-libziparchive_1%3a33.0.3-2_arm64.deb ... Unpacking android-libziparchive:arm64 (1:33.0.3-2) ... Selecting previously unselected package libzopfli1. Preparing to unpack .../6-libzopfli1_1.0.3-1_arm64.deb ... Unpacking libzopfli1 (1.0.3-1) ... Selecting previously unselected package zipalign. Preparing to unpack .../7-zipalign_1%3a10.0.0+r36-1_arm64.deb ... Unpacking zipalign (1:10.0.0+r36-1) ... Setting up android-liblog:arm64 (1:33.0.3-2) ... Setting up libzopfli1 (1.0.3-1) ... Setting up android-libbase:arm64 (1:33.0.3-2) ... Setting up android-libziparchive:arm64 (1:33.0.3-2) ... Setting up android-libcutils:arm64 (1:33.0.3-2) ... Setting up android-libbacktrace:arm64 (1:33.0.3-2) ... Setting up android-libutils:arm64 (1:33.0.3-2) ... Setting up zipalign (1:10.0.0+r36-1) ... Processing triggers for libc-bin (2.37-6) ... Processing triggers for man-db (2.11.2-3) ... Processing triggers for kali-menu (2023.4.2) ... Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

┌──(joepvandessel㉿kali)-[~/AndroRAT] └─$ python3 androRAT.py --build -i 192.168.64.4 -p 4444 -o joep.apk [INFO] Generating APK [INFO] Building APK | [SUCCESS] Successfully apk built in /home/joepvandessel/AndroRAT/joep.apk [INFO] Signing the apk [INFO] Signing Apk | Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true could not execute zipalign Run with '--debug' parameter to get additional information.

[ERROR] Signing Failed

can anyone help me

joepvd07 avatar Aug 31 '23 09:08 joepvd07

how do you move the apk to local after it's been built

CODonnie avatar Sep 07 '23 00:09 CODonnie

Just install aapt

Gourav8078 avatar Sep 23 '23 10:09 Gourav8078

how do you move the apk to local after it's been built

Did you get that ?

Gourav8078 avatar Sep 23 '23 10:09 Gourav8078

sudo apt remove zipalign

then try again it will works

davidad81 avatar Oct 06 '23 05:10 davidad81

could not execute zipalign

I GOT THE SAME PROBLEM

THE SOLUTION IS

YOU COULD REMOVE THE zipalign USING THE FOLLOWING CODE

IN KALI LUNIX :

sudo apt remove zipalign

AFTER I WILL PASTE THE CODE

I GOT SUCESS

IF ANYBODY GOT THIS SAME ERROR YOU WILL CONTACT ME

mohammadakram0705 avatar Dec 03 '23 15:12 mohammadakram0705

how do you move the apk to local after it's been built

If you want to move the apk to an other place in your linux system, you can just type the following: "sudo mv /mounting-point /where you want it to be

TimmieBimmie avatar Dec 04 '23 19:12 TimmieBimmie

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jan 04 '24 01:01 github-actions[bot]

我的apk 签名成功了 但是在安卓上安装失败,不知道是为什么

guyan11122222 avatar Jan 18 '24 08:01 guyan11122222

I got same problem but none of the solutions above worked. It still says this. Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true could not execute zipalign Run with '--debug' parameter to get additional information.

bayer7777 avatar Jan 28 '24 08:01 bayer7777

did you get a solution? i have the same issue as you im on kali

I got same problem but none of the solutions above worked. It still says this. Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true could not execute zipalign Run with '--debug' parameter to get additional information.

jawadnaq avatar Feb 10 '24 04:02 jawadnaq

Launch another instance of terminal and use sudo apt-get remove zipalign then try again. It worked for me.

saalim24 avatar Feb 11 '24 09:02 saalim24

still not solved anyone please help already tried https://github.com/karma9874/AndroRAT/issues/186#issuecomment-1153133754

AvkaranGabbi avatar Feb 22 '24 11:02 AvkaranGabbi

could not execute zipalign

I GOT THE SAME PROBLEM

THE SOLUTION IS

YOU COULD REMOVE THE zipalign USING THE FOLLOWING CODE

IN KALI LUNIX :

sudo apt remove zipalign

AFTER I WILL PASTE THE CODE

I GOT SUCESS

IF ANYBODY GOT THIS SAME ERROR YOU WILL CONTACT ME

This solved the problem i was facing ,try this guys . it might work for you as well.

L-lawliet76 avatar Mar 01 '24 09:03 L-lawliet76

I have tried this, it doesn't work It still shows:

Picked up _JAVA_OPTIONS: Dawt.useSystemAAFontSettings=on -Dswing.aatext=true could not execute zipalign Run with '--debug' parameter to get additional information.

[ERROR] Signing Failed

AvkaranGabbi avatar Mar 03 '24 09:03 AvkaranGabbi

I am using Kali on my Mac Book Pro and ran this and got the same error message that everyone else was getting and then I removed zipalign, reinstalled it, update -y'd that batch and rebooted and then it was fine. Signed success.20240320_032128.jpg

HipsterChipster avatar Mar 20 '24 08:03 HipsterChipster