How They Hack: Buffer Overflow & GDB Analysis - James Lyne

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

КОМЕНТАРІ • 91

  • @mrbangkockney
    @mrbangkockney 6 років тому +29

    Seems you’ve stopped posting vids...but this is by far the best intro to BO and gdp our there. I salute you good sir, and please come back!

    • @TechinalBibek
      @TechinalBibek 3 роки тому

      True

    • @TheRealKitWalker
      @TheRealKitWalker 3 роки тому

      I agree. This was so much fun watching a BO practical example. I quite enjoyed it. 🤟✌️👏👏👏

  • @segintendorocks
    @segintendorocks 7 років тому +16

    This guy is freaking awesome. He explains it so much better than my professor :D.

  • @OVVAISNAB
    @OVVAISNAB 3 роки тому +2

    Best video explanation of this seemingly complicated topic, thank you!

  • @rj-nj3uk
    @rj-nj3uk 5 років тому +3

    Hi James, very nice video. I am interested in system programming, and it is so difficult to find a tutorial video like this. Please don't stop.

  • @muhammadkashif4216
    @muhammadkashif4216 5 місяців тому

    This is literally some of the best and practical explaination conveyed so nicely, a low level stuff (pun intended :D), great respect

  • @trishaatluri
    @trishaatluri 7 років тому +1

    sooo helpful - would have been up all night doing my pset if it weren't for this video

  • @alexis-nicole
    @alexis-nicole Місяць тому

    Extremely well explained! 😊

  • @BeSharpInCSharp
    @BeSharpInCSharp 5 років тому +9

    The only thing that is NOT CLEAR from this video is how you guessed the return address? How did you know exactly which address should be replaced by B ascii values?

  • @shyngyskerimbekov2514
    @shyngyskerimbekov2514 6 років тому +1

    I am delighted, acquire so much understandable infromations , TY man!

  • @nnamdyjunior
    @nnamdyjunior 9 років тому +4

    beautiful!!! just what I was after!

  • @bjarkismari
    @bjarkismari 2 роки тому +5

    How did you find the return pointer just by looking at the stack?

    • @Username-d2v6y
      @Username-d2v6y 8 днів тому

      experience i think

    • @SerajAlhorany
      @SerajAlhorany 7 днів тому

      Trail and error , you gotta enter dump values like A until you hit a segmentation fault

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

    Love this gdb stuff very little missing I assume after access granted on a real system the operating system or private code would still run or would you have to point to it

  • @mohammadahmedragab837
    @mohammadahmedragab837 2 роки тому

    thank you so much for clear explanation. Please where can I find a full course of your courses ?

  • @manojamrutharaj9071
    @manojamrutharaj9071 2 роки тому

    Thanks for this wonderful analysis video....

  • @GURUYATHI
    @GURUYATHI 6 років тому +1

    I understood properly, thank you sir for the video

    • @anoopjohn9062
      @anoopjohn9062 6 років тому

      Could you explain how do we identify the return address?

    • @adityashrest5886
      @adityashrest5886 6 років тому

      anoop john by radarex

  • @ca7986
    @ca7986 3 роки тому +1

    This video is really high quality content!

  • @JannisAdmek
    @JannisAdmek 3 роки тому

    This video was so helpful, I watched it twice :)

  • @etienneboutet7193
    @etienneboutet7193 5 років тому +1

    Amazing explanation. Thanks a lot

  • @stevecross9159
    @stevecross9159 3 роки тому

    James- great video

  • @rootdev8106
    @rootdev8106 6 років тому

    Thank you for your awesome how-to!

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

    such a nice video

  • @kooners6961
    @kooners6961 5 років тому +9

    8:50 I'm really confused on how he can tell it's the return pointer

    • @tlehloba
      @tlehloba 5 років тому +2

      Exactly my point. how do u determine the return pointer

    • @rootabeta9015
      @rootabeta9015 5 років тому

      @@tlehloba Usually, trial and error

    • @kraken_norse
      @kraken_norse 4 роки тому +6

      You can find it out by checking push/pop instructions, which push items onto the stack frame or pop from it , in the disassembled function. The return pointer of a function is pushed on the stack when it's called,.

    • @enesozdemir9973
      @enesozdemir9973 4 роки тому

      @@kraken_norse thank you mann you saved the day

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

    I do the same exact step but i only have seg fault. Can It be because the Memory region of my eip( return pointer) Is only readable?

  • @amjadhammoudeh7954
    @amjadhammoudeh7954 6 років тому

    much appreciation mate

  • @aragon5956
    @aragon5956 11 місяців тому

    If i want to put a shellcode , the return address is the bottom of the stacj ,isn't it ?

  • @quaxiscorporationforresear5557
    @quaxiscorporationforresear5557 8 років тому

    Great video sir!

  • @ahmedlimam2241
    @ahmedlimam2241 4 роки тому

    Thank youuuuu I have a little problem, saying that I can write into the buffer through an argv[1] once I figure how much character I need and I figute what the return pointer address is, if I execute ./program my payload + p32(address I need in hex) when I check gdb the return address changed but not to the address I need it to be, as if it read the "\" and the "x" of the little endian p32 as a value on their own, how can I change that?

  • @User-cv4ee
    @User-cv4ee 5 років тому

    Why does the stack store new data towards the return pointer? Wouldn't going the opposite way ensure rp is never touched?

  • @mantas9826
    @mantas9826 5 років тому

    Well explained. I got the flag I was looking for.

  • @surajkushwah3221
    @surajkushwah3221 6 років тому

    awesome video explained so much

  • @new_contents_all_day
    @new_contents_all_day 5 років тому

    More videos plzz ..
    Is it possible to exploit packet buffer overflow due to slow data rate

  • @tj6193
    @tj6193 5 років тому

    I'm finally getting it!!! 🎉

  • @pwn0x80
    @pwn0x80 6 років тому +1

    Your legends sir your best ... You rock ..

  • @evilmulle4228
    @evilmulle4228 5 років тому

    When you print the stack with x/##x $esp, the first address that you call the offset, is that just the first address of the following 4 * 4 bytes?

  • @omarAhmed-wt8kx
    @omarAhmed-wt8kx 7 років тому

    Another good one keep up you have good representation way

  • @SuperWhatusername
    @SuperWhatusername 3 роки тому

    Superb

  • @yungrolex1992
    @yungrolex1992 7 років тому

    how do i ignore the gcc errors because of the implicit declarations of the "gets" function

  • @santoshkumarpanda1180
    @santoshkumarpanda1180 6 років тому +2

    How to identify the return pointer?

    • @breakingcode92
      @breakingcode92 6 років тому +1

      first you do break main, then when you run and it hits the first break point at main you can do info frame and it will give you the rbp/ebp (depending on whether you run on 64 or 32 bit architecture). It will also give you the eip/rip this is the location of the return pointer

  • @prakashshiv2586
    @prakashshiv2586 9 років тому

    This is awesome

  • @sandeepbaldawa9146
    @sandeepbaldawa9146 4 роки тому

    V well explained

  • @new_contents_all_day
    @new_contents_all_day 5 років тому

    Thank you sooo much

  • @sharpspoon2
    @sharpspoon2 4 роки тому

    good stuff

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

    Everything was great, but I just couldn't get access granted

  • @kathiravankathir3089
    @kathiravankathir3089 4 роки тому

    awesome

  • @stefeyes9819
    @stefeyes9819 6 років тому

    You do know u used the same superman lone in both buffer videos right? Haha just teasing thank you for answering questions that nobody else could

  • @madimy
    @madimy 8 років тому

    what if we do not have an $esp register after the gets function? instead I have $rax register

    • @portgas3
      @portgas3 8 років тому +1

      its 64-bit application,you will find $rsp instead of $esp

  • @harishkhattar6009
    @harishkhattar6009 6 років тому

    Which software is this?

  • @new_contents_all_day
    @new_contents_all_day 5 років тому

    The code is not compiling

  • @siddharthpandey3417
    @siddharthpandey3417 5 років тому

    Anybody else getting a cannot access memory address error after setting breakpoints?

  • @ibrahimgambo4904
    @ibrahimgambo4904 7 місяців тому

  • @mustaphachakiri3407
    @mustaphachakiri3407 5 років тому

    >>Thank U so much

  • @GiQQ
    @GiQQ 7 років тому

    Why does the address of the granted function needs to be written down in little endian?

    • @breakingcode92
      @breakingcode92 6 років тому

      because the value we are storing at a particular memory address must be stored in hex. Little endian specifies that it is already in hex otherwise we would not be able to differentiate between python string or python reference to hex value

  • @ruslanlion1999
    @ruslanlion1999 6 років тому +3

    Кто сделал лабу? В лс скиньте плез)

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

    This does not work! maybe it did on what ever system you used ? But it doesn't work on unbuntu 20.04, cannot over write return of gets, no matter what I try!

  • @keerthikumark.g2135
    @keerthikumark.g2135 7 років тому

    teach me more about hacking an android device

  • @abayzhunus5085
    @abayzhunus5085 8 років тому +4

    ne och

  • @olzhaskairzhanov8090
    @olzhaskairzhanov8090 6 років тому

    Тем временем до дедлайна 47 минут

  • @MRX-xe3qf
    @MRX-xe3qf 5 років тому

    Instead of 0x41414141 I get 0x565561f5 which is my ret address.

    • @leesmith1609
      @leesmith1609 3 роки тому

      I got the address working when I used the example code from kuafu1994.github.io/HackWithGDB/ASM.html

  • @-makhmutov-
    @-makhmutov- 7 років тому +3

    Че там 8 лабка ма? ахахахахха

    • @CorpOfHack
      @CorpOfHack 6 років тому

      Какая ? )

    • @ruslanlion1999
      @ruslanlion1999 6 років тому +1

      В будущем это уже 7я лаба)😂

  • @tsunningwah3471
    @tsunningwah3471 9 місяців тому

    nbbbbbnbnbnkjbjkbjkbjkbjkbjkbjkbjkbjkbkjbjkb

  • @starboy832
    @starboy832 9 років тому

    Has anyone really been far even as decided to use even go want to do look more like?

    • @sheamus69
      @sheamus69 9 років тому +2

      Oatify Er... take a deep breath and then try again...

  • @anthonyparra9553
    @anthonyparra9553 5 років тому

    you don't use nano? I can't watch this.

  • @sohaibesohaib2914
    @sohaibesohaib2914 2 роки тому

    can I have your linkedin account i've a challnge for u

  • @anoopjohn9062
    @anoopjohn9062 6 років тому +3

    How to identify the return pointer?

    • @breakingcode92
      @breakingcode92 6 років тому +5

      first you do break main, then when you run and it hits the first break point at main you can do info frame and it will give you the rbp/ebp (depending on whether you run on 64 or 32 bit architecture). It will also give you the eip/rip this is the location of the return pointer.

    • @tlehloba
      @tlehloba 5 років тому

      @@breakingcode92 How do you determine eip/rip?