前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >2023SICTF-pwn-白猫-[签到]Shop

2023SICTF-pwn-白猫-[签到]Shop

作者头像
用户8909609
发布2023-11-30 09:32:56
1020
发布2023-11-30 09:32:56
举报
文章被收录于专栏:BM CTF

0×01 分析题目

题目名称: [签到]Shop 题目简介: 你听说过在C语言中的int型数据吗? 题目环境: 210.44.151.51:10497

使用Kali ncrack进行连接

0×02 开始解题

连接环境后有如下字符: Welcome to the store! You currently have 10 coins.

代码语言:javascript
复制
Product List:
1. flag - 9999 coins
2. hint - 10 coins
3. quit
Please select a product to purchase (or enter 3 to quit):

大致意思就是你有10枚硬币,你有如下产品清单: 1.flag需要9999枚硬币 2.提示一次需要10枚硬币 3.退出 刚好有10枚硬币,买个提示试试: Welcome to the store! You currently have 10 coins.

代码语言:javascript
复制
Product List:
1. flag - 9999 coins
2. hint - 10 coins
3. quit
Please select a product to purchase (or enter 3 to quit): 2
Please enter the quantity to purchase: 1
Congratulations! You have purchased 1 hint(s)!
Do you know 2^32 + 1?

Product List:
1. flag - 9999 coins
2. hint - 10 coins
3. quit
Please select a product to purchase (or enter 3 to quit):

提示是 你能知道2的32次方+1等于多少吗 用计算器算了一下这个数太大了,没什么意义 flag需要9999枚硬币,题目只给10枚硬币,并且硬币又不可以获取,这可如何是好? 考虑到题目简介int类型数据 又考虑到题目是二进制类题目

打了个购买flag个数数字为0,曝出flag: Welcome to the store! You currently have 10 coins.

代码语言:javascript
复制
Product List:
1. flag - 9999 coins
2. hint - 10 coins
3. quit
Please select a product to purchase (or enter 3 to quit): 1    
Please enter the quantity to purchase: 0
Congratulations! You have purchased 0 flag file(s)!
SICTF{ddc7e2e5-c1cc-4640-80a1-c2b5bc0851c6}

Product List:
1. flag - 9999 coins
2. hint - 10 coins
3. quit
Please select a product to purchase (or enter 3 to quit):

拿到flag: SICTF{ddc7e2e5-c1cc-4640-80a1-c2b5bc0851c6}

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2023-11-29,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 0×01 分析题目
  • 0×02 开始解题
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档