Open utterances-bot opened 1 month ago
I am having hard time writing the file in vim mode. It keeps saying this is a read-only file and would not let me write it. I have tried using :w! and :q but this is not working. It keeps saying ""text.txt" E212: Can't open file for writing"
@BoPann The file most likely does not have permissions set for you to write it. Why do you want to write something in 'text.txt'? If you are already in Vim mode, have escalated permissions and can get to the next user by reading the password file for example.
Ah I just realized that ":e /etc/bandit_pass/bandit26" should go to the command line in vim mode. I thought we need to insert this line into the file that's why I tried to write the file in the first place. Thank you for your reply!
OverTheWire Bandit Level 25 -> 26 - Walkthrough - MayADevBe Blog
A walkthrough of Level 25 -> 26 of the Bandit wargame from OverTheWire. - Breaking out of a restricted environment with more and vim.
https://mayadevbe.me/posts/overthewire/bandit/level26/