{"id":287,"date":"2021-04-25T16:51:35","date_gmt":"2021-04-25T16:51:35","guid":{"rendered":"https:\/\/sirensecurity.io\/blog\/?p=287"},"modified":"2022-05-04T02:06:48","modified_gmt":"2022-05-04T02:06:48","slug":"directory-busting-web-content-discovery","status":"publish","type":"post","link":"https:\/\/sirensecurity.io\/blog\/directory-busting-web-content-discovery\/","title":{"rendered":"Directory Busting  &#038; Web-Content Discovery."},"content":{"rendered":"\n<div class=\"wp-block-cover is-light\"><span aria-hidden=\"true\" class=\"wp-block-cover__gradient-background has-background-dim\"><\/span><img loading=\"lazy\" decoding=\"async\" width=\"5184\" height=\"3456\" class=\"wp-block-cover__image-background wp-image-228\" alt=\"\" src=\"https:\/\/sirensecurity.io\/blog\/wp-content\/uploads\/2021\/04\/4-1.jpg\" data-object-fit=\"cover\"\/><div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\n<p class=\"has-vivid-red-color has-text-color\">S1REN<\/p>\n\n\n\n<p class=\"has-text-align-center has-large-font-size\">Lets shed some light on anything in or past \/<\/p>\n<\/div><\/div>\n\n\n\n<p id=\"discovery\">So, you got a target web application? Sweet.<br>The beginning of your enumeration is going to start with Discovery.<br>In other words, what the heck can I actually view, enumerate, etc?<br><br>I will go into Web Application Assessments in much more detail with a sample machine in a future blog post or dedicated page.<br><br>For now, export your URL immediately and localize these commands such that they are ready to launch in a *snap*.<br>Before anything - are you going to be using SecLists? Hope so! <br><br><a rel=\"noreferrer noopener\" href=\"https:\/\/sirensecurity.io\/blog\/seclists\/\" target=\"_blank\">https:\/\/sirensecurity.io\/blog\/seclists\/<\/a><br>cd \/opt\/<br>git clone https:\/\/github.com\/danielmiessler\/SecLists.git<a rel=\"noreferrer noopener\" href=\"https:\/\/sirensecurity.io\/blog\/seclists\/\" target=\"_blank\"><br><\/a><br><strong>[Nikto]<\/strong><br>nikto --host $URL -C all<br><br><strong>[GOBUSTER]<\/strong><br>+ <strong>We will begin with Gobuster.<\/strong><br>export URL=\"https:\/\/example.com\/\"<br><br>+ <strong>Here are my localized commands:<\/strong><br><strong>BUST DIRECTORIES:<\/strong><br>gobuster dir -u $URL -w \/opt\/SecLists\/Discovery\/Web-Content\/raft-medium-directories.txt -k -t 30<br><br><strong>BUST<\/strong> <strong>FILES:<\/strong><br>gobuster dir -u $URL -w \/opt\/SecLists\/Discovery\/Web-Content\/raft-medium-files.txt -k -t 30<br><br><strong>BUST SUB-DOMAINS:<\/strong><br>gobuster dns -d someDomain.com -w \/opt\/SecLists\/Discovery\/DNS\/subdomains-top1million-110000.txt -t 30<br><strong>--><\/strong> <em>Make sure any DNS name you find resolves to an in-scope address before you test it<\/em>.<br><br><strong>===========================================================================<\/strong><br><br><strong>[WFUZZ]<\/strong><br>export URL=\"https:\/\/example.com\/<strong>FUZZ<\/strong>\"<br><br><strong>FUZZ DIRECTORIES:<\/strong><br>export URL=\"https:\/\/example.com\/<strong>FUZZ\/<\/strong>\"<br>wfuzz -c -z file,\/opt\/SecLists\/Discovery\/Web-Content\/raft-medium-directories.txt --hc 404 \"$URL\" <br><br><strong>FUZZ FILES:<\/strong><br>wfuzz -c -z file,\/opt\/SecLists\/Discovery\/Web-Content\/raft-medium-files.txt --hc 404 \"$URL\"<br><\/p>\n\n\n\n<p><strong>AUTHENTICATED FUZZING:<\/strong><br>e.g. <br>wfuzz -c -b \"&lt;SESSIONVARIABLE>=&lt;SESSIONVALUE>\" -z file,\/opt\/SecLists\/Discovery\/Web-Content\/raft-medium-files.txt --hc 404 \"$URL\"<br><\/p>\n\n\n\n<p id=\"discovery\"><br><strong>FUZZ DATA AND CHECK FOR PARAMETERS:<\/strong><br>export URL=\"https:\/\/example.com\/?parameter=<strong>FUZZ<\/strong><br><strong>--&gt;<\/strong> and\/or some combination of...<br>export URL=\"https:\/\/example.com\/?<strong>FUZZ<\/strong>=data<br>wfuzz -c -z file,\/opt\/SecLists\/Discovery\/Web-Content\/burp-parameter-names.txt \"$URL\"<br><br>+ <strong>Can I FUZZ Post Data?<\/strong><br><strong>--&gt;<\/strong> Yup.<br><strong>--&gt;<\/strong> Example of Command Injection <strong>POST Checks<\/strong>:<br>wfuzz -c -z file,\/usr\/share\/wordlists\/Fuzzing\/command-injection.txt -d \"postParameter=<strong>FUZZ<\/strong>\" \"$URL\"<br><br><br><em>Get creative with WFUZZ!<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, you got a target web application? Sweet.The beginning of your enumeration is going to start with Discovery.In other words, what the heck can I actually view, enumerate, etc? I will go into Web Application Assessments in much more detail with a sample machine in a future blog post or dedicated page. For now, export [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":228,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[27,33,32,29,30,4,28,31],"class_list":["post-287","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-s1ren","tag-directory-busting","tag-fuzz-post-data","tag-gobuster","tag-penetration-testing","tag-pentesting","tag-s1ren","tag-web-discovery","tag-wfuzz"],"_links":{"self":[{"href":"https:\/\/sirensecurity.io\/blog\/wp-json\/wp\/v2\/posts\/287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirensecurity.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirensecurity.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirensecurity.io\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirensecurity.io\/blog\/wp-json\/wp\/v2\/comments?post=287"}],"version-history":[{"count":9,"href":"https:\/\/sirensecurity.io\/blog\/wp-json\/wp\/v2\/posts\/287\/revisions"}],"predecessor-version":[{"id":486,"href":"https:\/\/sirensecurity.io\/blog\/wp-json\/wp\/v2\/posts\/287\/revisions\/486"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sirensecurity.io\/blog\/wp-json\/wp\/v2\/media\/228"}],"wp:attachment":[{"href":"https:\/\/sirensecurity.io\/blog\/wp-json\/wp\/v2\/media?parent=287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirensecurity.io\/blog\/wp-json\/wp\/v2\/categories?post=287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirensecurity.io\/blog\/wp-json\/wp\/v2\/tags?post=287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}