8

!rant
Recently I started to be interested in how code actually work. I do a for-loop or an if-statement but how do they actually work at the lowest level.

Another thing I've been interested in is security. I thought about learning how to hack my own systems in order to learn how to write more secure code and keep people out. But I'm a little afraid that as soon as I start look at how to hack, the police will storm through the window and take my computer 😂😂

Comments
  • 4
    Hacking is not illegal if you hack your own Hardware.
  • 2
    @stop yeah, I thought as much. Just need to convince others of my true intentions. I'm guessing people can be unsure if I start to hack? Even if it's my own hardware.
  • 2
    Even if "they" bring you to the court. As long you dont "steal" software and its your hardware(or the owner gave you the permission) you are innocent.
    An unrealistic example: I hack into my homeserver because I forgotten the password.
  • 1
    @stop perhaps I overthink it. Maybe going to court is a little far fetched 😊
  • 6
    Write basic c code. Set compiler to not optimize code. Compile it and debug it with inline asm instructions. You will see how c translates to asm.
    And you can learn how loops are implemented, function prologue, epilouge and how stack management works.
  • 1
    It's far fetched but it comes from good intentions
    I'm currently deep into security as well specially working with malware atm, I have a few VM setup so I can test the effects of what I'm coding /finding / copy pasting from Internet on those without too much worry
  • 1
    @hateios wow! Thanks! I will definitely try that : )
  • 0
    First things first: assembly. Use an assembly emulator and write simple things in it, that will teach you about how the basics work.
Add Comment