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

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ก.ย. 2019
  • If you would like to support me, please like, comment & subscribe, and check me out on Patreon: / johnhammond010
    E-mail: johnhammond010@gmail.com
    PayPal: paypal.me/johnhammond010
    GitHub: github.com/JohnHammond
    Site: www.johnhammond.org
    Twitter: / _johnhammond

ความคิดเห็น • 49

  • @bryanleong2846
    @bryanleong2846 3 ปีที่แล้ว +2

    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 4 ปีที่แล้ว +1

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

  • @user-be2bs1hy8e
    @user-be2bs1hy8e 7 หลายเดือนก่อน

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

  • @90hijacked
    @90hijacked 4 ปีที่แล้ว

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

  • @silentkiller1753
    @silentkiller1753 4 ปีที่แล้ว +3

    Good luck on the OSCP!

  • @gantulgatuvdendorj
    @gantulgatuvdendorj 4 ปีที่แล้ว

    Oh many thanks dude i was trying to that :D

  • @fatcatgaming695
    @fatcatgaming695 3 ปีที่แล้ว +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!

  • @project3149
    @project3149 4 ปีที่แล้ว

    good job man

  • @vineethrajesh4654
    @vineethrajesh4654 4 ปีที่แล้ว +4

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

  • @stevejobz7389
    @stevejobz7389 4 ปีที่แล้ว +1

    Please post writeup for Buyify csaw 2019 , thanks in advance

  • @willlynas672
    @willlynas672 4 ปีที่แล้ว

    Ahhh I saw calling system in a 32 bit way

  • @xscorp382
    @xscorp382 4 ปีที่แล้ว

    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

    • @xscorp382
      @xscorp382 4 ปีที่แล้ว

      nvm got it :-)

  • @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!

  • @DjilouSP
    @DjilouSP 3 ปีที่แล้ว

    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 3 ปีที่แล้ว

      There should be a leak, u can watch this th-cam.com/video/i5-cWI_HV8o/w-d-xo.html

  • @anishagrawal7068
    @anishagrawal7068 4 ปีที่แล้ว

    long time no see

  • @yung-yuchen1219
    @yung-yuchen1219 4 ปีที่แล้ว

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

    • @_JohnHammond
      @_JohnHammond  4 ปีที่แล้ว

      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!

  • @testapp8394
    @testapp8394 4 ปีที่แล้ว

    Here should i look for pwn cyclic command

    • @_JohnHammond
      @_JohnHammond  4 ปีที่แล้ว

      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!

  • @abisrug4898
    @abisrug4898 3 ปีที่แล้ว

    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.....

  • @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 4 ปีที่แล้ว

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

    • @_JohnHammond
      @_JohnHammond  4 ปีที่แล้ว

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

    • @jaki99k10
      @jaki99k10 4 ปีที่แล้ว

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

  • @MiguelAngel-iv3bq
    @MiguelAngel-iv3bq 4 ปีที่แล้ว

    One_gadget to speed up the process ;)

    • @Anonimbus
      @Anonimbus 4 ปีที่แล้ว

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

    • @MiguelAngel-iv3bq
      @MiguelAngel-iv3bq 4 ปีที่แล้ว

      @@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 4 ปีที่แล้ว

      @@MiguelAngel-iv3bq Thanks :D

  • @ashutoshpanda4336
    @ashutoshpanda4336 4 ปีที่แล้ว +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 4 ปีที่แล้ว +2

      Ashutosh Panda install oh-zsh

    • @silentkiller1753
      @silentkiller1753 4 ปีที่แล้ว +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 4 ปีที่แล้ว +1

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

    • @silentkiller1753
      @silentkiller1753 4 ปีที่แล้ว

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

  • @TheSxW
    @TheSxW 4 ปีที่แล้ว

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

  • @monkeyspanksback
    @monkeyspanksback 4 ปีที่แล้ว

    Please be my mentor

  • @omershalev1855
    @omershalev1855 4 ปีที่แล้ว +1

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

  • @chiko3603
    @chiko3603 4 ปีที่แล้ว +1

    Man plz do byte me

  • @isectech
    @isectech 4 ปีที่แล้ว

    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 4 ปีที่แล้ว +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.