pico2024 format string 2

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

КОМЕНТАРІ • 15

  • @riterforever3516
    @riterforever3516 2 місяці тому +1

    That's really helpful, your writeups really saves my day!

  • @ZackWhitbord
    @ZackWhitbord 3 місяці тому +2

    You're a real bro, I've watched so many of your writeups. Got stuck on this one. Thanks for your help!

    • @carlislemc
      @carlislemc  3 місяці тому

      Glad to help. Thanks for the kind words!

  • @m91316
    @m91316 2 місяці тому +1

    Hey Martin, great video. Just one question:
    Why do we pick up the 20 and 0x404062?
    Thanks!

    • @carlislemc
      @carlislemc  2 місяці тому +2

      To write both halves of the number, we write to 0x404060 and 0x404062. 20 represents how far we have to walk up the stack to find our address.

    • @m91316
      @m91316 2 місяці тому +1

      @@carlislemc Got it, thanks!

  • @tomk8312
    @tomk8312 21 день тому

    I have read so many writeups and I feel like I have a good grasp of how this vulnerability works, but it seems like something in this challenge must have changed because when you enter addresses in this x.. format it converts every character to hex including the slashes. I have copied and pasted strings from writeups and they just plain do not work. The only way I could get one of the addresses onto the stack is padding it out to an empty stack frame but that's as far as I could get because you can't pass null characters

    • @carlislemc
      @carlislemc  21 день тому

      At what point in the video does the challenge work differently for you?

    • @tomk8312
      @tomk8312 21 день тому

      Printf stops reading when it gets to a null byte no matter how it's entered. It will only read up to the first address and anything afterwards is ignored because of the 0s

    • @carlislemc
      @carlislemc  21 день тому

      @@tomk8312 printf does stop at the null byte, but you should still have the bytes on the stack to access with the % operators as long as they all appear before the null bytes. You'll note that I put %22$lx before the addresses.

  • @User-f7w9e
    @User-f7w9e Місяць тому

    Sir I can't understand the stuffs 🥹🥺🥺

  • @lekhashree5334
    @lekhashree5334 3 місяці тому

    i actually can't understand format string 2 and 3 challenges. please tell me what and where i should learn..

    • @carlislemc
      @carlislemc  3 місяці тому

      Perhaps you should read something like: axcheron.github.io/exploit-101-format-strings/

  • @jonnyphenomenon
    @jonnyphenomenon 2 місяці тому

    been fighting with this one for a day now. still no closer to understanding how this works. - I thought I had a pretty good grasp on this, but this pwntools is like some kind of secret code that was intended to be undecipherable.