Provide steps to create and encrypt files.

In this part, you will create a few text files that will be used to create encrypted zip files in the next
step.

Step 1. Create text files.
a. Start the CyberOps Workstation VM.
b. Open a terminal window. Verify that you are in the analyst home directory. Otherwise,
enter cd ~ at the terminal prompt.
c. Create a new folder called Zip-Files using the mkdir Zip-Files command.
d. Move into that directory using the cd Zip-Files command.
e. Enter the following to create a text file called sample-1.txt.
```
[analyst@secOps Zip-Files]$ echo This a sample text file > sample-1.txt
[analyst@secOps Zip-Files]$ echo This a sample text file > sample-2.txt
[analyst@secOps Zip-Files]$ echo This a sample text file > sample-3.txt
```
f. Verify that the files have been created, using the ls command.
![15377|607x143](upload://1o11BxTdPrY24Y90Fef1TXMprla.png)
Step 2. Zip and encrypt the text files.
Next, we will create several encrypted zipped files using varying password lengths. To do so,
all three text files will be encrypted using the zip utility.
a. Create an encrypted zip file called file-1.zip containing the three text files using the fol-
lowing command:
```
[analyst@secOps Zip-Files]$ zip –e file-1.zip sample*
```
b. When prompted for a password, enter a one-character password of your choice. In the
example, the letter B was entered. Enter the same letter when prompted to verify.
![15378|596x141](upload://eYsm73EyWwdWcs8Cvyp47rZmEEy.png)
c. Repeat the procedure to create the following 4 other files

? file-2.zip using a 2-character password of your choice. In our example, we used
R2.
? file-3.zip using a 3-character password of your choice. In our example, we used
0B1.
? file-4.zip using a 4-character password of your choice. In our example, we used
Y0Da.
? file-5.zip using a 5-character password of your choice. In our example, we used
C-3P0.
d. Verify that all zipped files have been created using the ls command.
![15379|602x149](upload://j9OeveWscs9Y58tZt2ZsJLJPCHZ.png)
e. Attempt to open a zip file using an incorrect password as shown.
![15382|595x244](upload://wnPc3ei673u4VNbvrJcgjkeRW8V.png)

Computer Science & Information Technology

You might also like to view...

To delete a folder, you:

A) double-click the folder and click Delete from the menu. B) right-click the folder and click Delete from the menu. C) click the folder and click Delete on the Ribbon. D) click the folder and click Delete in the Homegroup.

Computer Science & Information Technology

The Wii Remote, as well as many smartphones, uses a(n) _________ which allows the de- vice to respond to motion.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology