hikarugl 发表于 2019-8-29 23:59

小白求助一款Android的APP破解

本帖最后由 hikarugl 于 2019-8-30 00:00 编辑

破解一款APP   直接将if-nez改为if-eqz提示注册成功,但是重启后仍需注册。这样不行么?
下为dex片段:

if-nez v0, :cond_1

    iget-object p1, p0, Lcn/CC/ca/Ra;->a:Landroid/content/Context;

    const v0, "注册码错误,请重新输入"
    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0}, Lcn/CC/utils/b;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/app/AlertDialog;

    return-void

    :cond_1
    iget-object v0, p0, Lcn/CC/ca/Ra;->a:Landroid/content/Context;

    invoke-static {v0, p1}, Lcn/CC/ca/Wa;->b(Landroid/content/Context;Ljava/lang/String;)V

    iget-object p1, p0, Lcn/CC/ca/Ra;->c:Landroid/app/AlertDialog;

    invoke-virtual {p1}, Landroid/app/AlertDialog;->dismiss()V

    iget-object p1, p0, Lcn/CC/ca/Ra;->a:Landroid/content/Context;

    const v0, "提示"

    const v1, "注册成功"

    invoke-static {p1, v0, v1}, Lcn/CC/utils/b;->a(Landroid/content/Context;II)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    const v0, 0x104000a

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    new-instance v0, Lcn/CC/ca/Qa;

    invoke-direct {v0, p0}, Lcn/CC/ca/Qa;-><init>(Lcn/CC/ca/Ra;)V

    invoke-virtual {p1, v0}, Landroid/app/AlertDialog$Builder;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)Landroid/app/AlertDialog$Builder;

    move-result-object p1

    invoke-virtual {p1}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    return-void
.end method

a3322a 发表于 2019-8-30 01:02

学习了,支持一下!

syrmb 发表于 2019-8-30 03:30

那肯定是哪里还有校验咯

没放app也没法说~

小骚 发表于 2019-8-30 07:06

直接改成goto,或者看看下面代码干了些什么

8taizi 发表于 2019-8-30 09:25

    iget-object p1, p0, Lcn/CC/ca/Ra;->a:Landroid/content/Context;

    const v0, "注册码错误,请重新输入"
    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0}, Lcn/CC/utils/b;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/app/AlertDialog;

    return-void
这一段删掉 最简单 了

windbd 发表于 2019-8-30 10:22

没有头绪

a3860135 发表于 2019-10-27 11:41

多处验证。
页: [1]
查看完整版本: 小白求助一款Android的APP破解