[pwnable.kr]blackjack

在这里插入图片描述
访问给的网址,直接跳到403了
在这里插入图片描述
先nc连上去试试
在这里插入图片描述
在这里插入图片描述
选2输出游戏规则

           RULES of VLAD's BLACKJACK
          ---------------------------
I.
     Thou shalt not question the odds of this game.
      S This program generates cards at random.
      D If you keep losing, you are very unlucky!

II.
     Each card has a value.
      S Number cards 1 to 10 hold a value of their number.
      D J, Q, and K cards hold a value of 10.
      C Ace cards hold a value of 11
     The goal of this game is to reach a card value total of 21.

III.
     After the dealing of the first two cards, YOU must decide whether to HIT or STAY.
      S Staying will keep you safe, hitting will add a card.
     Because you are competing against the dealer, you must beat his hand.
     BUT BEWARE!.
      D If your total goes over 21, you will LOSE!.
     But the world is not over, because you can always play again.

SHC YOUR RESULTS ARE RECORDED AND FOUND IN SAME FOLDER AS PROGRAM CHS

Would you like to go the previous screen? (I will not take NO for an answer)
                  (Y/N)

每轮发一张牌,如果最后加起来的和比庄家更接近21,就赢,反之就输;
如果总和大过21,也输;
JQK都被看做10,Ace被看作11;
从第二张牌开始可以选择加牌(h)或者不加牌(s)

开始游戏之后发现有500余额
并且可以下注
在这里插入图片描述
如果下的注超过了自己持有的余额,
就会提示重新输入
在这里插入图片描述
但是实际上只会校验一次,
也就是重新下注时不会对余额是否充足进行检查
在这里插入图片描述
通过这种方式下一个大赌注,
只要赢一把,赌注就会被划进余额,
然后下一次游戏开始时就会打出神秘字符
在这里插入图片描述
实际上也就是flag

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值