Section 4: Tools of the Trade Flashcards

1
Q

What is “ping”?

A

A dns tool. It resolves web addresses to an IP address.

> ping www.website.com

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

How do you check IPV4 with ping?

A

> ping www.google.com -4

Use the -4 flag

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

How do you check if you have an intermittent connection?

A

> ping -t www.google.com

Windows only!! You do not need the -t flag for linux systems

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

What is netstat?

A

Shows what hosts you are currently connected to.

> netstat -n

Shows what you are connected to currently. Shows each tab you have open on a browser - addresses ending 443 are https.

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

What does this command do?

> netstat -a

A

Shows all open ports to see what ports are listening. Port 80 is okay!

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

What is “tracert”?

A

Trace Route - see what routers are being hit.

> tracert www.google.com

E.g.
First line is the internal router
Second is the comcast router.

If you can’t trace route someone you can confirm if the issue is internal if the issue fails on the first 2 lines.

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

What is “arp”?

A

ARP - Address Resolution Protocol

Can see if something is going wrong with switches. Can resolve an ethernet mac address from an IP address.

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

> arp -a

A

Shows the arp cache - dynamic and static addresses. Looking out for an “arp poisoner”. Can easily see if a nic is wrong.

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

What is “ipconfig”?

A

ipconfig (windows), ip (linux)

Shows IPV6 and IPV4 addresses on the Ethernet Adapter.

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

> ipconfig -all

A

Windows command with a bunch of info and shows the MAC Address.

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

> ip addr

A

Linux version of ipconfig - shows MAC Address

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

> nslookup www.google.com

A

Helps with dns issues. Use to query dns server and check things. Shows IP address for the queried website.

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

How do you change the dns server temporarily?

A

> nslookup

To enter the interactive mode

> server 8.8.8.8

Use the 8.8.8.8 server and see if the issue goes away.

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

What is “dig”?

A

Linux only. Shows any cached info too.
> dig www.google.com

Can also change the server
> dig @8.8.8.8

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

How to get an MX record?

A

> dig MX www.google.com

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

What is netcat?

A

Linux only. Can open and listen on ports AND act as a client - good for pen testing and vulnerability assessment.

E.g. Open up port 231:

> sudo netcat -l 231

17
Q

What is a Network Scanner?

A

Useful to see open ports on all systems on your network.

18
Q

What is nmap?
> nmap -v -sn subnetmask
> nmap -v -A scanme.nmap.org

A

Useful for hardware inventory.

“-A” shows the operating systems and what ports are open

19
Q

What is zenmap?

A

GUI of nmap

20
Q

What is Advanced Port Scanner?

A

GUI - Scans IPs and looks at the ports that are open.

21
Q

What is wireshark SB Network Inventory?

A

Useful for looking for all devices on the network - iphones etc.

22
Q

What is WireShark?

A

A protocol analyser!

Uses a sniffer and analyzer. Great to filter data by services or protocols. E.g. DHCP/http traffic.

23
Q

What’s a sniffer?

A

“pcap” “winpcap”

Software that grabs all the data that goes through a particular interface. Can either go to a log or to a protocol analyzer.

24
Q

What is wireshark good for?

A

A broadcast storm, or to isolate a rogue server.

25
Q

Whats a downside to wireshark?

A

Sometimes misses incoming and outgoing packets. Instead use TCP dump - a better sniffer.

26
Q

What is SNMP network?

A

Simple Network Management Protocol - used to administer and manage networks devices form a single source.

27
Q

What is an SNMP network printer? How does it work?

A

A printer that has an AGENT that talks to the SNMP network. Uses UDP 161 or TLS 10161 (encrypted).
Becomes a MANAGED DEVICE.

Make one device an SNMP Manager, to communicate with all the devices. UDP 162 or TLS 10162 (encrypted).

28
Q

NMS

A

Network Management Station

29
Q

MIB

A

Management Information Base - kinda the SDK for each device.

30
Q

What are the standard commands for SNMP?

A

GET - regular query.

TRAP - on the managed device and info is sent to NMS when there is an issue - printer on fire.

WALK - batch of GETS.

31
Q

SNMP Versions

A

SNMPv1 is unencrypted
SNMPv2 has basic encrption
SNMPv3 is best and uses TLS encryption. Common to have different versions of SNMP in a network.

32
Q

> snmp-server community totalhome RO

A

Command to turn on SNMP on a managed device.

Community - the organization of managed devices.

RO - read only or RW - read write

33
Q

Non-network Events

A

Host starting, shutdown, OS updates, application installs/stalls/starts/stops
Security - system logons - failures/success

Each has the following info:
date time and process id/source, account, event number, event description

34
Q

Non-network event logs

A

Host starting, shutdown, OS updates, application installs/stalls/starts/stops
Security - system logons - failures/success

35
Q

Network event logs

A
  • Things that happen to applications on a network
  • Remote logins
  • Activity on a firewall
36
Q

Which is best - decentralized or centralized logging?

A

Decentralized is fine for small systems.
But centralized is better.
Best to use SNMP to centralize logs.
Common to use 3rd parties MaaS.

37
Q

What is generally in a log

A

Each has the following info:

  • date
  • time
  • process id/source
  • account
  • event number
  • event description