Term
|
Definition
remove
-r = recursive -f = force -i = interactive |
|
|
Term
|
Definition
add onto
(output) file1 >> file2 >> = add onto bottom
(output) file1 > file2 > = write over (replace) existing file
append = >> or > |
|
|
Term
|
Definition
move files (rename)
mv file file2
-rename or move locations |
|
|
Term
|
Definition
pulls up manual if available
man command = man cp |
|
|
Term
|
Definition
chmod 664 test.txt
rwx ugo read write execute / user group other r=4 w=2 x=1
chown chelsie text.txt -you don't have to specify old owner, just new one
chown user: group (file/folder) -changes owner and group
chgrp group (file/folder) |
|
|
Term
|
Definition
copy
sudo cp (file) (file location)
/* = copy contents of folder ~p = maintain all permissions |
|
|
Term
|
Definition
. = current directory .. = parent or previous directory
example: cd.. |
|
|
Term
|
Definition
concatenate -It allows you to view the contents of a file
cat file1
-n = show number line
cat = output |
|
|
Term
|
Definition
search for
* = wildcard
grep test *.txt -searches for test inside any .txt file |
|
|
Term
|
Definition
list
-a = list all files including hidden -l = list all files permissions / attributes |
|
|
Term
|
Definition
-used to report anything you give it, or view variables
-use single quotes to not execute a variable or other special characters
echo "Hi" = Hi echo 'Hello' = Hello echo $PATH = (path you're on) |
|
|
Term
|
Definition
interface configuration
ifconfig = look up IP address
-to change your IP address sudo ifconfig Eth0 10.0.0.0 |
|
|
Term
|
Definition
network mapping tool
-v = verbose (displays more detail) -sU = UDP scans [sudo nmap -sU target] UDP = one way, just listens -T0-T5 = timing of scans 0=slowest 5=fastest [nmap -PN -P 443 -T5 target] -PN = no ping -P = only scans specific ports (you can combine) scan range / specific ports / multiple ports 1-1000 80 80,443 |
|
|
Term
|
Definition
Linux = 3 partitions
1 = root/boot (ext3 or ext4) 2 = /home (ext3 or ext4) 3 = swap (extra memory)
Server or Desktop Server = headless Desktop = GUI (graphical user interface)
Linux vs. GNU/Linux Linux refers to the kernel GNU/Linux refers to the distro (distribution) |
|
|
Term
|
Definition
A mask used to determine what subnet and IP address belongs to. |
|
|
Term
|
Definition
192.168.0.0 - 192.168.255.255
172.16.0.0 - 172.31.255.255
10.0.0.0 - 10.255.255.255 |
|
|
Term
Basic Networking Trouble Shooting |
|
Definition
3 Examples:
-ping the router -wiggle the cord -check people around you |
|
|
Term
|
Definition
Dynamic host configuration protocol:
It assigns dynamic IP addresses to devices on a network. |
|
|
Term
|
Definition
Internet Protocol:
Numerical label assigned to each device on a network that uses the internet protocol for communication. |
|
|
Term
Common Ports
21- 22- 23- 25- 80- 443- 1433- 3306- 3389- |
|
Definition
21-FTP 22-SSH 23-telnet 25-smtp 80-http 443-https 1433-ms-SQL 3306-my-SQL 3389-RDP (remote desktop) |
|
|
Term
|
Definition
Become super user without super user password. |
|
|
Term
|
Definition
A device on a network that serves as an entrance to another network. |
|
|
Term
|
Definition
Demilitarized Zone
A computer or small sub network that sits between a trusted internal network and an untrusted public network. |
|
|
Term
|
Definition
Super User
su = keep same path
su- = brings you back
*Difference: su- changes your present working directory (pwd) and your path. |
|
|
Term
Vim Commands
I A gg G dd y p shift v |
|
Definition
Vim = command line text editor
I = insert at the beginning of the line A = insert at the end of the line gg = takes you to the top of the page G = takes you to the last line of the page dd = delete entire line y = yank (copy) p = paste shift v = highlight line to yank shift v+y+p |
|
|
Term
nasl
How do you run a nasl?
Where are they stored? |
|
Definition
Nessus Attack Scripting Language -nasl refers to Nessus plugin
To run: sudo nasl -t (target) plugin.nasl
Where they are stored: /var/lib/nessus/plugin |
|
|