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

Unable to install gf in kali #69

Open
sedorf opened this issue Jul 21, 2022 · 2 comments
Open

Unable to install gf in kali #69

sedorf opened this issue Jul 21, 2022 · 2 comments

Comments

@sedorf
Copy link

sedorf commented Jul 21, 2022

hello guys , hope someone here will help to resolve this issue :
i use kali linux and i unable to install gf with :

  • go install github.com/tomnomnom/gf@latest && cp ~/go/bin/gf /usr/local/bin/ && gf -h && mkdir ~/.gf && git clone https://github.com/Sherlock297/gf_patterns.git && cd gf_patterns/ && cp *.json ~/.gf && gf -list
    cp: cannot stat '/root/go/bin/gf': No such file or directory

  • go install github.com/tomnomnom/gf@latest
    ( gf is not installed )

then i try :

  • go get -u github.com/tomnomnom/gf
    ( the some issue i got )

the issue

@w4cky
Copy link

w4cky commented Aug 26, 2022

hi, this is my ansible template to install gf, it works pefect.

- hosts: scanners
  become: yes

 

  tasks:
  - name: check go version
    command: go version
    register: result
    changed_when: no
    ignore_errors: true


  - name: go get gogs
    shell: go install github.com/tomnomnom/gf@latest

  - name: Update .bashrc
    blockinfile:
      dest: "{{ ansible_env.HOME }}/.bashrc"
      block: |
          source $GOPATH/src/github.com/tomnomnom/gf/gf-completion.bash       
      marker: '# {mark} GF MANAGED BLOCK - RECONMORE_GF_INSTALL'
      insertbefore: EOF
      create: yes 

  - name: Update .zshrc
    blockinfile:
      dest: "{{ ansible_env.HOME }}/.zshrc"
      block: |
          source $GOPATH/src/github.com/tomnomnom/gf/gf-completion.bash       
      marker: '# {mark} GF MANAGED BLOCK - RECONMORE_GF_INSTALL'
      insertbefore: EOF
      create: yes 
 # - name: GF
 #   shell: mkdir -p ~/.gf && cp -r /root/go/src/github.com/tomnomnom/gf/examples ~/.gf

  - name: Clone GF-Patterns
    ansible.builtin.git:
      repo: https://github.com/1ndianl33t/Gf-Patterns
      dest: /tmp/gf/
  
  - name: mkdir .gf
    shell: mkdir ~/.gf/
  
  - name: copy to dst
    shell: mv /tmp/gf/*.json ~/.gf

@r0hna
Copy link

r0hna commented Nov 12, 2024

Use below command to install
go install github.com/tomnomnom/gf@latest

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

3 participants