• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

dirb: command not found

by Deepika

The “dirb” command in Linux is a command-line tool used for web application directory enumeration. It is commonly used to discover hidden files and directories on a web server by brute forcing the directory names. The tool works by sending HTTP requests to a web server with a list of directory names and analyzing the responses to determine if the directories exist.

The basic syntax of the command is:

# dirb [options] [URL] [wordlist]

where:

URL is the target web server
wordlist is a file containing a list of directory names to try
options are various switches to customize the behavior of the tool

For example, “dirb http://example.com /usr/share/dirb/wordlists/common.txt” will perform directory enumeration on the target “example.com” using the common.txt wordlist.

If you encounter the below error while running the command dirb:

dirb: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install dirb
Ubuntu apt-get install dirb
Kali Linux apt-get install dirb

dirb Command Examples

1. Scan a webserver using the default wordlist:

# dirb https://example.org

2. Scan a webserver using a custom wordlist:

# dirb https://example.org path/to/wordlist.txt

3. Scan a webserver non-recursively:

# dirb https://example.org -r

4. Scan a webserver using a specified user-agent and cookie for HTTP-requests:

# dirb https://example.org -a user_agent_string -c cookie_string

Filed Under: Linux

Some more articles you might also be interested in …

  1. apport-bug Command Examples in Linux
  2. find WWN Number of HBA Card in Redhat Linux and CentOS
  3. cpuid Command Examples in Linux
  4. mkfs.vfat Command Examples in Linux
  5. CentOS / RHEL LVM : Backing Up Volume Group Metadata
  6. dar: command not found
  7. RHEL 7 – RHCSA Notes – input / output redirection
  8. How to configure LDAP Client on CentOS/RHEL 6 using SSSD
  9. “yum history” command examples to display, rollback, redo, undo yum transactions
  10. locale-gen: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • diffstat: Create a histogram from the output of the diff command
  • diffoscope: Compare files, archives, and directories
  • diff-pdf: Tool for comparing two PDFs
  • dict: Command line dictionary using the DICT protocol

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright