Tryhackme - Toolbox: Vim

Tryhackme – Toolbox: Vim

In this walk through, we will be going through the Toolbox: Vim room from Tryhackme. We will learn about vim, a universal text editor that can be incredibly powerful when used properly. From basic text editing to editing of binary files, Vim can be an important arsenal in a security toolkit. So, let’s get started without any delay.

Toolbox: Vim

Task 1 – Task 1

Question 1 – Install Vim

Question 2 – Launch Vim

Vim

Task 1 - Task 1

Task 2 – Task 2

Question 1 – How do we enter “INSERT” mode?

Question 2 – How do we start entering text into our new Vim document?

Question 3 – How do we return to command mode?

Question 4 – How do we move the cursor left?

Question 5 – How do we move the cursor right?

Question 6 – How do we move the cursor up?

Question 7 – How do we move the cursor down?

Question 8 – How do we jump to the start of a word?

Question 9 – How do we jump to the end of a word?

Question 10 – How do we insert (before the cursor)

Question 11 – How do we insert (at the beginning of the line?)

Question 12 – How do we append (after the cursor)

Question 13 – How do we append (at the end of the line)

Question 14 – How do we make a new line under the current line?

Task 2 - Task 2

Task 2 - Task 2

Task 3 – Task 3

Question 1 – How do we write the file, but don’t exit?

Question 2 – How do we write the file, but don’t exit- as root?

Question 3 – How do we write and quit?

Question 4 – How do we quit?

Question 5 – How do we force quit?

Question 6 – How do we save and quit, for all active tabs?

Task 3 - Task 3

Task 4 – Task 4

Question 1 – How do we copy a line?

Question 2 – how do we copy 2 lines?

Question 3 – How do we copy to the end of the line?

Question 4 – How do we paste the clipboard contents after the cursor?

Question 5 – How do we paste the clipboard contents before the cursor?

Question 6 – How do we cut a line?

Question 7 – How do we cut two lines?

Question 8 – How do we cut to the end of the line?

Question 9 – How do we cut a character?

Task 4 - Task 4

Task 5 – Task 5

Question 1 – How do we search forwards for a pattern (use “pattern” for your answer)

Question 2 – How do we search backwards for a pattern (use “pattern” for your answer)

Question 3 – How do we repeat this search in the same direction?

Question 4 – How do we repeat this search in the opposite direction?

Question 5 – How do we search for “old” and replace it with “new”

Question 6 – How do we use “grep” to search for a pattern in multiple files?

Task 5 - Task 5

Also Read: Tryhackme – Tech_Supp0rt: 1

So that was “Toolbox: Vim” for you. We looked into the vim text editor in detail. We started off with a basic introduction, then looked into some modes vim offers. Next, we took a dive into writing, saving and editing in vim. Moving on, we looked into cut, copy and paste commands and at last had a peek on vimgrep and concluded the room. On that note, i would take your leave and will meet you in next one. Till then, “Happy hacking”.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top