Router Day03:Getting Started

Something to say

Lots of things just took place in my life,and for me , like graduation,like getting into my Postgraduate Exam for the second time… However, after all this , I just woke up by seeing all my teammates getting a promising future while I just get my silver LOL account holding a 4000+hours playing score. So I just get myself some simple goals. Within 5 years, I’ll be at that Pwn2Own match . Just see it ,dudes. XySherlock is coming! From nowadays, I’ll write all my tech blogs by English. This aims at practicing my English skills and also decrease the difficulty of reading papers or just getting familiar with English.
So much for chatting, Let’s start to work for daydreaming!

Preparation

For my start, I got the book 《揭秘家用路由器0day漏洞技术》 for my router security study , if there were some foreign friends watching my blog, just don’t be envy , I felt the same as you do now when there once goes some English awesome books.XD

22/01/03-22/01/05

Learing basic operation about GCC&GDB, and find my ubuntu 16 virtual environment back .
These works are simple , while I still got some problems here.

Problems

  1. What’s the relationship between stack and stack frame and frame?
    Got some related things:
    https://zhuanlan.zhihu.com/p/77663680;
    https://blog.csdn.net/ylyuanlu/article/details/18947951;https://blog.csdn.net/yu97271486/article/details/80425089

Stack is a data structure.Every time a function call took place in this stack, the compiler uses ebp(extended base pointer) to maintain an independent stack frame on call stack.

And for using ebp there still needs some explanation. Stack is a FILO structure. The address grows from high address to low address. So EBP is sometimes called frame pointer and ESP(extended stack pointer) is called stack pointer.

  1. How X86 hardware achieves stack and heap? Tech about heap?

Learn Data structure(0/100)

  1. Why PC relative addressing moves 2 bit left and do sign extension?

About MIPS addressing I got:
https://www.cs.uregina.ca/Links/class-info/201/SPIM-AddressingMode/lecture.html
https://www.youtube.com/watch?v=Nkia4IWTEA4

For bytes coming into words, there goes the “shifting two to left” like 3(011)coming into 12(01100).

And I think there goes two images might be used often:
Image
Image