htf (Host That File) is a tool to make serving up your favorite pentest tools simpler and faster. All you need to do is populate the htf configuration file (see example below) with the nickname and path to tools you want to host and the pass the nickname you gave to the file as an argument to htf. Medium


Example Usage

htf -r -p 8000 linpeas chisel pspy
htf linpeas


$ htf -h
Usage: htf [--random] [--port PORT] [FILES [FILES ...]]

Positional arguments:
  FILES                  files to host by nickname

  --random, -r           generate random file name for hosted file
  --port PORT, -p PORT   the port to listen on [default: 7000]
  --help, -h             display this help and exit

Example Configuration File

Must save this file as ~/.htf.json

  "files": [
      "name": "linpeas",
      "path": "/opt/peass-ng/linPEAS/"
      "name": "pspy",
      "path": "/opt/pspy/pspy32"
      "name": "chisel",
      "path": "/opt/chisel/chisel"

Installation (Linux Example)

With go v1.16+ installed

go install -v

From releases page

wget htf-linux-amd64.tar.gz -O ./htf.tar.gz
tar xvzf htf.tar.gz
sudo mv htf /usr/local/bin/

From source

git clone
go build -o htf htf.go
sudo mv htf /usr/local/bin/


View Github