Skip to content

Commit 363d048

Browse files
committed
hitcon-2021
1 parent 559296d commit 363d048

File tree

40 files changed

+1884
-0
lines changed

40 files changed

+1884
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,18 @@ These challenges are created by me so there're scripts for creating them.
165165
* SOP (rev 305pts)
166166
* 11011001 (rev 255pts)
167167

168+
## hitcon-2021
169+
170+
These challenges are created by me so there're scripts for creating them.
171+
172+
* cclemon (reverse 271pts)
173+
* chaos-firmware ([crypto|pwn]+ 334pts)
174+
* chaos-kernel ([crypto|pwn]+ 421pts)
175+
* chaos-sandbox ([crypto|pwn]+ 450pts)
176+
* dtb (misc, pwn 450pts)
177+
* dtcaas (pwn 450pts)
178+
* mercy (reverse 305pts)
179+
* uml (pwn 265pts)
168180

169181
## meepwnctf-2018
170182

hitcon-2021/cclemon/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Description
2+
3+
Speak in 🍋
4+
5+
cclemon-be19d8500ca1917d192d32c35a22d089f6c94859
6+
7+
Author: david942j
8+
9+
24 Teams solved.

hitcon-2021/cclemon/release/assembly

Lines changed: 269 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,269 @@
1+
0: const 26 ; <module 'src'>
2+
5: module 15 833
3+
11: const 27 ; 68694329
4+
16: store 0 0
5+
19: const 28 ; w
6+
24: define 0 0 0 0 59
7+
33: load 1 0
8+
36: const 29 ; 1259409
9+
41: mul
10+
42: const 30 ; 321625345
11+
47: add
12+
48: const 31 ; 4294967296
13+
53: mod
14+
54: dup
15+
55: store 1 0
16+
58: return
17+
59: store 0 1
18+
62: const 32 ; n
19+
67: const 33 ; __init__
20+
72: define 0 0 1 2 157
21+
81: array 0
22+
86: self
23+
87: const 34 ; a
24+
92: setattr
25+
93: const 35 ; 0
26+
98: store 0 1
27+
101: load 0 1
28+
104: load 0 0
29+
107: lt
30+
108: jz 151
31+
113: self
32+
114: const 34 ; a
33+
119: getattr
34+
120: const 36 ; append
35+
125: getattr
36+
126: load 1 1
37+
129: call 0
38+
131: call 1
39+
133: pop
40+
134: load 0 1
41+
137: const 37 ; 1
42+
142: add
43+
143: store 0 1
44+
146: jmp 101
45+
151: const 38 ; nil
46+
156: return
47+
157: const 33 ; __init__
48+
162: const 39 ; x
49+
167: const 40 ; y
50+
172: const 41 ; r
51+
177: define 0 0 2 2 277
52+
186: load 0 0
53+
189: load 0 1
54+
192: gt
55+
193: jz 214
56+
198: self
57+
199: const 41 ; r
58+
204: getattr
59+
205: load 0 0
60+
208: load 0 1
61+
211: tailcall 2
62+
213: return
63+
214: load 0 0
64+
217: load 0 1
65+
220: lt
66+
221: jz 271
67+
226: self
68+
227: const 42 ; s
69+
232: getattr
70+
233: load 0 1
71+
236: load 0 0
72+
239: call 2
73+
241: pop
74+
242: load 0 0
75+
245: const 37 ; 1
76+
250: add
77+
251: store 0 0
78+
254: load 0 1
79+
257: const 37 ; 1
80+
262: sub
81+
263: store 0 1
82+
266: jmp 214
83+
271: const 38 ; nil
84+
276: return
85+
277: const 41 ; r
86+
282: const 39 ; x
87+
287: const 40 ; y
88+
292: const 42 ; s
89+
297: define 0 0 2 3 362
90+
306: self
91+
307: const 34 ; a
92+
312: getattr
93+
313: load 0 0
94+
316: getitem
95+
317: store 0 2
96+
320: self
97+
321: const 34 ; a
98+
326: getattr
99+
327: load 0 1
100+
330: getitem
101+
331: self
102+
332: const 34 ; a
103+
337: getattr
104+
338: load 0 0
105+
341: setitem
106+
342: load 0 2
107+
345: self
108+
346: const 34 ; a
109+
351: getattr
110+
352: load 0 1
111+
355: setitem
112+
356: const 38 ; nil
113+
361: return
114+
362: const 42 ; s
115+
367: const 39 ; x
116+
372: const 40 ; y
117+
377: const 43 ; val
118+
382: const 44 ; o
119+
387: define 0 0 3 4 494
120+
396: load 0 0
121+
399: load 0 1
122+
402: gt
123+
403: jz 427
124+
408: self
125+
409: const 44 ; o
126+
414: getattr
127+
415: load 0 2
128+
418: load 0 0
129+
421: load 0 1
130+
424: tailcall 3
131+
426: return
132+
427: load 0 0
133+
430: store 0 3
134+
433: load 0 3
135+
436: load 0 1
136+
439: le
137+
440: jz 488
138+
445: self
139+
446: const 34 ; a
140+
451: getattr
141+
452: load 0 3
142+
455: getitem
143+
456: load 0 2
144+
459: bxor
145+
460: self
146+
461: const 34 ; a
147+
466: getattr
148+
467: load 0 3
149+
470: setitem
150+
471: load 0 3
151+
474: const 37 ; 1
152+
479: add
153+
480: store 0 3
154+
483: jmp 433
155+
488: const 38 ; nil
156+
493: return
157+
494: const 44 ; o
158+
499: const 45 ; A
159+
504: class 8 0
160+
507: store 0 2
161+
510: const 46 ; 200000
162+
515: store 0 7
163+
518: load 0 2
164+
521: load 0 7
165+
524: call 1
166+
526: store 0 8
167+
529: const 35 ; 0
168+
534: store 0 9
169+
537: load 0 9
170+
540: load 0 7
171+
543: const 47 ; 5
172+
548: mul
173+
549: lt
174+
550: jz 727
175+
555: load 0 1
176+
558: call 0
177+
560: const 48 ; 3
178+
565: mod
179+
566: store 0 10
180+
569: load 0 1
181+
572: call 0
182+
574: load 0 7
183+
577: mod
184+
578: store 0 11
185+
581: load 0 1
186+
584: call 0
187+
586: load 0 7
188+
589: mod
189+
590: store 0 12
190+
593: load 0 10
191+
596: const 35 ; 0
192+
601: eq
193+
602: jz 630
194+
607: load 0 8
195+
610: const 41 ; r
196+
615: getattr
197+
616: load 0 12
198+
619: load 0 11
199+
622: call 2
200+
624: pop
201+
625: jmp 710
202+
630: load 0 10
203+
633: const 37 ; 1
204+
638: eq
205+
639: jz 667
206+
644: load 0 8
207+
647: const 42 ; s
208+
652: getattr
209+
653: load 0 12
210+
656: load 0 11
211+
659: call 2
212+
661: pop
213+
662: jmp 710
214+
667: load 0 10
215+
670: const 49 ; 2
216+
675: eq
217+
676: jz 710
218+
681: load 0 1
219+
684: call 0
220+
686: store 0 13
221+
689: load 0 8
222+
692: const 44 ; o
223+
697: getattr
224+
698: load 0 13
225+
701: load 0 12
226+
704: load 0 11
227+
707: call 3
228+
709: pop
229+
710: load 0 9
230+
713: const 37 ; 1
231+
718: add
232+
719: store 0 9
233+
722: jmp 537
234+
727: const 35 ; 0
235+
732: store 0 14
236+
735: const 35 ; 0
237+
740: store 0 9
238+
743: load 0 9
239+
746: load 0 7
240+
749: lt
241+
750: jz 802
242+
755: load 0 14
243+
758: load 0 8
244+
761: const 34 ; a
245+
766: getattr
246+
767: load 0 9
247+
770: getitem
248+
771: load 0 9
249+
774: const 37 ; 1
250+
779: add
251+
780: mul
252+
781: add
253+
782: store 0 14
254+
785: load 0 9
255+
788: const 37 ; 1
256+
793: add
257+
794: store 0 9
258+
797: jmp 743
259+
802: const 23 ; <function 'print'>
260+
807: const 50 ; hitcon{
261+
812: load 0 14
262+
815: const 51 ; __string__
263+
820: getattr
264+
821: call 0
265+
823: add
266+
824: const 52 ; }
267+
829: add
268+
830: call 1
269+
832: pop

0 commit comments

Comments
 (0)