Kali Flashcards

1
Q

How do I change my password in the terminal?

A

passwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is FHS?

A

Filesystem Hierarchy Standard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is in the /bin path?

A

Basic programs ls, cd, cat, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is in the /sbin path?

A

System programs (fdisk, mkfs, sysctl, etc)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is in the /etc path?

A

Configuration files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is in the /tmp path?

A

Temporary files (typically deleted on boot)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is in the /usr/bin path?

A

Applications (apt, ncat, nmap, etc.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is in the /usr/share path?

A

Application support and data files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the apropos command used for?

A

With the apropos command, we can search the list of man page descriptions for a possible
match based on a keyword.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to create multiple directories?

A

mkdir -p test/{dir1,dir2,dir3}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which command

A

Searches through the directories that are defined in the $PATH environment variable for a given file name. This variable contains a listing of directories that Kali searches when a command is issued without its path.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Locate command

A

The locate command is the quickest way to find the locations of files and directories in Kali. In
order to provide a much shorter search time, locate searches a built-in database named
locate.db rather than the entire hard disk itself. This database is automatically updated on a
regular basis by the cron scheduler. To manually update the locate.db database, you can use the
updatedb command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Find command

A

The find command is the most complex and flexible search tool among the three. Mastering its
syntax can sometimes be tricky, but its capabilities go beyond a normal file search. The main advantage of find over locate is that it can search for files and directories by more than just the name. With find, we can search by file age, size, owner, file type, timestamp, permissions, and more.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How to look at the man page for one of your preferred commands?

A

man command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How to look for a keyword related to file compression in man?

A

man -k “file compression”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How to use which to locate the pwd command?

A

which pwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

How to use locate to locate wce32.exe?

A

locate wce32.exe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

How to use find to identify any file (not directory) modified in the last day, NOT owned by the root
user and execute ls -l on them. Chaining/piping commands is NOT allowed!

A

find . -user kali -type f -mtime -1 -exec dirname {} \; sort –unique

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is Kali Linux?

A

Is a specialized Linux distribution aimed at security professionals.

20
Q

What is SSH?

A

Secure SHell

21
Q

What is SSH Service used for?

A

SSH service is most commonly used to remotely access a computer, using secure, encrypted protocol.

22
Q

SSH service listens on which port by default?

A

22

23
Q

How to start service in Linux?

A

systemctl start

24
Q

How to start SSH service on Linux?

A

sudo systemctl start ssh

25
Q

How to check is ssh is running on Linux?

A

sudo ss -antlp | grep sshd

26
Q

How to start service automatically at boot time?

A

sudo systemctl enable ssh

27
Q

Which command is used to enable and disable most services within Linux?

A

systemctl

28
Q

Which HTTP Service is often used during a penetration test?

A

Apache

29
Q

HTTP Service Default Port

A

80

30
Q

How to start HTTP Service on Linux?

A

sudo systemctl start apache2

31
Q

How to verify if the HTTP Service is running and listening on TCP Port 80 with ss and grep command?

A

sudo ss -antlp | grep apache

32
Q

How to have a HTTP Service start a boot time?

A

sudo systemctl enable apache2

33
Q

How most services in Linux are operated?

A

SSH and HTTP, through their service or init scripts.

34
Q

How to see a table of all available services?

A

systemctl list-unit-files

35
Q

How to start service?

A

sudo systemctl enable *.service

36
Q

How to stop service?

A

sudo systemctl disable *.service

37
Q

How to enable SSH service to start on system boot?

A

sudo systemctl enable ssh

38
Q

What is APT?

A

APT is a set of tools that helps manage packages, or applications, on a Debian-based system.

39
Q

How to add package to the system?

A

apt install

40
Q

How to install “pure-ftpd” with APT?

A

sudo apt install pure-ftpd

41
Q

How to remove package by APT?

A

sudo apt remove –purge

42
Q

What apt remove -purge do?

A

The apt remove –purge command completely removes packages from Kali. It is important to note that removing a package with apt remove removes all package data, but leaves usually small (modified) user configuration files behind, in case the removal was accidental. Adding the –purge option removes all the leftovers.

43
Q

What is dpkg?

A

dpkg is the core tool used to install a package, either directly or indirectly through APT. It is also the preferred tool to use when operating offline, since it does not require an Internet connection. Note that dpkg will not install any dependencies that the package might require.

44
Q

How to install package with dpkg?

A

sudo dpkg -i man-db_2.7.0.2-5_amd64.deb

45
Q

How to search for a tool not currently installed in Linux?

A

sudo apt-cache search tool

46
Q

How to install a tool by APT?

A

sudo apt-get install tool

47
Q

How to remove a tool by APT?

A

sudo apt remove –purge tool