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 Blog
$ 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
Options:
--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
Must save this file as
~/.htf.json
{
"files": [
{
"name": "linpeas",
"path": "/opt/peass-ng/linPEAS/linpeas.sh"
},
{
"name": "pspy",
"path": "/opt/pspy/pspy32"
},
{
"name": "chisel",
"path": "/opt/chisel/chisel"
}
]
}
With go v1.16+ installed
go install -v github.com/binexisHATT/htf
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 https://github.com/binexisHATT/htf
go build -o htf htf.go
sudo mv htf /usr/local/bin/