Yuki's Blog

2024 AEGIS 神盾盃 Writeup

14th September 2024
Writeup
Last updated:30th December 2025
1 Minutes
195 Words

隊名: 從缺 rk.13

我只解出一題,我超廢,隊友超給力!

default

REV - Calculator

先用 die 看一下用啥寫的,很好,C#

default

用 dnspy 看一下寫了啥東西,這邊看起來就怪怪的,有藏一些東西在裡面

default

把這段 code 直接塞上去 online compiler,直接出 flag

code(整理過的):

1
using System;
2
3
using System.Text;
4
5
public class HelloWorld
6
{
7
public static void Main(string[] args)
8
{
9
string text3 = "1565023222387235312162663";
10
string text4 = string.Format("{0}", (long.Parse(text3.Substring(0, 5)) ^ 56L) + 65681531L) + string.Format("{0}", (long.Parse(text3.Substring(5, 4)) ^ 8L) + 83121454L) + string.Format("{0}", (long.Parse(text3.Substring(9, 8)) ^ 56L) + 65681531L) + string.Format("{0}", (long.Parse(text3.Substring(17, 8)) ^ 8L) + 83121454L);
11
int[] array = new int[]
12
{
13
2,
14
2,
15
2,
26 collapsed lines
16
2,
17
2,
18
3,
19
2,
20
2,
21
2,
22
2,
23
2,
24
2,
25
2,
26
2,
27
3
28
};
29
StringBuilder stringBuilder = new StringBuilder();
30
int num = 0;
31
foreach (int num2 in array)
32
{
33
string s = text4.Substring(num, num2);
34
int num3 = int.Parse(s);
35
char value = (char)num3;
36
stringBuilder.Append(value);
37
num += num2;
38
}
39
Console.WriteLine (stringBuilder.ToString());
40
}
41
}

flag: AEGIS{N0_5WE4T}

Article title:2024 AEGIS 神盾盃 Writeup
Article author:Yuki
Release time:14th September 2024