{"id":321,"date":"2025-05-19T18:03:46","date_gmt":"2025-05-19T18:03:46","guid":{"rendered":"https:\/\/howtocybersec.com\/?p=321"},"modified":"2025-06-20T11:33:49","modified_gmt":"2025-06-20T11:33:49","slug":"dirsearch-cheat-sheet","status":"publish","type":"post","link":"https:\/\/howtocybersec.com\/index.php\/2025\/05\/19\/dirsearch-cheat-sheet\/","title":{"rendered":"Dirsearch Cheat Sheet"},"content":{"rendered":"\n<div class=\"wp-block-superb-addons-table-of-contents\"><div class=\"superbaddons-tableofcontents superbaddons-tableofcontents-alignment-left superbaddons-tableofcontents-boxed\" style=\"background-color:#F2F2F2;border-radius:10px\"><div class=\"superbaddons-tableofcontents-table\"><ol style=\"list-style-type:decimal\"><li style=\"font-size:14px;line-height:28px;color:#7C7C7C\"><span>Basic Usage<\/span><\/li><li style=\"font-size:14px;line-height:28px;color:#7C7C7C\"><span>Brute-force Directories and Files<\/span><\/li><li style=\"font-size:14px;line-height:28px;color:#7C7C7C\"><span>Recursive Bruteforcing<\/span><\/li><li style=\"font-size:14px;line-height:28px;color:#7C7C7C\"><span>Custom Wordlist<\/span><\/li><li style=\"font-size:14px;line-height:28px;color:#7C7C7C\"><span>Filter Responses by Status Code<\/span><\/li><li style=\"font-size:14px;line-height:28px;color:#7C7C7C\"><span>Exclude Noisy Status Codes<\/span><\/li><li style=\"font-size:14px;line-height:28px;color:#7C7C7C\"><span>Use HTTP Headers (e.g. JWT, Cookies)<\/span><\/li><li style=\"font-size:14px;line-height:28px;color:#7C7C7C\"><span>Rate Limiting \/ Throttling Handling<\/span><\/li><li style=\"font-size:14px;line-height:28px;color:#7C7C7C\"><span>Proxy Support (Burp\/ZAP)<\/span><\/li><li style=\"font-size:14px;line-height:28px;color:#7C7C7C\"><span>Extensions Fuzzing<\/span><\/li><li style=\"font-size:14px;line-height:28px;color:#7C7C7C\"><span>Silent \/ Report Mode<\/span><\/li><li style=\"font-size:14px;line-height:28px;color:#7C7C7C\"><span>Pro Tips<\/span><\/li><\/ol><\/div><\/div><\/div>\n\n\n\n<p><strong>Tool Overview<\/strong><br><a class=\"\" href=\"https:\/\/github.com\/maurosoria\/dirsearch\"><code>dirsearch<\/code><\/a> is a fast command-line web path scanner written in Python. It&#8217;s used to brute-force directories and files on web servers using wordlists.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Basic Usage<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 dirsearch.py -u https:\/\/target.com -e php,html,js\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-verse\">-u: Target URL\n\n-e: Extensions to brute-force<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Brute-force Directories and Files<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 dirsearch.py -u https:\/\/target.com -e php,html,js,txt,zip,sql\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Recursive Bruteforcing<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 dirsearch.py -u https:\/\/target.com -e php -r\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Custom Wordlist<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 dirsearch.py -u https:\/\/target.com -w \/path\/to\/custom-list.txt\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Filter Responses by Status Code<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 dirsearch.py -u https:\/\/target.com -e php -i 200,403\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Exclude Noisy Status Codes<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 dirsearch.py -u https:\/\/target.com -e php -x 404,500\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Use HTTP Headers (e.g. JWT, Cookies)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 dirsearch.py -u https:\/\/target.com -H \"Authorization: Bearer &lt;token&gt;\"\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Rate Limiting \/ Throttling Handling<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 dirsearch.py -u https:\/\/target.com -t 5 --delay 1\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Proxy Support (Burp\/ZAP)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 dirsearch.py -u https:\/\/target.com --proxy http:\/\/127.0.0.1:8080\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Extensions Fuzzing<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 dirsearch.py -u https:\/\/target.com\/index -e php,html,bak,zip\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Silent \/ Report Mode<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 dirsearch.py -u https:\/\/target.com -o report.txt --format simple\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Pro Tips<\/h2>\n\n\n\n<p>Use with <strong>projectdiscovery\/httpx<\/strong> for live host enumeration<\/p>\n\n\n\n<p>Combine with <code>ffuf<\/code>, <code>gau<\/code>, or <code>waybackurls<\/code> for more dynamic discovery<\/p>\n\n\n\n<p>Try paths from tools like <strong>GitHub dorks<\/strong> or <strong>JSParser<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tool Overviewdirsearch is a fast command-line web path scanner written in Python. It&#8217;s used to brute-force directories and files on web servers using wordlists. Basic Usage -u: Target URL -e: Extensions to brute-force Brute-force Directories and Files Recursive Bruteforcing Custom Wordlist Filter Responses by Status Code Exclude Noisy Status Codes Use HTTP Headers (e.g. JWT,&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13,17,15,19,18,16,20,12],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Dirsearch Cheat Sheet - HowToCyberSec<\/title>\n<meta name=\"description\" content=\"dirsearch is a powerful web recon tool to find hidden directories and web pages during a pentest. Here are some practical use cases for disearch\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/howtocybersec.com\/index.php\/2025\/05\/19\/dirsearch-cheat-sheet\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dirsearch Cheat Sheet - HowToCyberSec\" \/>\n<meta property=\"og:description\" content=\"dirsearch is a powerful web recon tool to find hidden directories and web pages during a pentest. Here are some practical use cases for disearch\" \/>\n<meta property=\"og:url\" content=\"https:\/\/howtocybersec.com\/index.php\/2025\/05\/19\/dirsearch-cheat-sheet\/\" \/>\n<meta property=\"og:site_name\" content=\"HowToCyberSec\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-19T18:03:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-20T11:33:49+00:00\" \/>\n<meta name=\"author\" content=\"Mark H\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mark H\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/howtocybersec.com\/index.php\/2025\/05\/19\/dirsearch-cheat-sheet\/\",\"url\":\"https:\/\/howtocybersec.com\/index.php\/2025\/05\/19\/dirsearch-cheat-sheet\/\",\"name\":\"Dirsearch Cheat Sheet - HowToCyberSec\",\"isPartOf\":{\"@id\":\"https:\/\/howtocybersec.com\/#website\"},\"datePublished\":\"2025-05-19T18:03:46+00:00\",\"dateModified\":\"2025-06-20T11:33:49+00:00\",\"author\":{\"@id\":\"https:\/\/howtocybersec.com\/#\/schema\/person\/749ebd633743795270a76e9b7b23a5d2\"},\"description\":\"dirsearch is a powerful web recon tool to find hidden directories and web pages during a pentest. Here are some practical use cases for disearch\",\"breadcrumb\":{\"@id\":\"https:\/\/howtocybersec.com\/index.php\/2025\/05\/19\/dirsearch-cheat-sheet\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/howtocybersec.com\/index.php\/2025\/05\/19\/dirsearch-cheat-sheet\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/howtocybersec.com\/index.php\/2025\/05\/19\/dirsearch-cheat-sheet\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/howtocybersec.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dirsearch Cheat Sheet\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/howtocybersec.com\/#website\",\"url\":\"https:\/\/howtocybersec.com\/\",\"name\":\"SecTec-Blog\",\"description\":\"Where you learn about technology news and raise your Cyber IQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/howtocybersec.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/howtocybersec.com\/#\/schema\/person\/749ebd633743795270a76e9b7b23a5d2\",\"name\":\"Mark H\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/howtocybersec.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a14dbca4e1bbecf3f7c69cb2ec4a59b4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a14dbca4e1bbecf3f7c69cb2ec4a59b4?s=96&d=mm&r=g\",\"caption\":\"Mark H\"},\"url\":\"https:\/\/howtocybersec.com\/index.php\/author\/bl0gg3r\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dirsearch Cheat Sheet - HowToCyberSec","description":"dirsearch is a powerful web recon tool to find hidden directories and web pages during a pentest. Here are some practical use cases for disearch","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/howtocybersec.com\/index.php\/2025\/05\/19\/dirsearch-cheat-sheet\/","og_locale":"en_US","og_type":"article","og_title":"Dirsearch Cheat Sheet - HowToCyberSec","og_description":"dirsearch is a powerful web recon tool to find hidden directories and web pages during a pentest. Here are some practical use cases for disearch","og_url":"https:\/\/howtocybersec.com\/index.php\/2025\/05\/19\/dirsearch-cheat-sheet\/","og_site_name":"HowToCyberSec","article_published_time":"2025-05-19T18:03:46+00:00","article_modified_time":"2025-06-20T11:33:49+00:00","author":"Mark H","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mark H","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/howtocybersec.com\/index.php\/2025\/05\/19\/dirsearch-cheat-sheet\/","url":"https:\/\/howtocybersec.com\/index.php\/2025\/05\/19\/dirsearch-cheat-sheet\/","name":"Dirsearch Cheat Sheet - HowToCyberSec","isPartOf":{"@id":"https:\/\/howtocybersec.com\/#website"},"datePublished":"2025-05-19T18:03:46+00:00","dateModified":"2025-06-20T11:33:49+00:00","author":{"@id":"https:\/\/howtocybersec.com\/#\/schema\/person\/749ebd633743795270a76e9b7b23a5d2"},"description":"dirsearch is a powerful web recon tool to find hidden directories and web pages during a pentest. Here are some practical use cases for disearch","breadcrumb":{"@id":"https:\/\/howtocybersec.com\/index.php\/2025\/05\/19\/dirsearch-cheat-sheet\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/howtocybersec.com\/index.php\/2025\/05\/19\/dirsearch-cheat-sheet\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/howtocybersec.com\/index.php\/2025\/05\/19\/dirsearch-cheat-sheet\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/howtocybersec.com\/"},{"@type":"ListItem","position":2,"name":"Dirsearch Cheat Sheet"}]},{"@type":"WebSite","@id":"https:\/\/howtocybersec.com\/#website","url":"https:\/\/howtocybersec.com\/","name":"SecTec-Blog","description":"Where you learn about technology news and raise your Cyber IQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/howtocybersec.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/howtocybersec.com\/#\/schema\/person\/749ebd633743795270a76e9b7b23a5d2","name":"Mark H","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/howtocybersec.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a14dbca4e1bbecf3f7c69cb2ec4a59b4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a14dbca4e1bbecf3f7c69cb2ec4a59b4?s=96&d=mm&r=g","caption":"Mark H"},"url":"https:\/\/howtocybersec.com\/index.php\/author\/bl0gg3r\/"}]}},"_links":{"self":[{"href":"https:\/\/howtocybersec.com\/index.php\/wp-json\/wp\/v2\/posts\/321"}],"collection":[{"href":"https:\/\/howtocybersec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howtocybersec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howtocybersec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/howtocybersec.com\/index.php\/wp-json\/wp\/v2\/comments?post=321"}],"version-history":[{"count":2,"href":"https:\/\/howtocybersec.com\/index.php\/wp-json\/wp\/v2\/posts\/321\/revisions"}],"predecessor-version":[{"id":327,"href":"https:\/\/howtocybersec.com\/index.php\/wp-json\/wp\/v2\/posts\/321\/revisions\/327"}],"wp:attachment":[{"href":"https:\/\/howtocybersec.com\/index.php\/wp-json\/wp\/v2\/media?parent=321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howtocybersec.com\/index.php\/wp-json\/wp\/v2\/categories?post=321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howtocybersec.com\/index.php\/wp-json\/wp\/v2\/tags?post=321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}