CSAW'19 - PWN - Ret2libc w/ PWNTOOLS (baby_boi)

Поделиться
HTML-код
  • Опубликовано: 8 янв 2025

Комментарии • 50

  • @bryanleong2846
    @bryanleong2846 3 года назад +4

    thank you John, the "8byte & 16bytes problem that caused the payload not working on remote " explanation really helps me a lot! Keep it up John.

  • @Flangvik
    @Flangvik 5 лет назад +1

    This is great stuff! Love that you actually show how you approach the unknown!

  • @fatcatgaming695
    @fatcatgaming695 4 года назад +1

    at around 15mins it looked like the shadow of your mic was your beard. Man that had me fixated for far too long :D quality content as always!

  • @vineethrajesh4654
    @vineethrajesh4654 5 лет назад +5

    Can you please make a video for the web challenges in the csaw 2019 ctf please

  • @90hijacked
    @90hijacked 5 лет назад

    So that's what fish style previews in zsh look like, fascinating :-)
    Thanks for the video btw

  • @silentkiller1753
    @silentkiller1753 5 лет назад +3

    Good luck on the OSCP!

  • @stevejobz7389
    @stevejobz7389 5 лет назад +1

    Please post writeup for Buyify csaw 2019 , thanks in advance

  • @xscorp382
    @xscorp382 5 лет назад

    Can anybody tell me what is that libc.symbols['printf'] and how substracting it from current "printf" addrss is giving us base address of libc. All I saw what that he substracted address of printf from

  • @ChrisLeftBlank
    @ChrisLeftBlank Год назад

    Have you ever thought, about being on the other side of the screen?

  • @ashutoshpanda4336
    @ashutoshpanda4336 5 лет назад +4

    Heya man can you please make a. Video how did you make that zsh terminal.. I've tried several times but didn't work... Trust me everyone going to love the video please

    • @spectrum9734
      @spectrum9734 5 лет назад +2

      Ashutosh Panda install oh-zsh

    • @silentkiller1753
      @silentkiller1753 5 лет назад +2

      Install zsh ( debian based ) : sudo apt install zsh (arch based): sudo pacman -S zsh
      Install oh-my-zsh: sh -c "$(curl -fsSL raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
      Change shell to zsh: chsh -s $(which zsh)
      Done.
      For more info: github.com/robbyrussell/oh-my-zsh

    • @AlexWMF
      @AlexWMF 5 лет назад +1

      @@silentkiller1753 Do you know what is the semi-transparent autocompletion suggestion plugin is used at 0:49?

    • @silentkiller1753
      @silentkiller1753 5 лет назад

      @@AlexWMF github.com/zsh-users/zsh-autosuggestions one of the most useful plugins imo

  • @wolfleader2
    @wolfleader2 10 дней назад

    Nice

  • @gantulgatuvdendorj
    @gantulgatuvdendorj 5 лет назад

    Oh many thanks dude i was trying to that :D

  • @DjilouSP
    @DjilouSP 4 года назад

    Hey john i have a question pls, what if there was no printf address being displayed by the program , how to proceed in that case ?

    • @namesurname201
      @namesurname201 4 года назад

      There should be a leak, u can watch this ruclips.net/video/i5-cWI_HV8o/видео.html

  • @khalidamro3950
    @khalidamro3950 4 года назад

    Hello, I have a question regarding the pwn tools, when you specified the file location of libc how is it getting that address?
    Can you please explain?

    • @_JohnHammond
      @_JohnHammond  4 года назад +2

      You can see the location of the libc library that a binary uses with the `ldd` command. They also give us the LIBC that his uses in the downloadable files offered by this challenge. Thanks for watching!

  • @abisrug4898
    @abisrug4898 4 года назад

    The final ret could have been a exit() which will make sure we exit properly ..this would be useful if u were working on gdb.....

  • @anishagrawal7068
    @anishagrawal7068 5 лет назад

    long time no see

  • @project3149
    @project3149 5 лет назад

    good job man

  • @yung-yuchen1219
    @yung-yuchen1219 5 лет назад

    What if recv().strip() doesn’t return any value?

    • @_JohnHammond
      @_JohnHammond  5 лет назад

      You may have received just a newline character, or an empty line. Does it happen every time, are your "recv()"s in order? You can use `recvuntil` as needed to get to the specific portion of the stream you are looking for. Thanks for watching!

  • @willlynas672
    @willlynas672 5 лет назад

    Ahhh I saw calling system in a 32 bit way

  • @testapp8394
    @testapp8394 5 лет назад

    Here should i look for pwn cyclic command

    • @_JohnHammond
      @_JohnHammond  5 лет назад

      You'll want to install pwntools. You should be able to do a `pip install pwntools` but there might be some other dependencies you'd need to work through. Let me know if you need a bit more guidance. Thanks for watching!

  • @omershalev1855
    @omershalev1855 5 лет назад +1

    John , why didn't u use a one gadget? much more handy than building the system's ropchain by hand

  • @gardedesombres3254
    @gardedesombres3254 3 года назад

    Why did u do "pop rdi " ?

    • @rowan2231
      @rowan2231 3 года назад

      The pop rdi gadget is used to pop the value at the top of the stack into the rdi register. As this is a 64 bit binary, the calling convention says that the first argument is read from rdi, so the string "/bin/sh" needs popping into rdi before system is called.

  • @jaki99k10
    @jaki99k10 5 лет назад

    Hi what's the Shell's name you are using?

    • @_JohnHammond
      @_JohnHammond  5 лет назад

      I use zsh, with the OhMyZsh configuration and the autosuggestions plugin. It's handy! Thanks for watching!

    • @jaki99k10
      @jaki99k10 5 лет назад

      @@_JohnHammondFine, thanks you so much! Keep going!

  • @TheSxW
    @TheSxW 5 лет назад

    Try reverse EFT its very funny as i was told of :)

  • @MiguelAngel-iv3bq
    @MiguelAngel-iv3bq 5 лет назад

    One_gadget to speed up the process ;)

    • @Anonimbus
      @Anonimbus 5 лет назад

      I haven't used one_gadget ever.
      Where can i find tutorial about it?

    • @MiguelAngel-iv3bq
      @MiguelAngel-iv3bq 5 лет назад

      @@Anonimbus if you have Kali distro you just have to call it in terminal: one_gadget libc_file and it will return the address of various unique gadgets to launch a shell. I recomend you to just search in Google :)

    • @Anonimbus
      @Anonimbus 5 лет назад

      @@MiguelAngel-iv3bq Thanks :D

  • @monkeyspanksback
    @monkeyspanksback 4 года назад

    Please be my mentor

  • @chiko3603
    @chiko3603 5 лет назад +1

    Man plz do byte me

  • @isectech
    @isectech 5 лет назад

    Please we are not listening we need also to reproduce what we are watching unfortunately your speed doesn’t allowed, sometimes it became annoying.

  • @Sepkov
    @Sepkov 5 лет назад +1

    Nice video but I gave a dislike because you didn't talk about what's going behind. You just used some tools and went directly to solution. I was expecting much more like what is libc, how functions stays inside. It would be much more instructive I think.