Skip to content

A collection of bash scripts to enumerate / bruteforce various services using tools often available in popular distros

Notifications You must be signed in to change notification settings

kamil-s-solecki/bash-enum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bash-enum

A collection of bash scripts to enumerate / bruteforce various services.

Those scripts are meant to use only the tools that are present on most linux distros

Scripts

vhosts.sh

Brute force vhosts (uses curl and xargs)

Usage: ./vhosts.sh [options] host

OPTIONS:
  -d, --domain       root domain
  -w, --wordlist     wordlist file with subdomains
  -f, --filter-text  text present in response of invalid subdomains
  -t, --threads      number of concurrent processes (default: 0)
                     set to '0' to tell xargs to run as many processes as possible at a time
                     (this is used as xargs -P option)
  --curl-opts        additional arguments to pass to curl
  -h, --help         print this help message and exit

EXAMPLE:
  ./vhosts.sh -t 5 -w ./subdomains.txt \
      -d example.com -f 'Example Domain' \
      --curl-opts '--user-agent SomeAgent -H "X-Auth: foo"' \
      http://example.com

tcpscan.sh

tcp port scan (uses nc and xargs)

Usage: ./tcpscan.sh [options] ip ports

OPTIONS:
  -t, --threads      number of concurrent processes (default: 0)
                     set to '0' to tell xargs to run as many processes as possible at a time
                     (this is used as xargs -P option)
  -w, --timeout      number of seconds to wait for a port (default: 1)
                     (this is used as nc -w option)
  -h, --help         print this help message and exit

EXAMPLE:
  ./tcpscan.sh -t 5 -w 2 10.10.10.10 '21-25,80,8000-9000,3306'

dns.sh

resolve a list of domains (uses dig and xargs)

Usage: ./dns.sh [options] domains_file

OPTIONS:
  -s, --server       dns server to use
  -v, --verbose      show dns responses
  -t, --threads      number of concurrent processes (default: 0)
                     set to '0' to tell xargs to run as many processes as possible at a time
                     (this is used as xargs -P option)
  -h, --help         print this help message and exit

EXAMPLE:
  ./dns.sh -v -t 5 -s 10.10.10.11 ./domains.txt

About

A collection of bash scripts to enumerate / bruteforce various services using tools often available in popular distros

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages