Question: 4.2: In your ssh session, run lsof once to see what network services are available (ssh should be the only TCP service; all others will

4.2: In your ssh session, run lsof once to see what network services are available (ssh should be the only TCP service; all others will be UDP) then save the output of lsof to a file named lsof.txt. # lsof -i # lsof -i > lsof.txt Log out of your ssh session, then use the sftp (Secure File Transfer Protocol, which is part of SSH) command to retrieve the file created for the previous question. Once you connect to a machine with sftp, you will be presented with the sftp> prompt. At this prompt, you can type a variety of commands, including help, which will display a list of all possible commands. These commands include most of the traditional FTP commands, such as get to download files and put to upload files. The primary commands you will need to use are ls to list files, get to download files, and put to upload files. Retrieve the lsof.txt file, then screenshot the contents of that file as your answer. Type: ls Note down the answer. msfadmin@metasploitable:~$ sftp root@KALI_IP sftp> help sftp> ls sftp> get lsof.txt sftp> quit Type: ls 14) Can you see any difference between the between the result you got from your previously typed ls command and the currently typed ls command? What is the difference and why you have that difference?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!