{"id":262,"date":"2019-11-16T19:02:09","date_gmt":"2019-11-16T19:02:09","guid":{"rendered":"http:\/\/www.spktechfit.com\/?p=262"},"modified":"2019-11-16T19:02:09","modified_gmt":"2019-11-16T19:02:09","slug":"security-course-2-6-security-assessment-tools","status":"publish","type":"post","link":"https:\/\/www.spktechfit.com\/?p=262","title":{"rendered":"Security+ Course &#8211; 2.6 Security Assessment Tools"},"content":{"rendered":"<h2>2.6.1 Protocol Analysers<\/h2>\n<p>Protocol Analysers allow administrators to peer into the packets travelling on a network and inspect them in deep detail. This is very useful when trying to troubleshoot network issues or investigate security incidents. Wireshark intercepts traffic and converts that binary traffic into human-readable format. This makes it easy to identify what traffic is crossing your network, how much of it, how frequently, how much latency there is between certain hops, and so forth.<\/p>\n<p><strong>Wireshark<\/strong> is a protocol analyser\/packet sniffer. It can be used to get in depth detail about the traffic on the network.<\/p>\n<p><strong>TCPDUMP<\/strong> is a command line packet sniffer.<\/p>\n<p>Wireshark and TCPDUMP and both built on the libcap library<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<h2>2.6.2 Network Scanning<\/h2>\n<p>Network scanning is used to detect active systems on the network.<\/p>\n<h3>Network Mapping<\/h3>\n<p>This provides an important glimpse of network activity. It is particularly useful at detecting rogue systems. One of the most popular network mapping tools is NMAP (short for network mapper). It is a free download from nmap.org.<\/p>\n<p>NMAP can scan your network and find a lot information such a<\/p>\n<ul>\n<li>Device names<\/li>\n<li>OS version<\/li>\n<li>Open ports<\/li>\n<\/ul>\n<p><em><strong>EXAM TIPS: get some hands on experience with NMAP<\/strong><\/em><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<h2>2.6.3 Exploitation frameworks<\/h2>\n<p>These are like hackers Swiss army knives. They contain the tools used to test vulnerabilities. They can be used for both evil and good.<\/p>\n<h3>Metasploit https:\/\/www.metasploit.com\/<\/h3>\n<p>This is one of the most common Exploitation Frameworks. It began as an open source project but was purchased the security firm Rapid 7. The Metasploit Community Edition is free, but the Pro version is a commercial product with some extra features.<\/p>\n<p>With This software you can scan your network for devices. It will then give you information about these. It will tell you what services are running and on what port. An example might be SSH running on port 22. You can then search Metasploit for a &#8220;SSH exploit&#8221; module, this could be a login attack. You give it a list of usernames and passwords and it loops through them trying to connect. This can return some useful information like if a username actually exists on the system. From there you could carry out a bruteforce attack.<\/p>\n<p>The system has lots of different modules for many different services and programs.<\/p>\n<p><em><strong>Exam TIP: get some hands on experience with Metasploit<\/strong><\/em><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<h2>2.6.4 Command Line Network Tools<\/h2>\n<p>These are quick and easy way to view network configuration and troubleshooting information.<\/p>\n<h3>ICMP and Ping<\/h3>\n<p>Ping helps you check if another system is accessible. It uses the Internet Control Message Protocol (ICMP).<\/p>\n<p>The system that initiates the ping sends an &#8220;Are you there?&#8221; message. If the destination system is accessible it will send an &#8220;Yes I am here&#8221; response.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-263 aligncenter\" src=\"http:\/\/www.spktechfit.com\/wp-content\/uploads\/2019\/11\/ping.png\" alt=\"\" width=\"629\" height=\"278\" \/><\/p>\n<p><strong> Troubleshooting with Ping<\/strong><\/p>\n<p>Ping can be very useful for troubleshooting. EG: say you are having trouble hitting a web server. With you can:<\/p>\n<ol>\n<li>Try pinging the web server<\/li>\n<li>Try pinging another server on the internet. This will tell you if you can access the internet<\/li>\n<li>Ping a system on your local network<\/li>\n<li>Try the ping from a different computer<\/li>\n<\/ol>\n<p><strong>NOTE:\u00a0<\/strong> some systems have ping blocked on the firewall. This is worth noting because if a system doesn&#8217;t reply it doesn&#8217;t mean its offline, it just might not be responding to pings.<\/p>\n<h3>Trace Route<\/h3>\n<p>This command allow you to trace the path between two hosts on the network.<\/p>\n<p>On Linux the command is: traceroute<br \/>\nOn Windows the command is: tracert<\/p>\n<p>Example of trace route on Windows:<br \/>\n<em>tracert lynda.com<\/em><br \/>\n<em>Tracing route to lynda.com [8.39.42.106]<\/em><br \/>\n<em>over a maximum of 30 hops:<\/em><\/p>\n<p><em>1 2 ms 1 ms 2 ms 192-168-1-1.tpgi.com.au [192.168.1.1]<\/em><br \/>\n<em>2 12 ms 10 ms 9 ms syd-sot-ken2-bras5-lo-20.tpgi.com.au [10.20.22.62]<\/em><br \/>\n<em>3 10 ms 12 ms 11 ms nme-sot-dry-wgw1-be-10.tpgi.com.au [203.219.155.8]<\/em><br \/>\n<em>4 51 ms 26 ms 22 ms nme-sot-dry-crt1-be-50.tpgi.com.au [203.219.107.237]<\/em><br \/>\n<em>5 24 ms 22 ms 23 ms nme-apt-bur-crt1-be-30.tpgi.com.au [202.7.173.21]<\/em><br \/>\n<em>6 28 ms 30 ms 22 ms syd-gls-har-crt1-be-10.tpgi.com.au [202.7.171.173]<\/em><br \/>\n<em>7 25 ms 22 ms 22 ms syd-gls-har-int2-be200.tpgi.com.au [203.221.3.68]<\/em><br \/>\n<em>8 176 ms 177 ms 177 ms equinix-ix.sjc1.us.voxel.net [206.223.116.4]<\/em><br \/>\n<em>9 219 ms 219 ms 225 ms bbr1.inapbb-dal-sje-1-2-4-6.dal006.pnap.net [64.95.158.182]<\/em><br \/>\n<em>10 221 ms 222 ms 220 ms bbr2.ae7.dal006.pnap.net [64.95.158.202]<\/em><br \/>\n<em>11 252 ms 254 ms 251 ms bbr1.xe-0-0-1.inapbb-wdc-dal-7.wdc002.pnap.net [64.95.158.210]<\/em><br \/>\n<em>12 259 ms 258 ms 259 ms core2.be-3.inapvox-9.wdc002.pnap.net [64.95.158.245]<\/em><br \/>\n<em>13 236 ms 238 ms 236 ms border12.xe-1-1-bbnet2.wdc002.pnap.net [216.52.127.67]<\/em><br \/>\n<em>14 236 ms 236 ms 236 ms lynda-3.border11.wdc002.pnap.net [69.25.40.38]<\/em><br \/>\n<em>15 239 ms 236 ms 241 ms 45-42-65-4.fwd.lynda.com [45.42.65.4]<\/em><br \/>\n<em>16 236 ms 237 ms 237 ms www.lynda.com [8.39.42.106]<\/em><\/p>\n<p><em>Trace complete.<\/em><\/p>\n<p>You get a line for each system it hits on the way. If you get stars *** it means that system is not responding with information about itself.<\/p>\n<h3>IP Configuration<\/h3>\n<p>This gives information about the network interface configuration on the local computer. It gives you MAC address, ip, subnet, gateway etc&#8230;<\/p>\n<p>Windows: ipconfig<br \/>\nLinux and Mac: ifconfig<\/p>\n<p>You select a single interface by using the command <i>\u00a0ifconfig en0<\/i><\/p>\n<p>These commands can also modify the IP configuration, but we don&#8217;t need to know this for the exam.<\/p>\n<h2>ARP (Address Resolution Protocol)<\/h2>\n<p>This translates IP addresses used at the network layer and MAC addresses used at the ethernet layer. All operating systems in an IPv4\u00a0Ethernet\u00a0network keep an ARP cache. Every time a host requests a MAC address in order to send a\u00a0packet\u00a0to another host in the LAN, it checks its ARP cache to see if the IP to MAC address translation already exists. If it does, then a new ARP request is unnecessary. If the translation does not already exist, then the request for network addresses is sent and ARP is performed.<\/p>\n<p>You can view the systems ARP cache using the <i>arp <\/i>\u00a0command.<\/p>\n<p><em>&gt;arp -a<\/em><\/p>\n<p><em>Interface: 192.168.1.13 &#8212; 0x9<\/em><br \/>\n<em>Internet Address Physical Address Type<\/em><br \/>\n<em>192.168.1.1 84-9f-b5-57-f2-47 dynamic<\/em><br \/>\n<em>192.168.1.2 b0-2a-43-57-c3-64 dynamic<\/em><br \/>\n<em>192.168.1.255 ff-ff-ff-ff-ff-ff static<\/em><br \/>\n<em>224.0.0.22 01-00-5e-00-00-16 static<\/em><br \/>\n<em>224.0.0.251 01-00-5e-00-00-fb static<\/em><br \/>\n<em>224.0.0.252 01-00-5e-00-00-fc static<\/em><br \/>\n<em>239.255.255.250 01-00-5e-7f-ff-fa static<\/em><br \/>\n<em>255.255.255.255 ff-ff-ff-ff-ff-ff static<\/em><\/p>\n<h2>Netstat<\/h2>\n<p>This displays network statistic on Mac and Windows. It shows you what connections are open, what ports are being used, destination, state etc&#8230;<\/p>\n<p>An example output:<\/p>\n<p><em>&gt;netstat<\/em><\/p>\n<p><em>Active Connections<\/em><\/p>\n<p><em>Proto Local Address Foreign Address State<\/em><br \/>\n<em>TCP 192.168.1.13:2257 40.90.189.152:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2293 52.109.116.4:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2317 40.90.189.152:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2321 172.217.194.188:5228 ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2326 192-168-1-2:8009 ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2404 a184-26-33-55:https CLOSE_WAIT<\/em><br \/>\n<em>TCP 192.168.1.13:2405 a184-26-33-55:https CLOSE_WAIT<\/em><br \/>\n<em>TCP 192.168.1.13:2406 a184-26-33-55:https CLOSE_WAIT<\/em><br \/>\n<em>TCP 192.168.1.13:2411 a23-202-162-124:http CLOSE_WAIT<\/em><br \/>\n<em>TCP 192.168.1.13:2412 a23-202-162-124:http CLOSE_WAIT<\/em><br \/>\n<em>TCP 192.168.1.13:2413 a23-202-162-124:http CLOSE_WAIT<\/em><br \/>\n<em>TCP 192.168.1.13:2414 a23-202-162-124:http CLOSE_WAIT<\/em><br \/>\n<em>TCP 192.168.1.13:2415 a23-202-162-124:http CLOSE_WAIT<\/em><br \/>\n<em>TCP 192.168.1.13:2416 a23-202-162-124:http CLOSE_WAIT<\/em><br \/>\n<em>TCP 192.168.1.13:2417 nme-sot-dry-ak1-136:https CLOSE_WAIT<\/em><br \/>\n<em>TCP 192.168.1.13:2418 a184-26-33-55:https CLOSE_WAIT<\/em><br \/>\n<em>TCP 192.168.1.13:2419 a184-26-33-55:https CLOSE_WAIT<\/em><br \/>\n<em>TCP 192.168.1.13:2420 a184-26-33-55:https CLOSE_WAIT<\/em><br \/>\n<em>TCP 192.168.1.13:2426 a184-26-33-55:https CLOSE_WAIT<\/em><br \/>\n<em>TCP 192.168.1.13:2427 mia04-011:http ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2441 52.109.116.4:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2577 151.101.80.133:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2588 syd09s14-in-f14:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2592 syd09s17-in-f10:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2594 sin01s16-in-f4:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2600 52.98.4.82:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2609 syd09s13-in-f14:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2610 syd15s01-in-f14:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2611 syd15s03-in-f14:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2612 syd15s06-in-f14:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2613 searchsites:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2615 syd15s02-in-f10:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2618 server-52-85-45-50:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2621 syd15s06-in-f3:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2629 52.109.112.47:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2630 52.109.112.47:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2631 52.109.112.47:https ESTABLISHED<\/em><br \/>\n<em>TCP 192.168.1.13:2635 r-57-41-234-77:http FIN_WAIT_1<\/em><br \/>\n<em>TCP 192.168.1.13:2636 li1462-250:https ESTABLISHED<\/em><\/p>\n<p><b>On Linux you use SS to get this information<\/b><\/p>\n<h3 style=\"margin: 0in; font-family: Calibri; font-size: 14.0pt; color: #2e75b5;\">NC (Net Cap)<\/h3>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">This command allows you to send and receive raw text on a network connection on Mac and Linux. This can be useful for troubleshooting, but can also be used by attackers to send raw malicious commands to a server.<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">You can open a connection to a server by doing the following:<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"><span style=\"font-style: italic;\">Nc lynda.com<\/span><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">Then you can send commands:<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"><span style=\"font-style: italic;\">Get \/<\/span><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">This will get the root and try and display the html<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"><span style=\"font-weight: bold;\">There is no NC equivalent on Windows.<\/span><\/p>\n<h3>Command Summary<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-264 aligncenter\" src=\"http:\/\/www.spktechfit.com\/wp-content\/uploads\/2019\/11\/CommandLine.png\" alt=\"\" width=\"740\" height=\"338\" \/><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<h2>2.6.5 DNS Harvesting<\/h2>\n<p>Doman Name Service translates between domain names and IP addresses.<\/p>\n<h3>Dig command<\/h3>\n<p>This is the primary command for looking up DNS on Mac and Linux systems.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-266 aligncenter\" src=\"http:\/\/www.spktechfit.com\/wp-content\/uploads\/2019\/11\/dig.png\" alt=\"\" width=\"614\" height=\"350\" \/><\/p>\n<h3>NSLOOKUP<\/h3>\n<p>This is the Windows version of the dig command. It works on Mac and Linux too.<\/p>\n<p><em>nslookup lynda.com<\/em><br \/>\n<em>Server: UnKnown<\/em><br \/>\n<em>Address: fe80::1<\/em><\/p>\n<p><em>Non-authoritative answer:<\/em><br \/>\n<em>Name: lynda.com<\/em><br \/>\n<em>Address: 8.39.42.106<\/em><\/p>\n<h3>Whois Lookup<\/h3>\n<p>The Whois utility can help you learn more about the ownership of domain names and IP addresses. There are many websites that offer Whois Lookups. An example is <a href=\"http:\/\/whois.domaintools.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/whois.domaintools.com\/<\/a> You can lookup a domain name here and it will give you lots of information like:<\/p>\n<ul>\n<li>The registrar<\/li>\n<li>How old it is<\/li>\n<li>IP address<\/li>\n<li>Name Servers<\/li>\n<li>IP Location<\/li>\n<li>Domain status<\/li>\n<li>Server type<\/li>\n<li>And more<\/li>\n<\/ul>\n<p>You can also use Whois Lookup for an IP address.<\/p>\n<h3>\nReverse Whois<\/h3>\n<p><a href=\"https:\/\/viewdns.info\/reversewhois\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/viewdns.info\/reversewhois\/<\/a><br \/>\nWith this you can enter an email address and it will return which domains are linked to this address. EG: if you put in hostmaster@linkedin.com it pulls up all the domains that have this address as the owner\/contact.<\/p>\n<hr \/>\n<h4><a href=\"http:\/\/www.spktechfit.com\/?p=211\">Comptia Security+ (SY0-501) Study Notes Menu<\/a><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>2.6.1 Protocol Analysers Protocol Analysers allow administrators to peer into the packets travelling on a network and inspect them in deep detail. This is very useful when trying to troubleshoot network issues or investigate security incidents. Wireshark intercepts traffic and converts that binary traffic into human-readable format. This makes it easy to identify what traffic [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[11],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts\/262"}],"collection":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=262"}],"version-history":[{"count":3,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts\/262\/revisions"}],"predecessor-version":[{"id":269,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts\/262\/revisions\/269"}],"wp:attachment":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}