How to Install Gf Tool and Patterns on Kali Linux

Karthikeyan Nagaraj
System Weakness
Published in
3 min readNov 27, 2022

--

Install Gf tool and It’s Pattern on Kali Linux with Easy Simple Steps

Karthikeyan Nagaraj ~ cyberw1ng
  • gf tool is a wrapper around grep to avoid typing common patterns such as aws-keys, base64, cors, debug-pages, debug_logic, firebase fw, go-functions, http-auth, idor, img-traversal, interesting EXT, interesting parameters, interesting subs, ip, json-sec, jsvar, lfi, meg-headers, php-curl, php-errors, php-serialized, php-sinks, php-sources, rce, redirect, s3-buckets, sec, servers, sqli, ssrf, ssti, strings, takeovers, upload-fields, Urls and Xss
  • First Make Sure You Have Installed Golang by typing,

Steps To Install Gf — Type the Below Commands

Step 1:

go get -u github.com/tomnomnom/gf
  • If You get the Above Error, Use the Below Command
go install  github.com/tomnomnom/gf@latest

Step 2:

go install  github.com/tomnomnom/waybackurls@latest

Step 3:

/root/go/bin 
cp gf /usr/local/bin

Step 4:

cd /root
git clone https://github.com/tomnomnom/gf
git clone https://github.com/1ndianl33t/Gf-Patterns

Step 5:

mkdir .gf
cd gf/examples
cp * /root/.gf

Step 6:

cd /root/Gf-Patterns
cp * /root/.gf

That’s It Gf has Installed with Patterns!

If the Above Method Doesn’t Work Try This!!

Step 1:

go get -u github.com/tomnomnom/gf

Step 2:

cd go
export GOPATH=/root/go

Step 3:

echo ‘source $GOPATH/src/github.com/tomnomnom/gf/gf-completion.bash’ >> ~/.bashrc

Step 4:

sudo cp bin/gf /usr/local/bin

That’s It Gf has Installed with Patterns!

Thank You for Reading!

Happy Hunting!

Author : Karthikeyan Nagaraj ~ Cyberw1ng

Answers to Questions:

How to install gf tool in Kali Linux

how to install gf

gf tool installation commands

--

--

Security Researcher | Bug Hunter | Web Pentester | CTF Player | TryHackme Top 1% | AI Researcher | Blockchain Developer