summaryrefslogtreecommitdiffstats
path: root/solve/notes
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2024-05-10 20:04:52 +0200
committerLouis Burda <quent.burda@gmail.com>2024-05-10 20:04:52 +0200
commite63d07bbd413c7558784898e2d9c1be3851cd65a (patch)
treee8792c0e1bb4f993475bf6857adc1ec95adb260d /solve/notes
downloadseccon2022-noiseccon-master.tar.gz
seccon2022-noiseccon-master.zip
Add solutionHEADmaster
Diffstat (limited to 'solve/notes')
-rw-r--r--solve/notes5
1 files changed, 5 insertions, 0 deletions
diff --git a/solve/notes b/solve/notes
new file mode 100644
index 0000000..946d533
--- /dev/null
+++ b/solve/notes
@@ -0,0 +1,5 @@
+reverse perlin noise generation to get offsetX and offsetY
+set offsetX and offsetY so we can recover flag without padding (1 << 8, 1 << FLAGLEN-8)
+
+actually one request only reveals one byte since the grid repeats every 256..
+so using scaleX = (i + 1) << 8 and scaleY = (i + 2) << 8