Over The Wire Notes Flashcards
Level 0
ssh bandit0@bandit.labs.overthewire.org -p 2220
0 to 1
ls to list files
Display contents of file readme wit Cat command.
Shift+ CTRL V & C to copy & paste in linux command prompt
1 to 2
‘cat -‘ will not work
cat ./ -
./ means in current directory
2 to 3
cat spaces/in/this/file/name
cat will think there is 4 different files without this expression.
3 to 4
cd command to go into inhere
ls -a (shows files that are hidden)
hidden files have ‘.’ in the beginning of them.
cat .hidden reveals contents.
5 to 6
cd inhere/
ls
file ./-file*
(* is wild card, any file with dash)
6 to 7
ls
cd inhere/
find ./ -size 1033c
cat maybehere07/.file2
8 to 9
ls
find / -size 33c -user bandit7 -group bandit6
(start it at the begging of the file system)
cat /var/lib… and so forth
10 to 11
ls
cat data.txt
cat data.txt | grep -i millionth
8 to 9
sort data.txt | uniq -u
uniq -u only line in the file that is not repeated, or Unique
9 to 10
ls
cat data.txt
strings data.txt | grep ‘=’