gf icon indicating copy to clipboard operation
gf copied to clipboard

"no such pattern" error when executing under sudo

Open storenth opened this issue 5 years ago • 8 comments

Unexpected error while executing something like echo $string | gf urls as part of the bash script that need sudo privileges (e.g. massdns). The simplest example would be: Снимок экрана 2021-02-15 в 15 02 28

storenth avatar Feb 15 '21 08:02 storenth

Me too , as i have installed the gf tool and then when i type on terminal gf it shows : no such pattern , if i type gf -list it shows the examples , so i cannot use the tool , its a bug or the problem of parrot systems maybe

Archx0Mas avatar May 01 '21 09:05 Archx0Mas

My findings:

When performing 'gf --list' I got no results and I found I did not have a ~/.gf directory. I searched and found the json pattern files here: /home/[username]/go/src/github.com/tomnomnom/gf/examples/

My fix: mkdir ~/.gf && cp /home/[username]/go/src/github.com/tomnomnom/gf/examples/* ~/.gf/

gf works as expected now.

stlthwzrd avatar May 12 '21 00:05 stlthwzrd

My findings:

When performing 'gf --list' I got no results and I found I did not have a ~/.gf directory. I searched and found the json pattern files here: /home/[username]/go/src/github.com/tomnomnom/gf/examples/

My fix: mkdir ~/.gf && cp /home/[username]/go/src/github.com/tomnomnom/gf/examples/* ~/.gf/

gf works as expected now.

Thnx worked :)

jiggleexe avatar Aug 08 '21 19:08 jiggleexe

Well , i remember that i found a problem i had got another gf and was not full downloaded , but anyway a fixed it a long time ago

Archx0Mas avatar Aug 08 '21 19:08 Archx0Mas

A quick way to find the path to the examples folder is to do a find:

sudo find / -type d -name "tomnomnom"

Once I found the path I followed the rest of the steps that @stlthwzrd outlined :)

garthhumphreys avatar Nov 14 '21 03:11 garthhumphreys

My findings:

When performing 'gf --list' I got no results and I found I did not have a ~/.gf directory. I searched and found the json pattern files here: /home/[username]/go/src/github.com/tomnomnom/gf/examples/

My fix: mkdir ~/.gf && cp /home/[username]/go/src/github.com/tomnomnom/gf/examples/* ~/.gf/

gf works as expected now.

This is also not working... again it shows no such pattern

0xkrnn avatar May 31 '22 06:05 0xkrnn

@Karan4580

Try this :

git clone https://github.com/1ndianl33t/Gf-Patterns mkdir .gf mv ~/Gf-Patterns/*.json ~/.gf

babatunde-ayoade avatar Nov 23 '22 13:11 babatunde-ayoade

Thnx but i have fixed it

Sent from Proton Mail mobile

-------- Original Message -------- On Nov 23, 2022, 2:45 PM, babatunde-ayoade wrote:

@.***(https://github.com/Karan4580)

Try this :

git clone https://github.com/1ndianl33t/Gf-Patterns mkdir .gf mv ~/Gf-Patterns/*.json ~/.gf

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

Archx0Mas avatar Nov 23 '22 13:11 Archx0Mas