【实验吧】Just Click

本文介绍了一个CTF挑战题目,通过分析C#程序代码揭示了正确的按钮点击顺序来获取flag。利用.NET Reflector工具逆向工程,找到了隐藏在程序中的序列,并最终得到flag:simCTF{Easy_To_Get_Flag_From_DotNET}

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

拿到答案需要正确地点击按钮
格式:simCTF{ }

解题链接: http://ctf5.shiyanbar.com/re/rev4.exe 

由于最近在学数据库是c#编程,发现是c#,于是用.net refletor打开:

private void btn_Checker(int para)
{
    int[] numArray = new int[] { 0, 1, 3, 4, 2, 1, 2, 3, 4 };
    if (this.hit < 8)
    {
        this.hit++;
    }
    else
    {
        base.Close();
    }
    if (this.first)
    {
        this.tb1.Text = "";
        this.first = false;
    }
    if (numArray[this.hit] == para)
    {
        this.correct++;
    }
    if (this.correct == 8)
    {
        MessageBox.Show("Succeed!");
        TextBlock block = this.tb1;
        string[] textArray1 = new string[] { block.Text, this.sp1.Tag.ToString(), this.sp2.Tag.ToString(), this.sp3.Tag.ToString(), this.sp4.Tag.ToString() };
        block.Text = string.Concat(textArray1);
    }
}

 

 于是需要按照0, 1, 3, 4, 2, 1, 2, 3, 4的顺序点击按钮:

可是flag是:

simCTF{Easy_To_Get_Flag_From_DotNET}

 

转载于:https://www.cnblogs.com/liuyimin/p/7570949.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值