phdays ctf 2014 final

24
PHDays CTF 2014 Final Max Moroz June 07, 2014

Upload: max-moroz

Post on 16-Jun-2015

513 views

Category:

Technology


4 download

DESCRIPTION

Short review of Positive Hack Days CTF 2014 Final by BalalaikaCr3w team.

TRANSCRIPT

Page 1: PHDays CTF 2014 Final

PHDays CTF 2014 FinalMax Moroz

June 07, 2014

Page 2: PHDays CTF 2014 Final

whoami

Max Moroz

Captain Job: C++, Objective-C, Java Freelance: pentesting Interests: crypto, forensic, misc

BalalaikaCr3w

Page 3: PHDays CTF 2014 Final

./teaminfo

Page 4: PHDays CTF 2014 Final

which CTF

Page 5: PHDays CTF 2014 Final

which CTF

Page 6: PHDays CTF 2014 Final

which CTF

Page 7: PHDays CTF 2014 Final

which CTF

Page 8: PHDays CTF 2014 Final

cat rules.txt

Page 9: PHDays CTF 2014 Final

• Ubuntu 14.04• services:

– cardbook (:1234)

= 12 × 3– mobol (:3123)

= 24 × 2– holynet (:80)

= 48 × 1

#PREPARE TO BATTLE

Page 10: PHDays CTF 2014 Final

./tribute –to=SecurityFirst

Page 11: PHDays CTF 2014 Final

• tcpdump –A port 80 | grep ‘\w\{32\}’ | nc $VODKA• tcpdump –A port 1234 | grep ‘\w\{32\}’| nc $VODKA• tcpdump –A port 3123 | grep ‘\w\{32\}’ | nc $VODKA

#P0WN3R ACHIEVEMENT UNLOCKED

Page 12: PHDays CTF 2014 Final

DEBUG:root:new game!DEBUG:root:suits in game: ['S', 'D', 'C', 'H', 'E', 'A', 'T', 'Z']DEBUG:root:received cards: set(['2ofE', 'AofD', '6ofA', 'KofH', '3ofA', '10ofT', '5ofH', '4ofH', '9ofH', '6ofS', 'AofT', 'AofZ', 'JofC', 'QofH', '3ofT', '4ofD', '8ofC'])DEBUG:root:state is 0, hand is 2ofE AofD 6ofA KofH 3ofA 10ofT 5ofH 4ofH 9ofH 6ofS AofT AofZ JofC QofH 3ofT 4ofD 8ofCDEBUG:root:Received: INFO: players in this session: [0, 2, 4, 5, 6, 7]<…>DEBUG:root:Received: TRICK SUCCEEDEDDEBUG:root:state is 0, hand is DEBUG:root:Received: INFO: new roundDEBUG:root:state is 0, hand is DEBUG:root:Received: END. WIN! Take your prizes: b1bbee3e61d9dbd2b808b9d6efc55ac6 2f00f06026cdabe99c09725431b84064 4ba4c7f5f44563c73be0a436f0474a4f ae2c9ce87ddafa1d8eb715eee6e61f4f c62c93363e933111a4dd502477b8d386 3dbf50201f9bc2e5b4d7d2f268b2e868 1f958958cead352be5810b49ca5ca378 8ba6516044e9926822a6dc85bdee591f e762d36f93384a29140f70c73d45e398 655cfa6d598710475734e50212d6ef5aDEBUG:root:game ended, I won

./cardbook

• tail –f cardbook-stderr.log | grep ‘\w\{32\}’ | nc $VODKA

Page 13: PHDays CTF 2014 Final

./mobol

Page 14: PHDays CTF 2014 Final

./exploit_mobol –thanks-to=bay

Page 15: PHDays CTF 2014 Final

./holynet

Page 16: PHDays CTF 2014 Final

./exploit_holynet

Page 17: PHDays CTF 2014 Final

VODKA

FLAGS STATISTICS:

Flags found: 4426

Successfully sent: 1249

Waiting for resend: 85

Bad flags: 0

All FlagsSubmitted

./vodka --stat

Page 18: PHDays CTF 2014 Final

cat game_economics.txt

Task Name Reward (gold) Price (Power) Price (Armor) Price (Fuel)crackme 1000 15 0 0

breadcrumbs 2500 12 16 1musicforsoul 2500 15 4 6

mars2 2000 22 6 0holygrail 2000 13 2 5

homepage 2500 4 8 8doubleshizo 3000 0 21 5

oracle2 5000 19 27 6mooditter 5000 64 5 2

pyhtonisback 1000 14 1 0tera 2000 4 9 7

packIt9000 5000 4 7 21Wolfram|ɛπτα 2000 18 5 2

lockpicking 2000 15 5 3my favorite sequel 4000 8 22 7

schoolmath 2000 1 14 3Total 43500 228 152 76

Gold from selling   3648 3648 3648

Page 19: PHDays CTF 2014 Final

cat game_economics.txt

Task Name Reward (gold) Price (Power) Price (Armor) Price (Fuel)crackme 1000 15 0 0

breadcrumbs 2500 12 16 1musicforsoul 2500 15 4 6

mars2 2000 22 6 0holygrail 2000 13 2 5

homepage 2500 4 8 8doubleshizo 3000 0 21 5

oracle2 5000 19 27 6mooditter 5000 64 5 2

pyhtonisback 1000 14 1 0tera 2000 4 9 7

packIt9000 5000 4 7 21Wolfram|ɛπτα 2000 18 5 2

lockpicking 2000 15 5 3my favorite sequel 4000 8 22 7

schoolmath 2000 1 14 3Total 43500 228 152 76

Gold from selling   3648 3648 3648

Page 20: PHDays CTF 2014 Final

./WASTED

Page 21: PHDays CTF 2014 Final

cat game_economics.txt

Task Name Reward (gold) Price (Power) Price (Armor) Price (Fuel)crackme 1000 15 0 0

breadcrumbs 2500 12 16 1musicforsoul 2500 15 4 6

mars2 2000 22 6 0holygrail 2000 13 2 5

homepage 2500 4 8 8doubleshizo 3000 0 21 5

oracle2 5000 19 27 6mooditter 5000 64 5 2

pyhtonisback 1000 14 1 0tera 2000 4 9 7

packIt9000 5000 4 7 21Wolfram|ɛπτα 2000 18 5 2

lockpicking 2000 15 5 3my favorite sequel 4000 8 22 7

schoolmath 2000 1 14 3Total 43500 228 152 76

Gold from selling   3648 3648 3648

Page 22: PHDays CTF 2014 Final

./balance

Page 23: PHDays CTF 2014 Final

echo $SCOREBOARD

Page 24: PHDays CTF 2014 Final

sudo halt

@dor3smax.moroz.1337

http://[email protected]