Linux fundamentals part 2

Linux fundamentals

Linux Fundamentals Part 2

Task 1,2,3,4

  • In this case you can use their attack box or your machine. I’m using my machine to do this.
  • We got credentials to shiba2 from Linux Fundamentals Part 1
┌─[visith@parrot][~/Desktop/CTF/thm/Linux_Fundamentals/part_2]
└──╼ $ssh shiba2@10.10.204.136
The authenticity of host '10.10.204.136 (10.10.204.136)' can't be established.
ECDSA key fingerprint is SHA256:IivpLEJoW3uwEdrsiUSFX8EfJsQgcQS0K6mfWr08BNU.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '10.10.204.136' (ECDSA) to the list of known hosts.
shiba2@10.10.204.136's password:pinguftw (you can't see the password when you typing it)
....
shiba2@nootnoot:~$  

Task 6

  1. How would you set nootnoot equal to 1111?
export nootnoot=1111
  1. What is the value of the home environment variable?
/home/shiba2

Task 9

  1. How would you output twenty to a file called test?
echo twenty > test

Task 11

  1. What is shiba3’s password?
shiba2@nootnoot:~$ export test1234=$USER
shiba2@nootnoot:~$ ./shiba2 
happynootnoises

Task 14

  1. How would you change the owner of file to paradox?
chown paradox file
  1. What about the owner and the group of file to paradox?
chown paradox:paradox file
  1. What flag allows you to operate on every file in the directory at once?
  • Look in to the man file using man chown
-R, --recursive
              operate on files and directories recursively

Task 15

  1. What permissions mean the user can read the file, the group can read and write to the file, and no one else can read, write or execute the file?
460
  1. What permissions mean the user can read, write, and execute the file, the group can read, write, and execute the file, and everyone else can read, write, and execute the file.
777

Task 16

  1. What flag deletes every file in a directory?
  • Take peek into the man page and u can find this flag
 -r, -R, --recursive
              remove directories and their contents recursively
  1. How do you suppress all warning prompts?
-f, --force
              ignore nonexistent files and arguments, never prompt

Task 17

  1. How would you move file to /tmp?
mv file /tmp

Popular posts from this blog

Mustacchio - TryHackMe

Tech_Supp0rt: 1 - TryHackMe