Phase 1 Flashcards
What port is typically used for SSH?
22
What is a TCP three way handshake?
SYN - SYN/ACK - ACK packets
What is a pcap file?
A saved Packet CAPture file that can be analyzed offline
As a Cybersecurity tool, what does Wireshark allow us to do?
Analyze data packets on the network
Will using a pcap file can help us spot an adversary in real time?
False
Can wireshark be used to view network traffic on any network in the world from a single computer?
False
What does NIC stand for?
Network Interface Card
What does MAC stand for?
Media Access Control
The loopback address is a very important address for computer communications. What is an example of a loopback address?
127.0.0.1
What does the ping command do?
Verifies connectivity between two systems using the ICMP protocol
What is an example of a valid PUBLIC IPv4 address?
1.0.0.0 to 127.0.0.0
128.0.0.0 to 191.255.0.0
192.0.0.0 to 223.255.255.0
What is an example of a valid PRIVATE IPv4 address?
10.0.0.0 to 10.255.255.255
172.16.0.0 to 172.31.255.255
192.168.0.0 to 192.168.255.255
what would you see using the cat command on an /etc/hosts file
simple text file that maps hostnames to IP addresses.
What is the decimal 192 in Hex?
C0
Which of the following is likely to be a Home directory?
/home/user1
What does the command ip a do?
Shows the IP Addresses associated with all the NICs
What is 0xFF in binary?
1111 1111
Name the directories to their common functions:
/bin –
/etc –
/usr –
/mnt –
/home –
BINARIES
configuration
user binaries
mounts
user data folder
The command ls -l gives what kind of listing?
Long (detailed)
The command ls -a gives what kind of listing?
All files, even hidden
You are installing an application that needs to write data to a log file. The filename is appout.log and you are told the program will error out if the file does not already exist. What command can you use to ensure you won’t have a problem?
touch /var/log/appout.log
What will ALWAYS be the symbol for the current directory in a Linux/Unix terminal?
(.)(.)
.
Which of these are located in the root directory of a fresh install of Linux ? (Choose 2)
/home
/usr
/conf
/etc
/titties
Within a Linux Terminal, which command would display hidden files in the current directory?
Ls -a
Match the following commands to their functions in VI/VIM. Assume you are in command mode, unless otherwise stated.
O (lowercase)–
O (capital) –
:w –
:q! –
/ –
dw –
dd –
i –
a –
Esc (while in insert mode) –
adds a line below the cursor and puts vi in insert mode
adds a line above the cursor and outs vi in insert mode
saves the file
quits the file without saving
searches for text
deletes the current word
deletes the current line
insert mode before the cursor
insert mode after the cursor
changes to command mode
What does the ~ do when you type “cd ~” in the command line?
Takes you to your home directory
Which command will add a user and setup the account’s home folder and other settings automatically?
adduser
What does the command su stand for?
Switch user
What does the touch command do?
Creates a file, if it doesn’t exist, or updates the timestamps if it does
Typing cd with no parameters is the equivalent of which command?
cd ~
Which command adds a line below the current line on in the VI editor?
o
What does the VI command :w do (not :wq)?
Saves the file
Which command puts the VI editor into edit mode?
i
What does the D command do in the VI editor?
Deletes from the cursor to the end of the line.
Can the :w! command be used to overwrite all files, even read-only system files?
False
What does the command nc or netcat with no parameters do?
Shows the usage (options) for the command
What is the \r character in an HTTP GET request?
Carriage return
If a user on our network is surfing to an HTTP page and we can capture the network traffic, we can potentially view the entire page as the user would see it?
True
What is netcat used for?
Network Communications using TCP or UDP
What is the \n character in an HTTP GET request?
Line feed
Which command will stop a process? (linux)
kill