diff --git a/investigative_reversing_4/Item01_cp.bmp b/investigative_reversing_4/Item01_cp.bmp new file mode 100755 index 0000000..c7fbde9 Binary files /dev/null and b/investigative_reversing_4/Item01_cp.bmp differ diff --git a/investigative_reversing_4/Item02_cp.bmp b/investigative_reversing_4/Item02_cp.bmp new file mode 100755 index 0000000..fc5d8e3 Binary files /dev/null and b/investigative_reversing_4/Item02_cp.bmp differ diff --git a/investigative_reversing_4/Item03_cp.bmp b/investigative_reversing_4/Item03_cp.bmp new file mode 100755 index 0000000..3b198cd Binary files /dev/null and b/investigative_reversing_4/Item03_cp.bmp differ diff --git a/investigative_reversing_4/Item04_cp.bmp b/investigative_reversing_4/Item04_cp.bmp new file mode 100755 index 0000000..8776569 Binary files /dev/null and b/investigative_reversing_4/Item04_cp.bmp differ diff --git a/investigative_reversing_4/Item05_cp.bmp b/investigative_reversing_4/Item05_cp.bmp new file mode 100755 index 0000000..b276dc5 Binary files /dev/null and b/investigative_reversing_4/Item05_cp.bmp differ diff --git a/investigative_reversing_4/investigative_reversing_4.gpr b/investigative_reversing_4/investigative_reversing_4.gpr new file mode 100644 index 0000000..e69de29 diff --git a/investigative_reversing_4/investigative_reversing_4.rep/idata/00/00000000.prp b/investigative_reversing_4/investigative_reversing_4.rep/idata/00/00000000.prp new file mode 100644 index 0000000..d65d309 --- /dev/null +++ b/investigative_reversing_4/investigative_reversing_4.rep/idata/00/00000000.prp @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/investigative_reversing_4/investigative_reversing_4.rep/idata/00/~00000000.db/db.6.gbf b/investigative_reversing_4/investigative_reversing_4.rep/idata/00/~00000000.db/db.6.gbf new file mode 100644 index 0000000..b9a0df2 Binary files /dev/null and b/investigative_reversing_4/investigative_reversing_4.rep/idata/00/~00000000.db/db.6.gbf differ diff --git a/investigative_reversing_4/investigative_reversing_4.rep/idata/00/~00000000.db/db.7.gbf b/investigative_reversing_4/investigative_reversing_4.rep/idata/00/~00000000.db/db.7.gbf new file mode 100644 index 0000000..59a8159 Binary files /dev/null and b/investigative_reversing_4/investigative_reversing_4.rep/idata/00/~00000000.db/db.7.gbf differ diff --git a/investigative_reversing_4/investigative_reversing_4.rep/idata/~index.bak b/investigative_reversing_4/investigative_reversing_4.rep/idata/~index.bak new file mode 100644 index 0000000..c8a021b --- /dev/null +++ b/investigative_reversing_4/investigative_reversing_4.rep/idata/~index.bak @@ -0,0 +1,5 @@ +VERSION=1 +/ + 00000000:mystery:c0a8b2a0de2b9581681261000 +NEXT-ID:1 +MD5:d41d8cd98f00b204e9800998ecf8427e diff --git a/investigative_reversing_4/investigative_reversing_4.rep/idata/~index.dat b/investigative_reversing_4/investigative_reversing_4.rep/idata/~index.dat new file mode 100644 index 0000000..c8a021b --- /dev/null +++ b/investigative_reversing_4/investigative_reversing_4.rep/idata/~index.dat @@ -0,0 +1,5 @@ +VERSION=1 +/ + 00000000:mystery:c0a8b2a0de2b9581681261000 +NEXT-ID:1 +MD5:d41d8cd98f00b204e9800998ecf8427e diff --git a/investigative_reversing_4/investigative_reversing_4.rep/project.prp b/investigative_reversing_4/investigative_reversing_4.rep/project.prp new file mode 100644 index 0000000..9ad0e4c --- /dev/null +++ b/investigative_reversing_4/investigative_reversing_4.rep/project.prp @@ -0,0 +1,6 @@ + + + + + + diff --git a/investigative_reversing_4/investigative_reversing_4.rep/projectState b/investigative_reversing_4/investigative_reversing_4.rep/projectState new file mode 100644 index 0000000..6d171ba --- /dev/null +++ b/investigative_reversing_4/investigative_reversing_4.rep/projectState @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/investigative_reversing_4/investigative_reversing_4.rep/user/00/00000000.prp b/investigative_reversing_4/investigative_reversing_4.rep/user/00/00000000.prp new file mode 100644 index 0000000..7f5c365 --- /dev/null +++ b/investigative_reversing_4/investigative_reversing_4.rep/user/00/00000000.prp @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/investigative_reversing_4/investigative_reversing_4.rep/user/00/~00000000.db/db.1.gbf b/investigative_reversing_4/investigative_reversing_4.rep/user/00/~00000000.db/db.1.gbf new file mode 100644 index 0000000..b19ea2d Binary files /dev/null and b/investigative_reversing_4/investigative_reversing_4.rep/user/00/~00000000.db/db.1.gbf differ diff --git a/investigative_reversing_4/investigative_reversing_4.rep/user/~index.dat b/investigative_reversing_4/investigative_reversing_4.rep/user/~index.dat new file mode 100644 index 0000000..b776dc3 --- /dev/null +++ b/investigative_reversing_4/investigative_reversing_4.rep/user/~index.dat @@ -0,0 +1,4 @@ +VERSION=1 +/ +NEXT-ID:0 +MD5:d41d8cd98f00b204e9800998ecf8427e diff --git a/investigative_reversing_4/investigative_reversing_4.rep/user/~journal.dat b/investigative_reversing_4/investigative_reversing_4.rep/user/~journal.dat new file mode 100644 index 0000000..603256a --- /dev/null +++ b/investigative_reversing_4/investigative_reversing_4.rep/user/~journal.dat @@ -0,0 +1,2 @@ +IADD:00000000:/udf_c0a8b2a0de2b9581681261000 +IDSET:/udf_c0a8b2a0de2b9581681261000:c0a8b2a0edb817347025857199 diff --git a/investigative_reversing_4/investigative_reversing_4.rep/versioned/~index.bak b/investigative_reversing_4/investigative_reversing_4.rep/versioned/~index.bak new file mode 100644 index 0000000..b776dc3 --- /dev/null +++ b/investigative_reversing_4/investigative_reversing_4.rep/versioned/~index.bak @@ -0,0 +1,4 @@ +VERSION=1 +/ +NEXT-ID:0 +MD5:d41d8cd98f00b204e9800998ecf8427e diff --git a/investigative_reversing_4/investigative_reversing_4.rep/versioned/~index.dat b/investigative_reversing_4/investigative_reversing_4.rep/versioned/~index.dat new file mode 100644 index 0000000..b776dc3 --- /dev/null +++ b/investigative_reversing_4/investigative_reversing_4.rep/versioned/~index.dat @@ -0,0 +1,4 @@ +VERSION=1 +/ +NEXT-ID:0 +MD5:d41d8cd98f00b204e9800998ecf8427e diff --git a/investigative_reversing_4/mystery b/investigative_reversing_4/mystery new file mode 100755 index 0000000..bb18fd3 Binary files /dev/null and b/investigative_reversing_4/mystery differ diff --git a/investigative_reversing_4/sol.py b/investigative_reversing_4/sol.py new file mode 100755 index 0000000..b36308f --- /dev/null +++ b/investigative_reversing_4/sol.py @@ -0,0 +1,26 @@ +#!/home/maxime/.pyvenv/bin/python3 + +for c in range(5, 0, -1): + with open("Item0" + str(c) + "_cp.bmp", 'rb') as f: + img = f.read() + + leading_space = 2019 + flag_size = 10 + enc_size = flag_size * (8 + 4) + + enc_buffer = img[leading_space:leading_space + enc_size] + flag_buffer = [''] * flag_size + + for i in range(flag_size): + char = 0 + enc_offset = i * (8 + 4) + + for j in range(8): + char |= (enc_buffer[enc_offset+j] & 1) << j + + flag_buffer[i] = chr(char) + + print(''.join(flag_buffer), end='') + +print() +