1ndianl33t / Gf-Patterns

GF Paterns For (ssrf,RCE,Lfi,sqli,ssti,idor,url redirection,debug_logic, interesting Subs) parameters grep
MIT License
1.21k stars 278 forks source link

Not Working! #9

Closed ivasugarg closed 3 years ago

ivasugarg commented 4 years ago

$ cat ~/oyosub.wb| gf ssrf | tee -a ssfrparams.txt

fatal: 'ssrf' does not appear to be a git repository fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

I am not able to figure out as to why I am getting "fatal" error even after having carefully repeated all the steps several times.

gh0sh commented 4 years ago

Check your alias command, some system alias gf command pointing to git command.

ravkishu commented 3 years ago

This is because might be using oh-my-zsh and related ~/.zshrc has git plugin activated by default.

To overcome this issue just unalias this in your ~/.zshrc file & then source it to make effective

$ nano ~/.zshrc
unalias gf
$ source ~/.zshrc

or if you don't want to go through these just enter these two commands & start a new ssh session

sed -i "s/alias gau='git add --update'/#alias gau='git add --update'/" $ZSH/plugins/git/git.plugin.zsh
sed -i "s/alias gf='git fetch'/#alias gf='git fetch'/" $ZSH/plugins/git/git.plugin.zsh

It should solve your issue @ivasugarg