Accessing Private Data | Hack Solidity (0.6)

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

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

  • @smartcontractprogrammer
    @smartcontractprogrammer  4 года назад +11

    Vulnerability 0:40
    Storage layout 1:41
    Code 4:57
    Setup 10:09
    Demo 10:38
    Preventative technique 16:54

  • @karthiksai9162
    @karthiksai9162 3 года назад +7

    the most simplest explanation of one of the advanced concepts. Awesome.

  • @Ts2pc
    @Ts2pc 2 года назад +3

    Thanks so much! You show me the new world with such an excellent course!

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

    wow! this video was more informative than other 52 channels I watched and spent 40 hours

  • @weiqiangyu1894
    @weiqiangyu1894 Год назад +1

    I want to thank you for your work sir, knowledge is a treasure to share. Again thank you

  • @kowsikgelli7257
    @kowsikgelli7257 4 года назад +4

    Bro, you are just awesome, no words. Great content 👌

  • @ZuhaibMohammed
    @ZuhaibMohammed 3 года назад +1

    You are a gem. excellent explanation. Love you brother.

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

    From South Africa❤, I love your videos you explain concept very easily big ups

  • @cyberdisco9724
    @cyberdisco9724 3 года назад +1

    Wow, awesome video! Very insightful and well explained

  • @sowjanyavenkatasegu6043
    @sowjanyavenkatasegu6043 2 года назад

    This is great info . Thank you for the advanced solidity content.

  • @carlhopkinson
    @carlhopkinson 2 года назад

    Brilliantly clear demonstration !!!

  • @bautistabaiocchi-lora1339
    @bautistabaiocchi-lora1339 2 года назад

    i love the level of this content, thank you!

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

    Thanks a lot for your videos. Your explanations are incredible good! ¡Muchas gracias!

  • @supadrasta
    @supadrasta 2 года назад

    Amazing, Amazing, Amazing!

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

    BEST CHANNEL ON RUclips U NEED A MILLION VIEWZZ

  • @SkemilArchive
    @SkemilArchive 2 года назад

    Great video, I appreciate your work!

  • @0x_minato4thh
    @0x_minato4thh 2 года назад

    any advanced solidity i search ur channel pops up 😂😂

  • @DevCurioso
    @DevCurioso 3 года назад +1

    Great video, congrats

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

    By the way congrats bro, we got 500 subscribers 😎😎 it's just starting only.

  • @TropicalBrick
    @TropicalBrick 2 года назад +1

    I can feel my brain growing

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

    That's pretty crazy that password could be hacked on blockchain !!! 😮 thanks so much for the video !! 😍

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

    you're brilliant! what a great channel

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

    So we can store sensitive information by storing their hash in the blockchain right?

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

      Yes! But keep in mind that data stored on the blockchain is permanent. So if the hash function becomes decipherable in the future, then the password can be recovered from the password hash stored on the blockchain.

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

      OK, never keep sensitive info in blockchain, got it👍

    • @AnuragVishwa
      @AnuragVishwa 3 года назад +2

      You can use Filecoin/IPFS to store data outside of blockchain.

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

    Great videos keep making them!

  • @shivangsaini3940
    @shivangsaini3940 2 года назад +1

    content 💥.

  • @shivangsaini3940
    @shivangsaini3940 2 года назад +1

    is this working on 0.8 or further versions??

  • @rchanbob
    @rchanbob 2 года назад

    Nice VID! How would u decode the address ?

  • @RobloxGamer-g9n
    @RobloxGamer-g9n 4 года назад

    Thanks!!! Great tutorial!

  • @erick-llerenas
    @erick-llerenas 2 года назад +1

    So there is no way to create passwords on solidity, that sucks

  • @koolerick5047
    @koolerick5047 2 года назад

    Wow, great video,
    I got some eth stuck in the contract I deployed without a transfer function in it, how to destroy that contract and send the eth to another address?

  • @internetandcomputerprobe4426
    @internetandcomputerprobe4426 2 года назад

    Really informative sir

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

    amazing!

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

    great work!

  • @DevrajSinghRawat
    @DevrajSinghRawat 2 года назад

    I have no words for the author and many thanks for his efforts,
    I would like to ask a question here .. you had said that data of dynamic array element data will be stored at keccak256() , that mean keccak256(6) ll always be same, So what happens if two contract which had dynamic array at slot number 6 ..
    Contract 1 - Dynamic array at Slot 6 will also point at the same place where
    Contract 2 - Dynamic array at Slot 6 will point
    Does that mean the values ll be overwritten ,, Offcoure that should not be possible .. So can anyone help me understand that what I am missing here?

  • @arifulislam-xj9if
    @arifulislam-xj9if Год назад

    can we get read contract storage that deployed on testnets ? ( like on remix ) or browser console ?

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

    does this apply to incrementing variables as well?

    • @smartcontractprogrammer
      @smartcontractprogrammer  3 года назад +1

      accessing private state variables that are used to increment stuff?

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

      @@smartcontractprogrammer yes with public function and modifier that only allowes certain contracts address. How secured is this approach?

    • @smartcontractprogrammer
      @smartcontractprogrammer  3 года назад +1

      all data including private can be read
      some data can be written, depends on what your smart contract allows
      private data can be written only if you have a function that allow other accounts / contracts to call

  • @tetuaoro
    @tetuaoro 3 года назад +1

    Haha this preventive technique. Thx for this vdo

  • @lihe5156
    @lihe5156 2 года назад

    what a great channel

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

    Hi. I don't know if you can see my comment now after all it was one year old tutorial. First, I 'd like to say thank you, I learned a lot from you. I'd like to confirm a point that you say the size of EVM storage is 2**256 slots times 32 bytes. I doubt the number. You know the 2**256 * 32 bytes is a very big number. 1TB disk can only store 2**40 Byte. Can you double check this or if what I understood is not correct, please let me know. Thanks

  • @Lopol2010
    @Lopol2010 2 года назад +1

    It looks like a mistake in video, in code comments you put "(2 ** 8) * 32" for uint slot. But uint uses only 256 bit and not 256 * 32?