diff --git a/investigative_reversing_0/.ghidra.test.lock~~ b/investigative_reversing_0/.ghidra.test.lock~~ new file mode 100644 index 0000000..e69de29 diff --git a/investigative_reversing_0/flag.txt b/investigative_reversing_0/flag.txt new file mode 100644 index 0000000..b0883f3 --- /dev/null +++ b/investigative_reversing_0/flag.txt @@ -0,0 +1 @@ +abcdefghijklmnopqrstuvwxyz diff --git a/investigative_reversing_0/investigative_reversing.gpr b/investigative_reversing_0/investigative_reversing.gpr new file mode 100644 index 0000000..e69de29 diff --git a/investigative_reversing_0/investigative_reversing.rep/idata/00/00000000.prp b/investigative_reversing_0/investigative_reversing.rep/idata/00/00000000.prp new file mode 100644 index 0000000..0eaf6e4 --- /dev/null +++ b/investigative_reversing_0/investigative_reversing.rep/idata/00/00000000.prp @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/investigative_reversing_0/investigative_reversing.rep/idata/00/~00000000.db/db.1.gbf b/investigative_reversing_0/investigative_reversing.rep/idata/00/~00000000.db/db.1.gbf new file mode 100644 index 0000000..cc11238 Binary files /dev/null and b/investigative_reversing_0/investigative_reversing.rep/idata/00/~00000000.db/db.1.gbf differ diff --git a/investigative_reversing_0/investigative_reversing.rep/idata/00/~00000000.db/db.2.gbf b/investigative_reversing_0/investigative_reversing.rep/idata/00/~00000000.db/db.2.gbf new file mode 100644 index 0000000..6d76a21 Binary files /dev/null and b/investigative_reversing_0/investigative_reversing.rep/idata/00/~00000000.db/db.2.gbf differ diff --git a/investigative_reversing_0/investigative_reversing.rep/idata/~index.bak b/investigative_reversing_0/investigative_reversing.rep/idata/~index.bak new file mode 100644 index 0000000..ac5e433 --- /dev/null +++ b/investigative_reversing_0/investigative_reversing.rep/idata/~index.bak @@ -0,0 +1,5 @@ +VERSION=1 +/ + 00000000:mystery:c0a8b293f6a9108107286778000 +NEXT-ID:1 +MD5:d41d8cd98f00b204e9800998ecf8427e diff --git a/investigative_reversing_0/investigative_reversing.rep/idata/~index.dat b/investigative_reversing_0/investigative_reversing.rep/idata/~index.dat new file mode 100644 index 0000000..ac5e433 --- /dev/null +++ b/investigative_reversing_0/investigative_reversing.rep/idata/~index.dat @@ -0,0 +1,5 @@ +VERSION=1 +/ + 00000000:mystery:c0a8b293f6a9108107286778000 +NEXT-ID:1 +MD5:d41d8cd98f00b204e9800998ecf8427e diff --git a/investigative_reversing_0/investigative_reversing.rep/project.prp b/investigative_reversing_0/investigative_reversing.rep/project.prp new file mode 100644 index 0000000..9ad0e4c --- /dev/null +++ b/investigative_reversing_0/investigative_reversing.rep/project.prp @@ -0,0 +1,6 @@ + + + + + + diff --git a/investigative_reversing_0/investigative_reversing.rep/projectState b/investigative_reversing_0/investigative_reversing.rep/projectState new file mode 100644 index 0000000..e2444a8 --- /dev/null +++ b/investigative_reversing_0/investigative_reversing.rep/projectState @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/investigative_reversing_0/investigative_reversing.rep/user/00/00000000.prp b/investigative_reversing_0/investigative_reversing.rep/user/00/00000000.prp new file mode 100644 index 0000000..19da773 --- /dev/null +++ b/investigative_reversing_0/investigative_reversing.rep/user/00/00000000.prp @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/investigative_reversing_0/investigative_reversing.rep/user/00/~00000000.db/db.1.gbf b/investigative_reversing_0/investigative_reversing.rep/user/00/~00000000.db/db.1.gbf new file mode 100644 index 0000000..4407d27 Binary files /dev/null and b/investigative_reversing_0/investigative_reversing.rep/user/00/~00000000.db/db.1.gbf differ diff --git a/investigative_reversing_0/investigative_reversing.rep/user/00/~00000000.db/db.2.gbf b/investigative_reversing_0/investigative_reversing.rep/user/00/~00000000.db/db.2.gbf new file mode 100644 index 0000000..362288f Binary files /dev/null and b/investigative_reversing_0/investigative_reversing.rep/user/00/~00000000.db/db.2.gbf differ diff --git a/investigative_reversing_0/investigative_reversing.rep/user/~index.bak b/investigative_reversing_0/investigative_reversing.rep/user/~index.bak new file mode 100644 index 0000000..b776dc3 --- /dev/null +++ b/investigative_reversing_0/investigative_reversing.rep/user/~index.bak @@ -0,0 +1,4 @@ +VERSION=1 +/ +NEXT-ID:0 +MD5:d41d8cd98f00b204e9800998ecf8427e diff --git a/investigative_reversing_0/investigative_reversing.rep/user/~index.dat b/investigative_reversing_0/investigative_reversing.rep/user/~index.dat new file mode 100644 index 0000000..41b10d6 --- /dev/null +++ b/investigative_reversing_0/investigative_reversing.rep/user/~index.dat @@ -0,0 +1,5 @@ +VERSION=1 +/ + 00000000:udf_c0a8b293f6a9108107286778000:c0a8b293fa63110170551669400 +NEXT-ID:1 +MD5:d41d8cd98f00b204e9800998ecf8427e diff --git a/investigative_reversing_0/investigative_reversing.rep/user/~journal.bak b/investigative_reversing_0/investigative_reversing.rep/user/~journal.bak new file mode 100644 index 0000000..d39bb0f --- /dev/null +++ b/investigative_reversing_0/investigative_reversing.rep/user/~journal.bak @@ -0,0 +1,2 @@ +IADD:00000000:/udf_c0a8b293f6a9108107286778000 +IDSET:/udf_c0a8b293f6a9108107286778000:c0a8b293fa63110170551669400 diff --git a/investigative_reversing_0/investigative_reversing.rep/versioned/~index.bak b/investigative_reversing_0/investigative_reversing.rep/versioned/~index.bak new file mode 100644 index 0000000..b776dc3 --- /dev/null +++ b/investigative_reversing_0/investigative_reversing.rep/versioned/~index.bak @@ -0,0 +1,4 @@ +VERSION=1 +/ +NEXT-ID:0 +MD5:d41d8cd98f00b204e9800998ecf8427e diff --git a/investigative_reversing_0/investigative_reversing.rep/versioned/~index.dat b/investigative_reversing_0/investigative_reversing.rep/versioned/~index.dat new file mode 100644 index 0000000..b776dc3 --- /dev/null +++ b/investigative_reversing_0/investigative_reversing.rep/versioned/~index.dat @@ -0,0 +1,4 @@ +VERSION=1 +/ +NEXT-ID:0 +MD5:d41d8cd98f00b204e9800998ecf8427e diff --git a/investigative_reversing_0/mystery b/investigative_reversing_0/mystery new file mode 100755 index 0000000..c017456 Binary files /dev/null and b/investigative_reversing_0/mystery differ diff --git a/investigative_reversing_0/mystery.png b/investigative_reversing_0/mystery.png new file mode 100755 index 0000000..77a907a Binary files /dev/null and b/investigative_reversing_0/mystery.png differ diff --git a/investigative_reversing_0/sol.py b/investigative_reversing_0/sol.py new file mode 100755 index 0000000..0e25fa3 --- /dev/null +++ b/investigative_reversing_0/sol.py @@ -0,0 +1,24 @@ +#!/home/maxime/.pyvenv/bin/python3 + +with open("mystery.png", 'rb') as f: + image = f.read() + l = len(image) + flag_start = l-26 + + for i in range(flag_start, l): + print(chr(image[i]), end='') + print() + + for i in range(flag_start, flag_start + 6): + print(chr(image[i]), end='') + + for i in range(flag_start + 6, flag_start + 15): + print(chr(image[i] - 5), end ='') + + print(chr(image[flag_start + 15] + 3), end='') + + for i in range(flag_start + 16, flag_start + 26): + print(chr(image[i]), end='') + + print() +