NewStarCTF2023 C?C++?
dnspy打开 直接逆向即可
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
signed main(){
string text2="NEWSTAR";
int array[] = {68, 75, 66, 72, 99, 19, 19, 78, 83, 74,
91, 86, 35, 39, 77, 85, 44, 89, 47, 92,
49, 88, 48, 91, 88, 102, 105, 51, 76, 115,
-124, 125, 79, 122, -103};
int num=35;
for(int k=6;k>=0;k--){
int num8=k+28;
array[num8]-=text2[k] / '\u0005' + '\n';
int num7 = k + 21;
array[num7] -= (char)(k ^ 2);
int num6 = k + 14;
array[num6] -= (char)(2 * k);
int num5 = k + 7;
array[num5] -= text2[k] % '\u0005';
int num4 = k;
array[num4] -= (char)(k ^ (int)(-(int)(text2[k] % '\u0004')));
}
for(int j=num-1;j>=0;j--){
array[j]+=' ';
array[j]-=char(j);
}
for(int i=0;i<num;i++){
cout<<char(array[i]);
}
}