Submit Search
MCC CTF講習会 pwn編2
4 likes
1,455 views
H
hama7230
その2です。
Engineering
Read more
1 of 11
Download now
Downloaded 17 times
1
2
3
4
5
6
7
8
9
10
11
More Related Content
PDF
MCC CTF講習会 pwn編
hama7230
PDF
LUCENE-5252 NGramSynonymTokenizer
Koji Sekiguchi
PPTX
みんなのはんなりPython勉強会
hiroya akita
PDF
Rnn+lstmを理解する
Arata Honda
PPTX
RNNLM
Kei Uchiumi
ODP
mlabCTFの話
nomuken
PPTX
Pylm public
Kei Uchiumi
PDF
dl-with-python01_handout
Shin Asakawa
MCC CTF講習会 pwn編
hama7230
LUCENE-5252 NGramSynonymTokenizer
Koji Sekiguchi
みんなのはんなりPython勉強会
hiroya akita
Rnn+lstmを理解する
Arata Honda
RNNLM
Kei Uchiumi
mlabCTFの話
nomuken
Pylm public
Kei Uchiumi
dl-with-python01_handout
Shin Asakawa
Featured
(20)
PDF
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
PDF
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
PDF
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
PDF
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
PDF
2024 State of Marketing Report – by Hubspot
Marius Sescu
PDF
Everything You Need To Know About ChatGPT
Expeed Software
PDF
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
PDF
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
PDF
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
PDF
Skeleton Culture Code
Skeleton Technologies
PDF
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
PDF
Content Methodology: A Best Practices Report (Webinar)
contently
PPTX
How to Prepare For a Successful Job Search for 2024
Albert Qian
PDF
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
PDF
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
PDF
5 Public speaking tips from TED - Visualized summary
SpeakerHub
PDF
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
PDF
Getting into the tech field. what next
Tessa Mero
PDF
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
PDF
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Ad
MCC CTF講習会 pwn編2
1.
MCC CTF講習会 ー pwn編2
ー 2017/07/10 @TUAT hama (@hama7230)
2.
⾃⼰紹介 ´hama (@hama7230) ´CTFは趣味 ´TokyoWesterns l pwn担当 ´最近、pwnの基礎基本 が分かってきような気 がする程度の実⼒ 1
3.
最初に注意 今⽇の内容を、許可されていないシ ステムに対して実⾏は犯罪です やるならCTFでやりましょう 2
4.
今⽇と来週の内容 ´先週の内容 1. 簡単なCTFの説明 2. 簡単なpwnの説明 3.
pwnのやり⽅ 4. 軽く実践 ´今⽇の予定 1. 簡単なテクニックの紹介 2. とにかく実践 3
5.
初⼼者向けテクニック集 ´pwnはある領域をoverwriteすることに よって制御を奪うジャンル l 例外はあります(Ex. Race
Condition) ´では、どこを書き換えると制御を奪える のか? l 今⽇はよくあるテクニック、攻め筋を紹介 4
6.
eip(rip)を奪う⼿法 ´eip(rip)は実⾏している命令のアドレス を指すレジスタ l このレジスタを任意に制御したい l あるところを書き換えると制御を奪える 5
7.
Return Address Overwrite ´return
address overwrite l スタックにあるリターンアドレスを書き換える l 関数の終わりに制御を奪える l 任意の箇所に制御を移せるのでシェルコードへ ジャンプ l ret2plt, ret2libcなどのROPに繋がって⾏く ´StackでのBuffer OverFlowがある場合狙 える ´canaryがある場合は注意 l canaryのleakが必要 6
8.
GOT Overwrite ´解決したライブラリ関数のアドレスを保 持しておくのがGlobal Offset
Table ´GOTを書き換えておくと、その関数が呼 ばれたときに制御を奪える ´ユーザの⼊⼒をそのまま渡すatoi(), strlen()などをsystem()に書き換えるパ ターンはよく使う 7
9.
.fini_array Overwrite ´main関数が終了した後に呼ぶ処理のア ドレスは、.fini_arrayに格納する ´ここを書き換えてくと、main関数終了 後に制御を奪える 8
10.
.fini_array Overwrite ´スクショだと、.fini_arrayは0x8049ec0 ´writableなので書き込み可能 9
11.
_IO_jump_t Overwrite ´stdinやstdoutの実体はFILE構造体 ´FILE構造体は関数テーブルのポインタ を持っている ´関数テーブルのポインタを書き換えるか、 stdin/stdout/stderrの指す先を書き換 えて偽造すれば制御を奪える 10
Download