back

Bandit 08 - writeups

Sharing this writeups by following overthewire rules. This writing is for Level 8.

Bandit Level 8 → Level 9

ssh bandit8@bandit.labs.overthewire.org -p 2220
found password: defqzFQi4mU0wfNbpuspusRoWskaLg1ecc

bandit8@bandit:~$ ls 
data.txt

bandit8@bandit:~$ sort data.txt | uniq -u
cikaokkI91bUIZZPXwwXanal4xvADOGM

Explanation:

  • sort data.txt sorts all lines in data.txt alphabetically, grouping identical lines together consecutively.
  • | uniq -u pipes the sorted output to uniq, printing only lines that appear exactly once (unique lines, excluding any duplicates).
Copyright © 2026 Mahidul Haque. This post is licensed under a CC BY-NC-ND 4.0 license. You may read, learn, and share links to this post for non‑commercial, educational purposes, as long as you give appropriate attribution. You may not copy, reproduce, adapt, distribute, or use this work commercially without explicit permission.