Skip to content

Commit

Permalink
Update README.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
nuoxoxo authored Nov 18, 2024
1 parent b88a5e5 commit 7c0b484
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions level09/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
```

0 comments on commit 7c0b484

Please sign in to comment.