Back

Tool: Interlace


 https://github.com/codingo/Interlace

1.1 Description

Easily turn single threaded command line applications into a fast, multi-threaded application with CIDR and glob support.


1.2 Installation

$ git clone https://github.com/codingo/Interlace.git
$ cd Interlace && sudo python3 setup.py install
$ interlace

1.3 Example

Running nikto against multiple sites which are defined in a file called targets.txt, where _target_ as an entry:

$ cat targets.txt

bugcrowd.com
hackerone.com

$ interlace -tL ./targets.txt -threads 5 -c "nikto --host _target_ > ./_target_-nikto.txt" -v

1.4 Usage

$ interlace -h

usage: interlace [-h] (-t TARGET | -tL FILE) [-e EXCLUSIONS | -eL FILE]
                 [-threads THREADS] [-timeout TIMEOUT] [-pL FILE]
                 (-c COMMAND | -cL FILE) [-o OUTPUT] [-p PORT] [--proto PROTO]
                 [-rp REALPORT] [-random RANDOM] [--no-cidr] [--no-color]
                 [--no-bar] [--repeat REPEAT] [-v | --silent]

optional arguments:
  -h, --help         show this help message and exit
  -t TARGET          Specify a target or domain name either in comma format,
                     CIDR notation, glob notation, or a single target.
  -tL FILE           Specify a list of targets or domain names.
  -e EXCLUSIONS      Specify an exclusion either in comma format, CIDR
                     notation, or a single target.
  -eL FILE           Specify a list of exclusions.
  -threads THREADS   Specify the maximum number of threads to run (DEFAULT:5)
  -timeout TIMEOUT   Command timeout in seconds (DEFAULT:600)
  -pL FILE           Specify a list of proxies.
  -c COMMAND         Specify a single command to execute.
  -cL FILE           Specify a list of commands to execute
  -o OUTPUT          Specify an output folder variable that can be used in
                     commands as _output_
  -p PORT            Specify a port variable that can be used in commands as
                     _port_
  --proto PROTO      Specify protocols that can be used in commands as _proto_
  -rp REALPORT       Specify a real port variable that can be used in commands
                     as _realport_
  -random RANDOM     Specify a directory of files that can be randomly used in
                     commands as _random_
  --no-cidr          If set then CIDR notation in a target file will not be
                     automatically be expanded into individual hosts.
  --no-color         If set then any foreground or background colours will be
                     stripped out.
  --no-bar, --sober  If set then progress bar will be stripped out
  --repeat REPEAT    repeat the given command x number of times.
  -v, --verbose      If set then verbose output will be displayed in the
                     terminal.
  --silent           If set only findings will be displayed and banners and
                     other information will be redacted.