Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Binary Exploitation - Basic 補充篇
Search
LJP-TW
May 26, 2021
Technology
90
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Binary Exploitation - Basic 補充篇
2021/05/26 台科資安社 社課
直播記錄檔:
https://www.youtube.com/watch?v=I3X69ADZOnw
- TLS
LJP-TW
May 26, 2021
Transcript
9 slides
2021/5/26 NTUSTISC Binary Exploitation aka Pwn Basic 補充篇
# whoami - LJP / LJP-TW - Pwn / Rev
- NTUST / NCTU / NYCU - 10sec CTF Team 1
Outline - TLS 2
TLS 3
TLS - TLS 全名 Thread-Local Storage - Linux x64 使用
fs 暫存器記著 TLS 的位置 - Stack Canary 就是存在 TLS 中 4
TLS - fs 為 Segment Register - 計算方式 reg:offset =
ref + offset - 這時候你用 gdb 想看一下 fs 等於多少卻發現 - 難道 Canary 從 [0+0x28] 拿來的?? 5
TLS - GDB 也是 Process, fs = 0 是指 GDB
自己的 fs - 所以要怎麼拿到觀測中的 Process 的 fs? - 呼叫 arch_prctl 6 Ref: https://fasterthanli.me/series/making-our-own-executable-packer/part-13
TLS - Pwngdb 有實作取得 TLS 的功能 - 閱讀一下怎麼實作的, 發現其實一樣 -
https://github.com/scwuaptx/Pwngdb/blob/master/pwndbg/pwngdb.py#L77 7
TLS Demo 8
More Decks by LJP-TW
See All by LJP-TW
Reverse Engineering - 1
ljptw
0
2k
Reverse Engineering - 2
ljptw
0
890
Reverse Engineering - 3
ljptw
0
700
Re:0 從零開始的逆向工程
ljptw
1
1.4k
Linux 極入門篇
ljptw
1
370
Fuzzing 101
ljptw
1
300
Binary Exploitation - File Structure
ljptw
1
410
Binary Exploitation - Heap
ljptw
1
250
Binary Exploitation - Basic
ljptw
1
200
Other Decks in Technology
See All in Technology
Microsoft Entra Kerberos で実現するクラウド デバイス管理
tamaiyutaro
2
680
AWS基盤改善を支える 私たちの理念と行動指針
kentosuzuki
0
210
E2E Test というハーネス — AI時代の自動テスト民主化
daishukojima
1
400
長い仕事を任せる (Workflows、クラウドセッション、Kiro Web) | 目指せ Kiro マスター 10
inariku
PRO
3
180
AWSを利用する上で知っておきたい名前解決の話 2026
nagisa53
5
3.6k
bpf_arenaとstruct_opsを使うのが難しかった話
masu_mi
0
230
ゼロから作るWebアプリの新定番!?Amplify Gen 2 × AWS Blocksで実現する「開発速度とRDBの柔軟性のいいとこ取り」
amixedcolor
1
250
Go初心者のクラウドエンジニアが、デプロイを通して旨味を知っていく話
ryudai
1
200
少ない人手 限られた予算 それでも守る 消せない・見つける・戻れる オールハザード型BCP on AWS / 20261107 Mitsutoshi Matsuo
shift_evolve
PRO
0
370
「AIチャットからもできないの?」と言われたら ~業務アプリをMCP対応するときの認証・認可の勘所
oidfj
0
320
Kiro IDE 入門 (画面の各部から、頼み方、任せ方、戻し方まで) | 目指せ Kiro マスター 02
inariku
PRO
4
230
プロダクションコードにおける encoding/json から encoding/json/v2 へのスムーズな移行
sansantech
PRO
1
410
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Accessibility Awareness
sabderemane
1
300
Highjacked: Video Game Concept Design
rkendrick25
PRO
2
570
Visualization
eitanlees
153
17k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
Deep Space Network (abreviated)
tonyrice
0
410
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
880
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.5k
Side Projects
sachag
456
43k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
60k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.3k