CrackMe1

在这里插入图片描述
需要输入正确password
在这里插入图片描述

main函数

在这里插入图片描述

int __cdecl main(int argc, const char **argv, const char **envp)
{
  int v3; // eax
  int v4; // eax
  char v6; // [esp-10h] [ebp-114h]
  char v7; // [esp-Ch] [ebp-110h]
  char v8; // [esp-8h] [ebp-10Ch]
  char v9; // [esp-8h] [ebp-10Ch]
  char v10; // [esp-8h] [ebp-10Ch]
  char v11; // [esp-4h] [ebp-108h]
  char Buffer[256]; // [esp+0h] [ebp-104h] BYREF

  sub_4010B0("-----------------------------------\n", Buffer[0]);
  sub_4010B0("--           CrackMe 1           --\n", v11);
  sub_4010B0("--      by github.com/dajoh      --\n", v8);
  sub_4010B0("-----------------------------------\n\n", v7);
  sub_401010((int)"Enter password: ", 0xFu, v6);
  gets_s(Buffer, 0x100u);
  v3 = strcmp(Buffer, "easypassword");
  if ( v3 )
    v3 = v3 < 0 ? -1 : 1;
  if ( v3 )
  {
    do
    {
      sub_401010((int)"Fail! You entered the wrong password.\n\n", 0xCu, Buffer[0]);
      sub_401010((int)"Enter password: ", 0xFu, v9);
      gets_s(Buffer, 0x100u);
      v4 = strcmp(Buffer, "easypassword");
      if ( v4 )
        v4 = v4 < 0 ? -1 : 1;
    }
    while ( v4 );
  }
  sub_401010((int)"Congratulations! You entered the correct password.\n\n", 0xAu, Buffer[0]);
  sub_401010((int)"Press enter to exit...", 8u, v10);
  sub_404D3E();
  return 0;
}

v3 = strcmp(Buffer, "easypassword");
验证一下
在这里插入图片描述

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值