Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
NISRA fun with burp suite
Search
Yun Chen
October 21, 2014
Technology
1
200
NISRA fun with burp suite
have fun with burp suite and package
Yun Chen
October 21, 2014
Tweet
Share
More Decks by Yun Chen
See All by Yun Chen
How we build microservices with Kubernetes & Kafka
chenyunchen
3
380
Redis Lua Script With Red Envelope & Message Queue
chenyunchen
0
600
Kubernetes Library with client-go
chenyunchen
0
410
[Graduate Project] Drupal Upgrade & Docker Deploy
chenyunchen
0
140
WECO Porject
chenyunchen
0
84
From Python Import Fun
chenyunchen
0
400
Docker
chenyunchen
2
190
Vim
chenyunchen
0
160
Fun with programming
chenyunchen
0
150
Other Decks in Technology
See All in Technology
VPoE Meetup Vol.1 VPoEとして実践してきたことと反省点
coconala_engineer
2
180
APIs for AI: Have we failed?
zdne
0
130
最新のWasm事情
askua
5
2.5k
自然言語処理を役立てるのはなぜ難しいのか
pfn
PRO
17
4.5k
Japan AWS Jr. Championsがお届けする、アウトプットのすすめ
hamijay_cloud
0
210
本番のトラフィック量でHudiを検証して見えてきた課題
joker1007
2
270
とある事業会社にとっての Kaggler の魅力
hakubishin3
7
1.6k
今日から始める技術的負債の解消
leveragestech
3
460
WSUSが非推奨に!? Windowsの更新管理を改めて勉強する!
ebibibi
0
580
Bluesky 2019〜2022
yamarten
1
120
안드로이드 기술 이력서의 최소 조건
pluu
1
1.1k
俺とVSCode Python Debugger Extension
sat
PRO
1
150
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.8k
Designing on Purpose - Digital PM Summit 2013
jponch
114
6.9k
[RailsConf 2023] Rails as a piece of cake
palkan
49
4.8k
How to train your dragon (web standard)
notwaldorf
88
5.6k
Embracing the Ebb and Flow
colly
84
4.4k
Agile that works and the tools we love
rasmusluckow
327
21k
10 Git Anti Patterns You Should be Aware of
lemiorhan
653
59k
Six Lessons from altMBA
skipperchong
26
3.4k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
22k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.6k
Facilitating Awesome Meetings
lara
49
6k
Typedesign – Prime Four
hannesfritz
39
2.4k
Transcript
封包攻防實戰篇 Yun Chen
Who am I? Chen - Yun Chen (陳允禎) 資⼯工三⼄乙 NISRA
核⼼心幹部 Slide-Now Web 前端⼯工程師 實習⽣生 ⺫⽬目前以編寫Python與JavaScript(node.js)為主
[email protected]
http://about.me/chenyunchen
封包到底做了什麼? 快速Review 不少攻擊⼿手法都脫不了關係
SYN封包 (嗨! 服務可以⽤用嗎?) SYN‧ACK封包 (對! 歡迎~)
SYN封包 (嗨! 服務可以⽤用嗎?) SYN‧ACK封包 (對! 歡迎~) 如果TCP做⼀一半? . . .
等⼀一下好了 ???
SYN封包 (嗨! 服務可以⽤用嗎?) ⼀一直發⼀一直發⼀一直發⼀一直發 等⼀一下好了 等⼀一下好了 等⼀一下好了 等⼀一下好了 等⼀一下好了 等⼀一下好了
等⼀一下好了 等⼀一下好了 等⼀一下好了 SYN封包 (嗨! 服務可以⽤用嗎?) SYN封包 (嗨! 服務可以⽤用嗎?) SYN封包 (嗨! 服務可以⽤用嗎?) SYN封包 (嗨! 服務可以⽤用嗎?) SYN封包 (嗨! 服務可以⽤用嗎?) SYN封包 (嗨! 服務可以⽤用嗎?)
None
SYN封包 (嗨! 服務可以⽤用嗎?) SYN‧ACK封包 (對! 歡迎~) ACK封包 (我要查AXO.pdf資料) ACK封包 (AXO.pdf)
SYN SYN‧ACK ACK封包 (我要查AXO.pdf資料) ACK封包 (AXO.pdf) 稍後⽰示意圖以傳輸的資料為主
本次課程需事先準備 Firefox及其附加元件: Cookies Manager+ FoxyProxy Standard HackBar Burp Suite OSX版需另安裝XQuartz
None
Now … Let’s begin… http://beef.nisra.net:8000
Level 1 FoxyProxy Standard + Burpsuite
全國⼤大專院校戲劇短⽚片⽐比賽 案例1:
封包 (我是XXX要投給id:1) 封包 (XXX沒投票過 ok)
網站對於已登⼊入的使⽤用者 僅使⽤用該登⼊入者姓名判斷是否投過票 瘋狂發送修改過姓名的封包 開發者應該要在後端確認是否為該⽤用⼾戶 每次投票也應該與資料庫⽐比對該⽤用⼾戶是否存在 * 此競賽並無獎⾦金 僅頭銜 … 隨便⼼心態?
灌票Work!
改喵星⼈人id(改照⽚片順序)?
照⽚片會換怎麼辦?
加⼊入會員? 信箱?
⾃自動化 + 程式處理?
CAPTCHA ?
知道有問題 核票都⼈人⼯工!? 愛⾃自⼰己不如愛你的敵⼈人XD
Level 2 No Hint
雄獅攝影⾵風俗⺠民情⽐比賽 案例2:
第三⽅方登⼊入 將⽤用⼾戶資料存⼊入Cookies 確認授權 取得⽤用⼾戶資料 我要投給id:1 這是我的Cookies Cookies的資料沒投過 kook
網站對於Facebook的使⽤用者 僅將登⼊入資訊存於cookies並對fb_id做判斷 瘋狂發送修改過cookies 對灌票者來說Facebook登⼊入⼀一直很頭痛 然後此網站卻將登⼊入資料丟回前端 並以cookies做檢查 有點多此⼀一舉的感覺 灌票Work! * 猜測開發者應該還不會Oauth2授權認證...
切記! ⾦金錢相關不要動! 灌票、遊戲玩玩⾃自嗨就好 出事⼀一點也不好笑
Level 3 No Hint
封包 (我要玩編號id:1的任務) 封包 (這是你和怪物的隊伍資料) (另外這是這次玩掉落的道具) 封包 (我消滅Boss 過關了) 封包 (資料符合獎勵放到帳號了)
Level 4 兩個Hash加密 32碼:最後有兩個== Hash 改完記得等級也要改才打得贏... 送出格式 “hash”: “decode1:decode2”
封包 (我要玩編號id:1的任務) 封包 (這是你和怪物的隊伍資料) (另外這是這次玩掉落的道具) 封包 (我消滅Boss 過關了) 封包 (資料符合獎勵放到帳號了)
Server Hash Client Hash
Level 5 Use all you learn and challenge!
逆向⼯工程 反組譯apk檔 分析原始碼取得GetHash
少林-神魔之搭脫機戰⾾鬥 http://goo.gl/UCJMrR
有注意發送的資料格式嗎?
None
網路發送資料的格式 今天你只能發送⼀一個變數資料到網路上...多個會讓你 的服務變很慢~~就沒⼈人想⽤用了 C 表⽰示 我可以⽤用 struct{ string name; int
id; } Java 表⽰示 我可以⽤用 class{ string name; int id; } 其它語⾔言 Dictionary List…etc 沒有共同資料格式 只好打⼀一架來決定⽤用哪種
JSON / XML
怪物資料 monster.json http://goo.gl/CnGHlv *⼩小弟造⼝口業太兇 流出去可能會被學⻑⾧長宰了XD
Q & A