Lessons Flashcards

(113 cards)

1
Q

Linux command “echo”

A

Output any text we provide

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

Linux command “whoami”

A

Find out what user we are currently logged in as

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

Linux command “ls”

A

Listing

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

Linux “cd”

A

Change directory

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

Linux “pwd”

Print working directory
Password
Print winhex directory
Power dns

A

Print working directory

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

Ctrl l

Intercepta message
Clears terminal
Copies terminal
Scans terminal

A

Clears terminal

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

Linux command to locate a specific file

Find
Echo
Whoami
Grep

A

Find

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

(*) would be used if we want to find a file that has every extension of “.text” or any extension of what we may look for

A

True

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

Linux command that allows us to search the contents of files for specific values that we are looking for

Cat
Grep
(*)
Find

A

Grep

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

What Linux command would you use if you wanted to see everything IP address “81.143.211.90” has visited from a web server’s access log?

Ls
Find
Grep
Cat

A

grep “81.143.211.90” access.log

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

Operator that allows you to run commands in the background of your terminal

Cd
..
&
>

A

&

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

Operator allows you to combine multiple commands together in one line of your terminal

Cd
..
&&
>

A

&&

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

Operator that is a redirector that takes the out put from a command (like cat) and directing it elsewhere

Cd
&
&&
>

A

>

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

> > does the same function of > operator but appends the output rather than replacing (meaning nothing is overwritten)

A

True

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

SSH, username and ip address are the steps to what?

A

Log into a remote machine using ssh

SSH tryhackme@10.10.100.104

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

Lists possible options that the command accepts and provides a brief example on how to use

  • -help
    -a
    Cd
    Echo
A
  • -help
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Source of information for system commands and applications available on a Linux machine

Ls
Man
- -help
Echo

A

man (manual)

Man ls

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

Flag to display output in a human readable way

man
Ls
-h
- -h

A

-h

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

Create file

Touch
Mkdir
Cp
Mv

A

Touch

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

Create a folder in Linux

Touch
Mkdir
Cp
Mv

A

Mkdir

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

Copy a file or folder

Touch
Mkdir
Cp
Mv

A

Cp

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

Move a file or folder Linux command

Touch
Mkdir
Cp
Mv

A

Mv

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

Linux command to remove a file or folder

Rm
Mv
Mkdr
Ctrl l

A

Rm

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

Determines the type of of file

Touch
Mkdir
Cp
File

A

