Android锁机样本分析
生活随笔
收集整理的這篇文章主要介紹了
Android锁机样本分析
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
樣本基本信息
樣本包名:Android.qun.zhu.an.zhuo.kou.kou
MD5值: 36f2db49dcb62247055df771dca47bde
來源:52破解論壇某求助貼。
樣本目錄結構
敏感權限
- service android:name=“E”,注冊服務
- android.permission.SYSTEM_ALERT_WINDOW,顯示系統窗口,能全局彈出對話框
- android.permission.RECEIVE_BOOT_COMPLETED,允許程序開機自動運行
其獲取的權限, 用于自啟和彈窗。
分析
1、
先想辦法關閉這個“鎖屏”軟件,為什么叫他鎖屏。。,使用adb命令就可以關閉它,并且不會再自啟23333,重啟都不會自啟了,只好再次命令開啟它。
關閉 adb shell am force-stop Android.qun.zhu.an.zhuo.kou.kou
關閉 adb shell monkey -p Android.qun.zhu.an.zhuo.kou.kou -c android.intent.category.LAUNCHER
卸載 adb uninstall Android.qun.zhu.an.zhuo.kou.kou
2、
雖然弱到很無語,但是分析還是要繼續。
前面提到創建了一個服務“E”:
E:
public void onCreate() {LogCatBroadcaster.start(this);super.onCreate();this.w = (long) (Math.random() * ((double) 1000000000));this.y = new Long(((((((this.w + ((long) 7777777)) - ((long) 777777)) + ((long) 77777)) - ((long) 7777)) + ((long) 777)) - ((long) 77)) + ((long) 7));this.des = new B("."); //類B是封裝加密功能的類try {this.des = new B(this.des.decrypt("8b05493f08ae05e9"));} catch (Exception e) {}this.share = getSharedPreferences("Android", 0); // 獲取Android.xml文件,沒有就創建,模式私有this.editor = this.share.edit();if (this.share.getLong("m", (long) null) == ((long) null)) {this.editor.putLong("m", this.w); //將上面的隨機數存入this.editor.commit(); //提交操作到文件當中try {this.editor.putString("Android", this.des.encrypt(new StringBuffer().append("").append(this.y).toString()));this.editor.commit();} catch (Exception e2) {}if (is(getApplicationContext())) {this.s = new StringBuffer().append(this.share.getLong("m", (long) 8)).append("").toString(); //給成員變量賦值try {this.j = this.des.decrypt(this.share.getString("Android", "")); //給成員變量賦值} catch (Exception e3) {}new Thread(this) { //創建線程啟動鎖機頁面private final E this$0;{this.this$0 = r1;}static E access$0(AnonymousClass100000000 anonymousClass100000000) {return anonymousClass100000000.this$0;}public void run() {}}.start(); return;}try {this.editor.putLong("m", Long.parseLong(this.des.decrypt("94d4efa162d2a3c8")));this.editor.commit();this.editor.putString("Android", "1cf9ca82b0ba99998a8c59d750bf14336af6977ceaa70ba104ea2c8a2768d05a");this.editor.commit();} catch (Exception e4) {}}}
啟動服務E:
總結
簡單過頭的鎖屏軟件
總結
以上是生活随笔為你收集整理的Android锁机样本分析的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Xposed模块编写遇到的一些问题以及解
- 下一篇: bl 和 ldr跳转程序的区别