﻿{"id":74,"date":"2020-05-28T18:41:20","date_gmt":"2020-05-28T10:41:20","guid":{"rendered":"https:\/\/byy3.com\/?p=74"},"modified":"2020-05-28T18:41:20","modified_gmt":"2020-05-28T10:41:20","slug":"rp-web-scanning","status":"publish","type":"post","link":"https:\/\/byy3.com\/?p=74","title":{"rendered":"RP: Web Scanning"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>[Task 1] Pull the lever, Kronk!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>[Task 2] \u2026I\u2019m supposed to scan with that?<br><\/strong><strong>I used this as a reference:<\/strong><br><a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/redteamtutorials.com\/2018\/10\/24\/nikto-cheatsheet\/\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >https:\/\/redteamtutorials.com\/2018\/10\/24\/nikto-cheatsheet\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Answering the questions:<br><\/strong>Use command to find switch options<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nikto -H<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-original=\"https:\/\/miro.medium.com\/max\/1098\/1*vX5yi98rEj1d3Nm00KbxKQ.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"RP: Web Scanning\u63d2\u56fe\" alt=\"RP: Web Scanning\u63d2\u56fe\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><li>First and foremost, what switch do we use to set the target host?<br><strong>-h<\/strong><\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">2. Websites don\u2019t always properly redirect to their secure transport port and can sometimes have different issues depending on the manner in which they are scanned. How do we disable secure transport?<br><strong>-nossl<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. How about the opposite, how do we force secure transport?<br><strong>-ssl<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. What if we want to set a specific port to scan?<br><strong>-p<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. As the web is constantly evolving, so is Nikto. A database of vulnerabilities represents a core component to this web scanner, how do we verify that this database is working and free from error?<br>-<strong>dbcheck<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6. If instructed to, Nitko will attempt to guess and test both files within directories as well as usernames. Which switch and numerical value do we use to set Nikto to enumerate usernames in Apache? Keep in mind, this option is deprecated in favor of plugins, however, it\u2019s still a great option to be aware of for situational usage.<br><strong>-mutate 3<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7. Suppose we know the username and password for a web forum, how do we set Nikto to do a credentialed check? Suppose the username is admin and the password is PrettyAwesomePassword1234<br><strong>-id admin:PrettyAwesomePassword1234<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">8. Let\u2019s scan our target machine, what web server do we discover and what version is it?<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nikto -h <a href=\"https:\/\/byy3.com\/go\/?url=http:\/\/10.10.191.239\/\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >http:\/\/10.10.191.239\/<\/a> -nossl<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-original=\"https:\/\/miro.medium.com\/max\/869\/1*uHuqdkSs-fW6GRiw0g1gVw.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"RP: Web Scanning\u63d2\u56fe1\" alt=\"RP: Web Scanning\u63d2\u56fe1\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Apache\/2.4.7<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">9. This box is vulnerable to very poor directory control due to it\u2019s web server version, what directory is indexed that really shouldn\u2019t be?<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-original=\"https:\/\/miro.medium.com\/max\/771\/1*su95nTRXdvlQT812E5sxlQ.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"RP: Web Scanning\u63d2\u56fe2\" alt=\"RP: Web Scanning\u63d2\u56fe2\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>config<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">10. Nikto scans can take a while to fully complete, which switch do we set in order to limit the scan to end at a certain time?<br><strong>-until<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">11. But wait, there\u2019s more! How do we list all of the plugins are available?<br><strong>-list-plugins<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">12. On the flip-side of the database, plugins represent another core component to Nikto. Which switch do we use to instruct Nikto to use plugin checks to find out of date software on the target host? Keep in mind that when testing this command we need to specify the host we intend to run this against. For submitting your answer, use only the base command with the out of date option.<br><strong>-Plugins outdated<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">13. Finally, what if we\u2019d like to use our plugins to run a series of standard tests against the target host?<br><strong>-Plugins tests<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>[Task 3] Zip ZAP!<br><\/strong>1.Let\u2019s start simple and launch zap. This can be done in a number of ways (Commands: owasp-zap, zaproxy) or through launching it in the Kali gui.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open OWASP ZAP and click Automated Scan<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-original=\"https:\/\/miro.medium.com\/max\/2088\/1*CDjzY5SsuJReCxAcxlFtuA.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"RP: Web Scanning\u63d2\u56fe3\" alt=\"RP: Web Scanning\u63d2\u56fe3\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2. Launch ZAP, what option to we set in order to specify what we are attacking?<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-original=\"https:\/\/miro.medium.com\/max\/1381\/1*O241-5_p8ohoRzsRjPCv4A.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"RP: Web Scanning\u63d2\u56fe4\" alt=\"RP: Web Scanning\u63d2\u56fe4\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>URL to attack<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Launch the attack against our target! Throughout the course of this attack you may notice this is very similar to Nikto. Similar to Nessus vs. OpenVAS, Nikto and ZAP and both offer different perspectives on a host and, as such, it\u2019s useful to know how to leverage both scanning tools in order to maximize your own visibility in a situation wherein \u2018noise\u2019 doesn\u2019t particularly matter.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-original=\"https:\/\/miro.medium.com\/max\/696\/1*8hEAAtrodLHhWzYvFpkfxw.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"RP: Web Scanning\u63d2\u56fe5\" alt=\"RP: Web Scanning\u63d2\u56fe5\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">4. ZAP will discover a file that typically contains pages which well-behaved web indexing engines will read in order to know which sections of a site to avoid. What is the name of this file? (Lucky for us, our scanner isn\u2019t what we would call \u2018well-behaved\u2019!)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-original=\"https:\/\/miro.medium.com\/max\/503\/1*7MWtCCIKG2bGrpNs-VE23g.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"RP: Web Scanning\u63d2\u56fe6\" alt=\"RP: Web Scanning\u63d2\u56fe6\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>robots.txt<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5.One entry is included in the disallow section of this file, what is it?<br>Open in browser<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-original=\"https:\/\/miro.medium.com\/max\/915\/1*YqX18GPxj0qfZcJaPIKP1A.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"RP: Web Scanning\u63d2\u56fe7\" alt=\"RP: Web Scanning\u63d2\u56fe7\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Answer: \/<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6. ZAP will find a directory that contains images for our application, what is the path for that directory? (This is what will follows the name\/ip of the website)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-original=\"https:\/\/miro.medium.com\/max\/543\/1*6WkLeyOViPiK1EaCioL3BA.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"RP: Web Scanning\u63d2\u56fe8\" alt=\"RP: Web Scanning\u63d2\u56fe8\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\/dvwa\/images\/<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7. This website doesn\u2019t force a secure connection by default and ZAP isn\u2019t pleased with it. Which related cookie is ZAP upset about?<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-original=\"https:\/\/miro.medium.com\/max\/541\/1*bVjSO5enHV9cQM3wpZt2Ug.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"RP: Web Scanning\u63d2\u56fe9\" alt=\"RP: Web Scanning\u63d2\u56fe9\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>HttpOnly<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">8. Featured in various rooms on TryHackMe, Cross-Site Scripting is a vicious attack that is becoming ever more common on the open web. What Alert does ZAP produce to let us know that this site is vulnerable to XSS? Note, there are often a couple warnings produced for this, look for one more so directly related to the web client.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-original=\"https:\/\/miro.medium.com\/max\/521\/1*7eodZM70cq0M8gS2gNa-Vw.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"RP: Web Scanning\u63d2\u56fe10\" alt=\"RP: Web Scanning\u63d2\u56fe10\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Web Browser XSS Protection Not Enabled<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">9. The ZAP proxy spider represents the component responsible for \u2018crawling\u2019 the site. What site is found to be out of scope?<br>Click spider tab<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-original=\"https:\/\/miro.medium.com\/max\/1065\/1*HXehFNM-K_K_5IWoAQp2UQ.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"RP: Web Scanning\u63d2\u56fe11\" alt=\"RP: Web Scanning\u63d2\u56fe11\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-original=\"https:\/\/miro.medium.com\/max\/1824\/1*7VCtiyX9jSiPw3LI1kLAjw.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"RP: Web Scanning\u63d2\u56fe12\" alt=\"RP: Web Scanning\u63d2\u56fe12\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttp:\/\/www.dvwa.co.uk\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">10. ZAP will use primarily two methods in order to scan a website, which of these two HTTP methods requests content?<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-original=\"https:\/\/miro.medium.com\/max\/541\/1*VQ_1yhoKg2yCZhOdK2ktQw.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"RP: Web Scanning\u63d2\u56fe13\" alt=\"RP: Web Scanning\u63d2\u56fe13\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>GET<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">11. Which option attempts to submit content to the website?<br><strong>POST<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[Task 1] Pull the lever, Kronk! [Task 2] \u2026I\u2019m supposed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11,12],"class_list":["post-74","post","type-post","status-publish","format-standard","hentry","category-net-security","tag-nikto","tag-web-scanning"],"_links":{"self":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=74"}],"version-history":[{"count":0,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/74\/revisions"}],"wp:attachment":[{"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}