Cmd Line Flashcards

(22 cards)

1
Q

What is Kali Linux?

A

An operating system meant to handle penetration testing and auditing

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

ICMP

A

Internet Control Message Protocol is a network layer protocol mostly dedicated to diagnose communication issues

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

TCP

A

Transmission Control Protocol
is a fundamental transport layer protocol meant to reliably control the delivery of data packets.

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

DNS

A

Domain Name System is the phone book that translates web addresses into IP addresses

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

UDP

A

User Datagram Protocol is a fast paced transport layer protocol designed to prioritize speed over consistency.

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

MAC

A

Media Access Control address is a unique hardware identification for a NIC

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

NIC

A

Network Interface Controller
Is a hardware component that connects a computer to a network

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

DHCP

A

Dynamic Host Configuration Protocol is a network management, application layer protocol that assigns IPs, Subnet masks, DNSs, and default gateways.

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

Ping Syntax

A

Windows: ping [ip address]
Linux: ping -t (seconds) [ip address]

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

Localhost

A

Your own machine’s hostname or url that maps the DNS to an ip address

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

Ping uses

A

Ensure a network is active
Ensure IPS’s, firewalls, and routers block ICMP traffic

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

Ipconfig Syntax

A

Window: ipconfig [/options]
Linux: ipconfig [-opt]

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

Ipconfig options for Windows & Linux

A

/displaydns - show contents of a dns cache
/flushdns - erase contents of a dns cache

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

Ipconfig options for Linux

A

eth[n] - shows the configuration of the nth NIC on a Linux system
eth[n] (-)promisc - enables (or disables) the nth NIC to process all traffic it receives
eth[n] (-)allmulti - enables (or disables) multicast mode allowing NIC to process all multicast traffic

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

Netstat

A

Allows you to view stats for traffic going through a system

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

Ipconfig uses

A

Shows the TCP/IP configuration of a whole system. This includes the IP, subnet mask, default gateway, MAC address and DNS server address

17
Q

Netstat Syntax

A

netstat (-opts) - displays a listing of all open connections
(-a) - includes UDP ports
(-r) - displays routing table
(-e) - displays details such as bytes
(-s) - displays stats of packets
(-n) - displays addresses and port numbers in numerical order
(-p) - displays stats of protocols

18
Q

Netstat connection states

A

ESTABLISHED - data transfer phase
LISTEN - waiting for connection request
CLOSE_WAIT - waiting to terminate connection
TIME_WAIT - waiting for response to affirm connection
SYN_SENT - sent TCP-SYN packet waiting for TCP-ACK
SYN_RECIEVED - sent TCP-SYN-ACK waiting to affirm connection

19
Q

Tracert use

A

Lists the routers between two systems by identifying the ip addresses, hostnames and rtt in each hop.

20
Q

RTT

A

Round-Trip Time or time taken for a package to go to point A and back.

21
Q

Tracert syntax

A

Windows: tracert [dns]
Linux: traceroute [dns]
Both: “… -d [dns]” forces not to resolve IPs to hostnames

22
Q

ARP

A

Address Resolution Protocol is a Data Link layer protocol that maps MAC addresses to IP addresses