File

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
How would you create a file named “note” in Linux? Mkdr Touch Find Grep
touch note
26
How would you remove a file named note in Linux?
rm note rm -R mydirectory To remove a specific directory
27
How would you copy note to note2 in Linux?
cp note note2
28
How do you rename a file or folder in Linux from note2 to note 3?
mv note2 note3
29
In Linux how would you switch to user? Su Wget Nano Ps
Su user2
30
Displays a list of files and directories with additional information for items like permissions, owner, links etc -l -cd -pwd -n
-l ls
31
Most important root directory, common place location to store system files used by os Passwd /etc Shadow /var
/etc
32
Main root folders found on Linux install. Stores data that is written by services or apps running on the system Passwd /var /etc /root
/var Data not associated with a specific user is here
33
Home for root system user. Home directory for root user /tmp /etc /root /var
/root
34
Unique root directory found on Linux install. Volatile and used to store data only needed to be accessed a couple times. Similar to ram on a computer /tmp /etc /root /var
/tmp
35
Simple text editor in a Linux terminal
Nano
36
Linux text editor for a terminal with the following features: searching for text, copying/pasting, jumping to a line number, finding out what line number you are on Nano Apt Display settings Su
Nano
37
Ctrl X exits out of nano in Linux terminal
True
38
Advanced text editor:modify keyboard short cuts, syntax highlighting (writing code), universal Nano VIM > >>
VIM
39
Linux command that allows us to download files from the web via http Nano Wget Scp Curl
Wget
40
Linux command that allows transfer of files securely through ssh Vim Nano Scp Wget
Scp Secure copy
41
Put in order with Scp for copying a file from our machine to a remote machine Ip of remote system User on remote system Name of file on local system Name we wish to store file as
Name of file on local system User on remote system Ip of remote system Name we wish to store file as
42
Provides list of running processor as our users session and additional information such as status code, session of code, cpu usage, name of program or command executed Ps Wget Http server Python3
Ps
43
Sigterm kills process without cleanup tasks before hand
False, Sigkill Sigterm does with cleanup before
44
Manages a users processes and sits in between the os and user Kill Systemd Ps /vim
Systemd
45
Command that allows to interact with the systemd process/daemon Ps Ls Systemctl [option]
Systemctl
46
What are the 4 options of Systemctl
Start, stop, enable, disable
47
Force a process to background Ctrl z Wget Ps Ctrl l
Ctrl z
48
How to put something from background into fore ground Ps Fg Sigterm Sigkill
Fg
49
Confirms what process is running Fg Rm Ps aux Touch
Ps aux
50
Special file with formatting by Cron process to execute each line step by step Ps aux File Touch crontab
Crontab
51
Min, hour, dom (day of month), mon (month of year), Dow (day of week), cmd are specific values for what? Crontab Ps aux Ps Touch
Crontab
52
Crontab * is used if we do not wish to provide a value for a specific field
True
53
Edit a crontab with nano Crontab -x Crontab -e Ps aux Mv
Crontab -e
54
Command used to install software on Ubuntu system. Whole suite of tools to manage packages of software Apt Sudo Wget Echo
Apt
55
In windows you click here to change the screens resolution in case you have multiple computer screens Wget Crontab Display settings Ctrl z
Display settings
56
In windows you click here to change the screens resolution in case you have multiple computer screens Display settings Mv Crontab -e Apt
Display settings
57
Change wallpaper in windows is personalize
Trye
58
Holds important files that are critical for os System32 Appv C drive C:\Windows
System32
59
Environment variables, system variables for windows directory Appv %windir% System32 Identityctrl
%windir%
60
Utility user for advanced troubleshooting and purpose is to help diagnose start up issues Msconfig Apt Ps aux Ls
Msconfig
61
Switch that keys you change the interval of ping requests -h -i Nano Apt
-i
62
Where would you go to see ping commands and what each does? Ls help -h Man ping Pwd
Man ping
63
How would you do a syn scan with Nmap? Pwd Nano Systemctrl32 Nmap -sS
Nmap -sS Nmap -h or man nmap to learn different nmap scans
64
The 3 below are associated with what tool? TCP Connect Scans (-sT) Syn “Half-open” Scans UDP Scans (-sU)
Basic nmap scans
65
What does it mean if nmap sends a tcp syn and receives nothing back?
The port is being protected by a firewall and is considered “filtered”
66
What will nmap receive back from a port to know that the port is closed?
RST (Reset)
67
True or false? syn scans (stealth scans) send back a rst tcp packet after receiving a syn/ack from the server
True
68
Name an advantage of a stealth scan (-sS)
Check to see if a port is open without establishing a connection so it can remain invisible from logs
69
Switch for an nmap UDP scan is what? -su -sn -st -sx
-sU
70
How would you run an nmap scan for the top 20 most commonly used UDP ports?
nmap -s - - top ports 20
71
This nmap scan is used when the tcp request is sent with no flags set at all sN sT sU -h
NULL scan (-sN)
72
This nmap scan works in similar fashion to bill scan but instead of sending an empty packet, a request is sent with the FIN flag (to close an active connection) sU sF sN sT
Fin scan (-sF)
73
This nmap scan sends a malformed tcp packet and expects a rst response for closed ports. The flags it sets (psh, urg and fin) blink when looked at in wire shark sF sN sT sX
Xmas scan (-sX)
74
Seeing which ip addresses contain active hosts and which don’t for a map of network structures you would use what? Enumerator Ping sweep Nano Apt
Ping sweep
75
How would you ping sweep on 172.16.x.x using nmap?
Nmap -sn 172.16.0.0/16
76
Nmap Scripting Engine NSEto scan for vulnerabilities Vuln Vism Auth Ps
vuln
77
Nmap Scripting Engine NSE to attempt to bypass authentication for running services Auth Wget Ps Http server
Auth
78
Nmap Scripting Engine NSE attempt to query running services for further information about the network Auth Discovery Wget Ps
Discovery
79
Nmap Scripting Engine NSE that is not safe and will likely affect the target Discovery Auth Ps Intrusive
Intrusive
80
How would you run a script on http-fileupload-exploiter
- - script=http-fileupload-exploiter
81
How would you run a script for both smb-enum-users and smb-enum-shares?
- - script=smb-enum-users, smb-enum-shares
82
Where would you find installed scripts?
/usr/share/nmap/scripts/script.db
83
Windows default firewall will block all ICMP packets. T or False
True
84
How would you tell Nmap not to ping the host before scanning? Nano -Pn Su Ps aux
-Pn
85
This tool is used to enumerate SMB shares on both Wi does and Linux systems. Quickly extracts from target SMB Smb -Pn Enum4linux Nano
Enum4Linux
86
What command would you use if you wanted a full basic enumeration? Use 10.10.157.121
Enum4linux -a 10.10.157.121
87
enum4linux get user list is -M
False, -U -M is get machine list
88
-S I’d get sharelist for enum4linux
True, -N I’d get name list dump
89
Enum4linux get group and member list is -P
False, -G -P is password policy information
90
Smbclient //[IP]/[SHARE] -U [name] Specify user Finds file Ip name Port number
Specify user
91
Smbclient //[IP]/[SHARE] -p [port]
Specify the port
92
What is telnet 10.10.10.3 23
Telnet command Telnet ip port#
93
Type of shell in which a target machine communicates back to the attacking machine. Attack machine has a listening port
Reverse shell
94
In active ftp the client opens a port and listens. The server is required to actively connect to it
True In passive ftp the server opens a port and listens and the client connects to it
95
How would you tell nmap to scan only port 80?
-p 80
96
How would you tell which user logged in last?
Event viewer-windows log-security
97
Net user does what?
Shows what users are on
98
Allows a system to share directories and files with others over a network to access remote systems like local files NFS /etc Mkdr /var
Network file system
99
Process allows an NFS client to interact with a remote directory like it’s a physical device NFS Mounting Touch Enum4linux
Mounting
100
Process which establishes an active connection to the target hosts to discover potential attack vectors in the system and to learn exploiting a system NFS Mounting Touch Enumeration
Enumeration
101
Key to interacting with any nfs is NFS-approval Mounting Touch NFS-common
nfs-common
102
Most useful nfs commands to extracting information from nfs? Mkdr Enum4linux Showmount Mount.nfs
Showmount and Mount.nfs
103
On nfs shares this prevents anyone connecting to the nfs share from having root access to the nfs volume Mounting Enum4linux Root squashing /var
Root squashing
104
Files can be run with the permissions of the files owner/group. Super user Mounting Root squashing Su SUID
SUID
105
Upload files to nfs share and control permissions of files. We set permissions Mounting Root squashing Method SUID
Method
106
Actions to gain what? NFS access-gain low privilege shell-upload bash executable to nfs share-set SUID permissions for root squash-login SSH-execute SUID but bash-root access Mounting Root key Root shell SUID
Root shell
107
Scan a range of ip addresses and determine version of any mail servers it encounters Smtp_version Smtp_ip Smtp_key Smtp_root
Smtp_version
108
VRFY EXPN
Confirm names of valid users Actual address if users aliases and lists of email
109
What command replaces Netstat?
Ss
110
Omit search results that contain particular word or phrase
-
111
Search engine for devices connected to internet
Shodan
112
Censys focuses internet connected hosts, websites, certificates and other internet assets.
True
113
Allows user to upload files or urls to scan against antivirus engines or web scanners
Virustotal