Brute Forcing

Default Credentials

Note: SecLists and WordList Compendium also include default passwords lists.

Wordlists

Wordlist Generation

CeWL

Parameters
  • -m <length>: Minimum word length.

  • -w <file>: Write the output to <file>.

Crunch

Simple wordlist.

String permutation.

Patterns.

Parameters
  • <min-len>: The minimum string length.

  • <max-len>: The maximum string length.

  • <charset>: Characters set.

  • -o <file>: Specifies the file to write the output to.

  • -p <charset or strings>: Permutation.

  • -t <pattern>: Specifies a pattern, eg: @@pass@@@@.

    • @ will insert lower case characters

    • , will insert upper case characters

    • % will insert numbers

    • ^ will insert symbols

Password Profiling

CUPP

Parameters
  • -i: Interactive uestions for user password profiling.

Word Mangling

john

Parameters
  • --wordlist <file>: Wordlist mode, read words from <file> or stdin.

  • --rules[:CustomRule]: Enable word mangling rules. Use default or add [:CustomRule].

  • --stdout: Output candidate passwords.

Note: Custom rules can be appended to John’s configuration file john.conf.

Services

FTP

Hydra

Parameters
  • -v: verbose mode.

  • -l <user>: login with user name.

  • -P <passwords file>: login with passwords from file.

  • -f: exit after the first found user/password pair.

SMB

Hydra

Parameters
  • -v: verbose mode.

  • -t <tasks>: run <tasks> number of connects in parallel. Default: 16.

  • -l <user>: login with user name.

  • -P <passwords file>: login with passwords from file.

  • -f: exit after the first found user/password pair.

NSE Script

SSH

Hydra

Web Applications

HTTP Basic Auth

HTTP Digest

HTTP POST Form

Parameters
  • -l <user>: login with user name.

  • -L <users-file>: login with users from file.

  • -P <passwords file>: login with passwords from file.

  • http-head | http-get | http-post-form: service to attack.

HTTP Authenticated POST Form

To add the session ID to the options string, simply append the Cookie header with the session ID, like so: :H=Cookie\: security=low; PHPSESSID=if0kg4ss785kmov8bqlbusva3v

Miscellaneous

Combo (Colon Separated) Lists

Hydra

Use a colon separated login:pass format, instead of -L/-P options.

Parameters
  • -v: verbose mode.

  • -C <user:pass file>: colon-separated “login:pass” format.

  • -f: exit after the first found user/password pair.

Medusa

The combo files used by Medusa should be in the format host:username:password, separated by colons. If any of these three values are missing, the relevant information should be provided either as a global value or as a list in a separate file.

Parameters
  • -u <user>: login with user name.

  • -P <passwords file>: login with password from file.

  • -h: target hostname or IP address.

  • -M: module to execute.

Last updated

Was this helpful?