Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"no such pattern" error when executing under sudo #55

Open
storenth opened this issue Feb 15, 2021 · 8 comments
Open

"no such pattern" error when executing under sudo #55

storenth opened this issue Feb 15, 2021 · 8 comments

Comments

@storenth
Copy link

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

@Archx0Mas
Copy link

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

@stlthwzrd
Copy link

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.

@jiggleexe
Copy link

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 :)

@Archx0Mas
Copy link

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

@garthhumphreys
Copy link

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 :)

@0xkrnn
Copy link

0xkrnn commented May 31, 2022

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

@babatunde-ayoade
Copy link

@Karan4580

Try this :

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

@Archx0Mas
Copy link

Archx0Mas commented Nov 23, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants