PicoCTF Walkthru [47] - flag_shop (Integer Overflow tutorial)

Поділитися
Вставка

КОМЕНТАРІ • 16

  • @nataliaburda9467
    @nataliaburda9467 2 роки тому +6

    Useful explanation, would love if you can provide some links for further research. How did you know that we are looking for a 32 bit number limit?

    • @mike_on_tech
      @mike_on_tech  2 роки тому +1

      So... probably not the most satisfying answer, but experience and prior learning. 32 bit is a common size (64 bit as well). I would recommend reading about how #s are represented in a computer (two's complement notation)
      A first principles approach to this problem might look like this: What actions can I take and what effect they might have on the state of the system?
      a. I definitely can't buy the flag I want (too expensive and I don't know any trickery to get around that IF).
      b. Checking my balance doesn't cause any state change.
      So I'm left with:
      c. Buying the cheap flag. What are the bounds on the # of flags I can buy? Can't do

    • @just_nothing-0101
      @just_nothing-0101 7 місяців тому

      @@mike_on_tech best resource to read about those things plssss

  • @alexandrubutunoi8803
    @alexandrubutunoi8803 Рік тому +1

    That was the most comprehensive explanation I could found. Thank you.

  • @ryansanderson7023
    @ryansanderson7023 Рік тому +1

    Thanks man. I was getting frustrated when doing this because I didn't even know integer overflow was a thing! So I learned something new today.

  • @tonychzewanny4810
    @tonychzewanny4810 3 роки тому +5

    The tutorial is really useful!! Especially I just start learning pentest/ctf from scratch, have no foundation about it.

  • @notmyname1486
    @notmyname1486 2 роки тому +2

    I solved this one by accident just playing around with larger numbers, your explanation helped me to understand what was going on! THANK YOU!!

  • @euler7586
    @euler7586 4 місяці тому

    Great explanation, sir!

  • @weijietan1178
    @weijietan1178 8 місяців тому

    i have learnt so much again thank to you sir!

  • @adithibhat7277
    @adithibhat7277 2 роки тому +2

    So super helpful. Thank you...

  • @goodboi3455
    @goodboi3455 Рік тому

    I tried increasing my bank account so that I could buy a 1337 flag , but it didn't work. Why so?