US Army Brighton School Pre-Test Quizlets

127 flashcards

TCP
Transmission Control Protocol: connection oriented, requires two ends of communication
UDP
User Datagram Protocol: less secure, faster connection, uses any kind of connection
IP
Internet Protocol
Handshake
A three way method SYN-SYN ACK- ACK
DNS
Domain Name System
NIC
Network Interface Card allows a computer to connect to the internet or network
LAN
Local Area Network
WAN
Wide Area Network
DHCP
Dynamic Host Configuration Protocol: Network protocol automatically assigns IP addresses
DDoS
Distributed Denial of Service: overloads the target with many requests
Brute Force Password Attack
Dictionary attack
Name the different ports
1. SSH (22) 2. telnet (23) 3. SMTP (25) 4. DNS (53) 5. HTTP (80) 6. HTTPS (443) 7. SMB (443, 139,138,137)
SSH
Secure Shell (22)
telnet
Teletype network (23)
SMTP
Simple Mail Transfer Protocol (25)
DNS
Domain Name System (53)
HTTP
Hypertext Transfer Protocol (80)
HTTPS
Hypertext Transfer Protocol Secure (443)
SMB
Server Message Block (443, 139, 138, 137)
PHYSICAL
LAYER 1
DATA LINK
LAYER 2
NETWORK
LAYER3
TRANSPORT
LAYER4
SESSION
LAYER5
PRESENTATION
LAYER6
APPLICATION
LAYER7
Different Router Speeds
2.4, 5, 6GHz
IP address
Internet Protocol Address: Public and Private assigned by router
IP classes
A - E & 1-255 (anything above E & 255 is not IP)
IP A class
Large Networks (1-127)
IP B class
Medium to Large Networks (128-191)
IP C class
Small LANs (192-223)
IP D class
Audio/Video streaming (224-239)
IP E class
Research (240-255)
PING
sends and ICMP Echos Request to a node and listens for an ICMP Echo Reply
PING
The ping command tests the reachability of network devices by sending ICMP echo request packets to a target device
ifconfig
used to display a network interface (common to find IP address)
iwconfig
Similar to ifconfig but works for wireless interfaces only
tcpdump
A command line utility that allows you to capture and analyze network traffic going through your system
arp -a
manipulates the systems ARP cache. ARP cache is a collection of entries that map IP addresses to their corresponding MAC address. Allows you to see all other devices actively connected to this network.
sudo
become super user root giving you permission to access or create differing things, sometimes requires yours or designated persons password
sudo ifconfig eth0 down
shuts down network so you can (sudo macchanger -r eth0) change the mac address and IP address of your or targets IP address
systemctl (start-stop-enable-disable)
Start, stop, enable, disable, and view the status of services for SSH entry
nano
allows user to edit, view, or add to exiting files
Passively monitoring requires what besides a NIC to work?
Alfa Card
Steps in Wireless Surveying
1. hook up alpha card 2. (sudo ifconfig ((interface)) up) 3. change mac address (sudo macchanger -r ((interface)) 4. sudo airmon-ng check kill 5. sudo airmon-ng start (interface) 6. sudo airodump-ng (interface) >> ~/Absolute/Path
what is an interface
examples (wlan0, eth0) ways of connecting to a network
steps to change MAC address
1. Stop your network manager. $ sudo service network-manager stop. 2. Take down the targeted network interface. $ ifconfig wlp2s0b1 down. 3. change your MAC address. $ sudo macchanger -r (interface) 4. Change MAC Address in Linux. 5. Restart your network manager and the associated network interface. (sudo ifconfig (interface) up
3 different categories in systems and permissions (system managers)
user, group, other (guests)
What is NMAP
a port scanner that can search for host on a network identify OS running, and detect the version of the services running in open ports.
how to SCP files/info to your device
scp /path/to/local/file your_username@your_IPaddress: /path/to/remote/destination
order of systems and permissions left to right
user, group, other (guests) rwxrwxrwx (read4, write2, execute1)
command to change permissions of user/group/guest
chmod (sudo chmod 777 My_File.txt)
sudo stands for what
super user-do (assumes highest order of authority)
chown
modifies file ownership and group
chmod
modifies file mode bits (rwxrwxrwx)
usermod
modify a user account, including permissions, change what group you belong to
passwd
change user password
what command changes users password
sudo passwd
what command changes users
su
what command displays file system status
stat
what command lists everything in the current directory
ls (ls -a shows all public and hidden directories)
what command shows all users logged on
who
what command shows which user is currently logged on and using the system
whoami
what command shows the current working directory?
pwd
what command changes directories
cd (./../direct_path)
what command kills loops or frozen terminals
ctrl + c
what command represents "all" when searching for something
*
what command prints the system information youre working on?
uname (use -a to show current version of the system for exploitation purposes)
what command opens is used to open/view files?
cat
what command is used to add text to an existing file?
echo
what command is used to create a new file?
touch
1 > does what to a file?
replaces all contents within an existing file
2 >'s does what to a file?
adds text to existing file (sudo echo "hello this is echo" >> example.txt
what command removes and unlinks files/directories?
rm
what command returns the hash of the destination file for integrity purposes?
shasum -a 256
what does the command grep do?
search with regular expression for words/phrases that are exact matches
what command is used to word count a file
wc (example: wc [file])
what does the command | tee do?
reads from a standard input and writes to a standard output and files
what command is used to create a directory?
mkdir
the command shred does what?
overwrites a file to hide its contents and optionally deletes it
what command copies files and directories?
cp
what command moves and rename files?
mv (always use the absolute path and give desired file name)
the command "head" does what
reads the first part of a file contents
the command tail does what?
reads the last part of a file contents
the command "find" does what?
searches for files in a directory hierarchy
what command shows all previous commands in list format?
history
"SHABANG"
#!/bin/bash
user home directory
~
make new directory
mkdir
change directory
cd
move
mv
copy
cp
print full path of current directory
pwd
create empty file
touch
display contents
cat
root privilege
sudo
previous commands
history
cd 1 level above
cd ..
delete directory and contents
rm -f
delete file
rm (filename)
root directory
/
update repository list
sudo apt update
display user and group info
whoami
edit file
nano
system config files directory
/etc
directory deletes file after reboot/shutdown
/tmp
apend "hello world"
>>
clear screen
clear
apt update _ _ apt upgrade
&&
install net-tools in repository
sudo apt install net-tool
delete directory within directory
rmdir (name)
copy file directory into directory
cp ~/directory/filename ~/directory.
rename file
mv file1 file 2
move to home directory
cd
list all files in current directory include hidden human readable
ls -ahl
print "test" with no new line
echo -n
search for word in file
grep (word) (file)
create file with content
echo (content) > filename
show UID GID and groups
id
show ip in brief format
ip -br a
open file in nano editor
nano (filename)
check ssh service status
systemctl status ssh
list mod time
ls -lt
create two directories
mkdir -p name/name
remove empty directory
rmdir (name)
calendar
cal