๐์ ๋ณด๋ณด์/๋ฆฌ๋ฒ์ฑ
๋ฆฌ๋ฒ์ฑ - ๋ฐ์ด๋๋ฆฌ์ ์ค์ ๋ ๋ณดํธ ๊ธฐ๋ฒ ํ์ธ(checksec)
Janger
2023. 3. 26. 08:00
728x90
checksec -f {ํ์ผ}
- RELRO(RELocation Read-Only): Read-Only ๊ถํ ์ค์ ์ผ๋ก Write ๊ฐ๋ฅํ์ง ์ฌ๋ถ
- Stack Canary: Return Address Overwrite ์ฌ๋ถ ํ์ธ
- Stack Canary๋ ์นด๋๋ฆฌ๋ฅผ ํตํด ์คํ ์ค๋ฒํ๋ก์ฐ๋ฅผ ๊ฐ์งํ๋ค.
- NX(No-eXecute): NX๋ฅผ ์ฐํํ ์ ์๋ ๊ฐ์ฅ ๋ํ์ ์ธ ๋ฐฉ๋ฒ์ ROP(Return Oriented Programming)
- NX(No-eXecute)๋ ์์ฝ๋ ์คํ์ ๋ฐฉ์งํ๋ค.
- ASLR(Address Space Layout Randomization): ์คํ๋ ๋๋ง๋ค ๋ฐ์ดํฐ ์์ญ(์คํ, ํ, ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ฑ)์ ์ฃผ์๋ฅผ ๋๋ค์ผ๋ก ๋ณ๊ฒฝ
Windows์ฉ checksec
https://github.com/Wenzel/checksec.py/releases
Releases · Wenzel/checksec.py
Checksec tool in Python, Rich output. Based on LIEF - Wenzel/checksec.py
github.com
์ถ์ฒ:
https://hackyboiz.github.io/2021/10/27/y00n_nms/linux-mitigation/
hackyboiz
hack & life
hackyboiz.github.io
728x90