본문 바로가기 메뉴 바로가기

ba0bab

프로필사진

ba0bab

ba0bab
검색하기 폼 Mountain View
  • About me

  • 분류 전체보기 (165)
    • pwnable (127)
      • bandit (8)
      • FTZ (19)
      • LOB (11)
      • pwnable.kr (6)
      • pwnable.tw (16)
      • HackCTF (1)
      • CTF write-up (22)
      • windows (4)
      • 정리 (39)
    • reversing (0)
      • CTF write-up (0)
    • web hacking (0)
      • CTF write-up (0)
    • programming (30)
      • c, c++ (10)
      • python (20)
    • cs (5)
      • network (1)
      • etc (4)
    • CTF write-up (3)
  • GUESTBOOK
  • TAG
  • RSS

TLS
[pwnpwnpwn-15] codegate 2019 aeiou

Summary Thread Local Storage(TLS) 리눅스는 x86: gs, x86_64: fs 레지스터로 TLS를 관리한다. TLS란 쓰레드를 관리하기 위한 전역변수이며 해당 변수의 0번 째 인덱스에는 TCB(Thread Control Block)의 주소가 저장된다. TCB는 해당 쓰레드를 관리하기 위한 구조체. typedef struct { void *tcb; /* Pointer to the TCB. Not necessarily the thread descriptor used by libpthread. */ dtv_t *dtv; void *self; /* Pointer to the thread descriptor. */ int multiple_threads; int gscope_flag; u..

pwnable/CTF write-up 2020. 1. 28. 14:09
이전 1 다음
이전 다음
최근에 올라온 글
최근에 달린 댓글
TAG
  • fastbin
  • pwnable
  • 본선가고싶다
  • shellcoding
  • pwable
  • rt_sigreturn
  • 해킹
  • exit
  • tcache
  • codegate
  • overflow
  • ebp change
  • heap
  • srop
  • fastbindup
  • hacking
  • SQLi
  • fsop
  • pwnable.tw
  • stack reusing
  • glibc
  • oob
  • FSB
  • TLS
  • HackCTF
more
Total
Today
Yesterday

Powered by Tistory / Designed by INJE

티스토리툴바