From 7c0b484c0b1cc02ae33a52d54a7e590a2d2ab03b Mon Sep 17 00:00:00 2001 From: "nuo.o" <49533950+nuoxoxo@users.noreply.github.com> Date: Mon, 18 Nov 2024 13:32:53 +0100 Subject: [PATCH] Update README.mdx --- level09/README.mdx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/level09/README.mdx b/level09/README.mdx index 457db0b..0a84577 100644 --- a/level09/README.mdx +++ b/level09/README.mdx @@ -16,4 +16,33 @@ Login 0000010: 4442 8344 757b 7f8c 890a DB.Du{.... ``` +Run it +```b +> ./level09 token +tpmhr +> ./level09 123 +135 +> ./level09 246 +258 +> ./level09 abcd +aceg +> ./level09 xyz +xz| +> ./level09 az +a{ +level09@SnowCrash:~$ ./level09 za +zb +level09@SnowCrash:~$ ./level09 zab +zbd + +``` + +Simple algo +- respect python2 syntax +- to be run in VM + +```b +line = open('/home/user/level09/token').read().strip() +print 'res/', ''.join(chr(ord(_) - i) for i, _ in enumerate(line)) +```