Code Monkey home page Code Monkey logo

fake-code4hk-app's Introduction

fake-code4hk-app

This App turned up being sent to Hong Kong Whatsapp users.

It claimed

Check out this Android app designed by CODE4HK for the coordination of OCCUPYCENTRAL! http://is.gd/****

Original Screenshot

This is a decompiled version of that, trying to work out what it does.

Decompiling

Use apktool v2.0.0rc1 (v1.5.x doesn't work with this)

$ apktool d code4hk.apk

Once I worked out assets/qq.xml was actually a hidden apk

I did the same with that

$ cp decompiled/assets/qq.xml qq.apk

$ apktool d qq.apk

Observations

Hacking QQ

When it boots it copies assets/qq.xml to the location "/sdcard/.qq/temp.apk". Thereby attempting to hijack your QQ app.

https://github.com/matthewrudy/fake-code4hk-app/blob/master/decompiled/smali/com/v1/MainActivity.smali#L109-L125

Capturing outgoing call info

It hooks into any outgoing calls

<receiver android:name="com.v1.PhoneReceiver" android:priority="2147483647">
    <intent-filter>
        <action android:name="android.intent.action.PHONE_STATE"/>
        <action android:name="android.intent.action.NEW_OUTGOING_CALL"/>
    </intent-filter>
</receiver>

https://github.com/matthewrudy/fake-code4hk-app/blob/master/decompiled/AndroidManifest.xml#L64-L69

And seems to record them

https://github.com/matthewrudy/fake-code4hk-app/blob/master/decompiled/smali/com/v1/PhoneReceiver.smali#L464-L478

And stores them at "/data/data/com.v1/temp.amr"

Using Baidu for geolocation

It uses baidu to gather location data

iget-object v2, v0, Lcom/v1/StreamService;->m:Lcom/baidu/location/LocationClient;

invoke-virtual {v2}, Lcom/baidu/location/LocationClient;->start()V

https://github.com/matthewrudy/fake-code4hk-app/blob/master/decompiled/smali/com/v1/StreamService.smali#L635-L637

Reporting to a remote server

The external IP address and port is set to "61.36.11.75" and "1430" respectively.

This is configured from assets/config.dat for the basic app

And the same for the fake qq app's assets/config.dat

fake-code4hk-app's People

Contributors

matthewrudy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.