ADD week 3
This commit is contained in:
0
01-VeryEasy3/VE3.gpr
Normal file
0
01-VeryEasy3/VE3.gpr
Normal file
11
01-VeryEasy3/VE3.rep/idata/00/00000000.prp
Normal file
11
01-VeryEasy3/VE3.rep/idata/00/00000000.prp
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<FILE_INFO>
|
||||
<BASIC_INFO>
|
||||
<STATE NAME="CONTENT_TYPE" TYPE="string" VALUE="Program" />
|
||||
<STATE NAME="PARENT" TYPE="string" VALUE="/" />
|
||||
<STATE NAME="FILE_ID" TYPE="string" VALUE="a2e40c5a22540267163090739" />
|
||||
<STATE NAME="FILE_TYPE" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="READ_ONLY" TYPE="boolean" VALUE="false" />
|
||||
<STATE NAME="NAME" TYPE="string" VALUE="VE3" />
|
||||
</BASIC_INFO>
|
||||
</FILE_INFO>
|
BIN
01-VeryEasy3/VE3.rep/idata/00/~00000000.db/db.2.gbf
Normal file
BIN
01-VeryEasy3/VE3.rep/idata/00/~00000000.db/db.2.gbf
Normal file
Binary file not shown.
4
01-VeryEasy3/VE3.rep/idata/~index.bak
Normal file
4
01-VeryEasy3/VE3.rep/idata/~index.bak
Normal file
@ -0,0 +1,4 @@
|
||||
VERSION=1
|
||||
/
|
||||
NEXT-ID:0
|
||||
MD5:d41d8cd98f00b204e9800998ecf8427e
|
5
01-VeryEasy3/VE3.rep/idata/~index.dat
Normal file
5
01-VeryEasy3/VE3.rep/idata/~index.dat
Normal file
@ -0,0 +1,5 @@
|
||||
VERSION=1
|
||||
/
|
||||
00000000:VE3:a2e40c5a22540267163090739
|
||||
NEXT-ID:1
|
||||
MD5:d41d8cd98f00b204e9800998ecf8427e
|
2
01-VeryEasy3/VE3.rep/idata/~journal.bak
Normal file
2
01-VeryEasy3/VE3.rep/idata/~journal.bak
Normal file
@ -0,0 +1,2 @@
|
||||
IADD:00000000:/VE3
|
||||
IDSET:/VE3:a2e40c5a22540267163090739
|
6
01-VeryEasy3/VE3.rep/project.prp
Normal file
6
01-VeryEasy3/VE3.rep/project.prp
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<FILE_INFO>
|
||||
<BASIC_INFO>
|
||||
<STATE NAME="OWNER" TYPE="string" VALUE="remi" />
|
||||
</BASIC_INFO>
|
||||
</FILE_INFO>
|
15
01-VeryEasy3/VE3.rep/projectState
Normal file
15
01-VeryEasy3/VE3.rep/projectState
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<PROJECT>
|
||||
<PROJECT_DATA_XML_NAME NAME="DISPLAY_DATA">
|
||||
<SAVE_STATE>
|
||||
<ARRAY NAME="EXPANDED_PATHS" TYPE="string">
|
||||
<A VALUE="VE3:" />
|
||||
</ARRAY>
|
||||
<STATE NAME="SHOW_TABLE" TYPE="boolean" VALUE="false" />
|
||||
</SAVE_STATE>
|
||||
</PROJECT_DATA_XML_NAME>
|
||||
<TOOL_MANAGER ACTIVE_WORKSPACE="Workspace">
|
||||
<WORKSPACE NAME="Workspace" ACTIVE="true" />
|
||||
</TOOL_MANAGER>
|
||||
</PROJECT>
|
||||
|
11
01-VeryEasy3/VE3.rep/user/00/00000000.prp
Normal file
11
01-VeryEasy3/VE3.rep/user/00/00000000.prp
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<FILE_INFO>
|
||||
<BASIC_INFO>
|
||||
<STATE NAME="CONTENT_TYPE" TYPE="string" VALUE="ProgramUserData" />
|
||||
<STATE NAME="PARENT" TYPE="string" VALUE="/" />
|
||||
<STATE NAME="FILE_ID" TYPE="string" VALUE="a2e40c594c340888329008539" />
|
||||
<STATE NAME="FILE_TYPE" TYPE="int" VALUE="0" />
|
||||
<STATE NAME="READ_ONLY" TYPE="boolean" VALUE="false" />
|
||||
<STATE NAME="NAME" TYPE="string" VALUE="udf_a2e40c5a22540267163090739" />
|
||||
</BASIC_INFO>
|
||||
</FILE_INFO>
|
BIN
01-VeryEasy3/VE3.rep/user/00/~00000000.db/db.1.gbf
Normal file
BIN
01-VeryEasy3/VE3.rep/user/00/~00000000.db/db.1.gbf
Normal file
Binary file not shown.
4
01-VeryEasy3/VE3.rep/user/~index.bak
Normal file
4
01-VeryEasy3/VE3.rep/user/~index.bak
Normal file
@ -0,0 +1,4 @@
|
||||
VERSION=1
|
||||
/
|
||||
NEXT-ID:0
|
||||
MD5:d41d8cd98f00b204e9800998ecf8427e
|
5
01-VeryEasy3/VE3.rep/user/~index.dat
Normal file
5
01-VeryEasy3/VE3.rep/user/~index.dat
Normal file
@ -0,0 +1,5 @@
|
||||
VERSION=1
|
||||
/
|
||||
00000000:udf_a2e40c5a22540267163090739:a2e40c594c340888329008539
|
||||
NEXT-ID:1
|
||||
MD5:d41d8cd98f00b204e9800998ecf8427e
|
2
01-VeryEasy3/VE3.rep/user/~journal.bak
Normal file
2
01-VeryEasy3/VE3.rep/user/~journal.bak
Normal file
@ -0,0 +1,2 @@
|
||||
IADD:00000000:/udf_a2e40c5a22540267163090739
|
||||
IDSET:/udf_a2e40c5a22540267163090739:a2e40c594c340888329008539
|
4
01-VeryEasy3/VE3.rep/versioned/~index.bak
Normal file
4
01-VeryEasy3/VE3.rep/versioned/~index.bak
Normal file
@ -0,0 +1,4 @@
|
||||
VERSION=1
|
||||
/
|
||||
NEXT-ID:0
|
||||
MD5:d41d8cd98f00b204e9800998ecf8427e
|
4
01-VeryEasy3/VE3.rep/versioned/~index.dat
Normal file
4
01-VeryEasy3/VE3.rep/versioned/~index.dat
Normal file
@ -0,0 +1,4 @@
|
||||
VERSION=1
|
||||
/
|
||||
NEXT-ID:0
|
||||
MD5:d41d8cd98f00b204e9800998ecf8427e
|
8
01-VeryEasy3/VE3.txt
Normal file
8
01-VeryEasy3/VE3.txt
Normal file
@ -0,0 +1,8 @@
|
||||
1. What is the target platform of this executable?
|
||||
ARM32
|
||||
|
||||
2. Was this executable stripped?
|
||||
no
|
||||
|
||||
3. What is the secret password hardcoded into this executable? You must send this value by email to pascal+sre25@mod-p.ch before Mar. 10th, 2025, 12h00 CET to validate this lab and get 1 point.
|
||||
33X5yPBehep4
|
52
01-VeryEasy3/code.c
Normal file
52
01-VeryEasy3/code.c
Normal file
@ -0,0 +1,52 @@
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
bool check_password(char *param_1) {
|
||||
bool uVar1;
|
||||
//33X5yPBehep4
|
||||
if (((((param_1[0] == '3') && (param_1[1] == '3')) && (param_1[2] == 'X')) &&
|
||||
((((param_1[3] == '5' && (param_1[4] == 'y')) &&
|
||||
((param_1[5] == 'P' && ((param_1[6] == 'B' && (param_1[7] == 'e')))))) &&
|
||||
(param_1[8] == 'h')))) &&
|
||||
(((param_1[9] == 'e' && (param_1[10] == 'p')) && (param_1[11] == '4')))) {
|
||||
uVar1 = true;
|
||||
}
|
||||
else {
|
||||
uVar1 = false;
|
||||
}
|
||||
return uVar1;
|
||||
}
|
||||
|
||||
uint64_t main(int param_1,char* *param_2) {
|
||||
size_t pw_length;
|
||||
bool pw_correct;
|
||||
uint64_t uVar3;
|
||||
|
||||
if (param_1 == 2) {
|
||||
pw_length = strlen((char *)param_2[1]);
|
||||
if (pw_length == 12) {
|
||||
pw_correct = check_password(param_2[1]);
|
||||
if (pw_correct == false) {
|
||||
fwrite("\nWrong password ! Try again...\n\n",1,0x20,stderr);
|
||||
uVar3 = 1;
|
||||
}
|
||||
else {
|
||||
fprintf(stderr,"\nCongratulations ! The right password is indeed %s :-)\n\n",param_2[1]);
|
||||
uVar3 = 0;
|
||||
}
|
||||
}
|
||||
else {
|
||||
fwrite("\nWrong password ! Try again...\n\n",1,0x20,stderr);
|
||||
uVar3 = 1;
|
||||
}
|
||||
}
|
||||
else {
|
||||
fwrite("\nMSE-SRE Challenge VE3 --- Enjoy !\n",1,0x23,stderr);
|
||||
fprintf(stderr,"\nUsage: %s <password>\n\n",*param_2);
|
||||
uVar3 = 1;
|
||||
}
|
||||
return uVar3;
|
||||
}
|
Reference in New Issue
Block a user