OverTheWire Narnia Level 0 tutorial!!
Published on 17 Aug 2023
Login
Log in as narnia0.
ssh narnia0@narnia.labs.overthewire.org -p 2226
# password: narnia0
Why? Each Narnia level is a separate UNIX user. To solve Level 0 you must be the
narnia0
user.
Task
Log into the game using SSH. Your goal for this first level is simply to connect to the remote machine successfully.
A little bit of Theory
- SSH (Secure Shell Protocol) lets you connect securely to a remote machine over an encrypted channel.
-
The typical syntax is:
ssh <username>@<server> -p <port>
Here,
narnia0
is the username,narnia.labs.overthewire.org
is the host, and-p 2226
uses the custom port 2226 instead of the default 22. - On Windows you can use WSL or PuTTY; on Linux/macOS just use the built-in Terminal.
- After a successful login, you land in the user’s home directory (shown by
~
in the prompt).
Further reading:
Solution
- Open terminal and run:
ssh narnia0@narnia.labs.overthewire.org -p 2226
- Enter the given password:
narnia0
- Boom 🎉 you’re inside as narnia0.
At this point nothing else to solve — just confirm you can connect. The real fun starts at Level 0 → 1.
Password for Next Level
(You don’t need to find it here — OTW provides it: narnia0)
That’s it for Level 0! 🎉 It’s purely a login test, but from here we’ll start digging into actual binaries.
Thanks for reading!
Until next time — Otsumachi!! 💖☄️✨
all tags
GOT-overwrite aboutme aead ai alphanumeric-shellcode apt argc0 argon2 aslr assembly asymmetric atoi automation backbox bandit base64 bash beginner behemoth binary binary-exploitation binary-to-ascii blackarch blind blind-sqli blogging blue-team bruteforce buffer-overflow buffer-overwrite c caesar canary capabilities checksec command-injection commonmark cookie cron crypto cryptography ctf cutter cyberchef cybersecurity defenders detection dev directory-traversal dnf docs drifter ecc education elf env envp exploitation finale forensics format-string formulaone frequency frequency-analysis gcc gdb getchar gfm ghidra github-pages governance gpg guide hashing hkdf http jekyll jmpbuf kali kasiski kdf kernel keylength kramdown krypton lab ld_preload leviathan lfi lfsr linux linux-syscall llmops log-poisoning ltrace manpage markdown maze memcpy mitigations mitmproxy mlops narnia natas networking newline-injection nonce nop-sled nx object-injection obsidian openssl osint overflow overthewire package-manager pacman parrot path path-hijacking pathname php pie pkc pki pointer-trick pqc priv-esc privilege-escalation provable-security pwn pwntools pyshark python race-condition radare2 rag randomness recon red-team redirect relro requests ret2env ret2libc reverse-engineering reversing ricing roadmap rop rot13 rsa scapy security seed seo serialization session setjmp-longjmp setuid shell shellcode smoke soc sockets sprintf sql-injection srop stack-canary stack-overflow strace strcmp strcpy streamcipher strings strncpy strtoul substitution suid suisei symlink symmetric terminal test threat-intel time-based tls troubleshooting tshark type-juggling ubuntu udp utumno vigenere virtualbox virtualization vmware vortex walkthrough web windows wireshark writing wsl x86