haccer/subjack

/src/github.com/haccer/subjack/fingerprints.json: no such file or directory

ttmyst opened this issue Β· 17 comments

Hello

I am using the newest version of subjack with go1.10.4 on Ubuntu, but have the following error:
/src/github.com/haccer/subjack/fingerprints.json: no such file or directory
Subjack tries to find fingerprints.json by absolute path, not in directory marked as GOPATH.
Could you please help me fixing this?
I am sorry for this issue if i'm not right.
Thank you

What's the output of this echo $GOPATH? @ttmyst

@MadaraTech output is /home/tati/go
subjack binary is in /home/tati/go/bin directory, sources are in /home/tati/go/src/github.com/haccer/subjack

Can you check the existence of the file fingerprints.json in /home/tati/go/src/github.com/haccer/subjack directory?

@MadaraTech yes, the file /home/tati/go/src/github.com/haccer/subjack/fingerprints.json exists. I think the problem is that subjack is looking for /src/github.com/haccer/subjack/fingerprints.json file.

No, as par code it looks with your $GOPATH

defaultConfig := GOPATH + Project + configFile

Anyway you can always feed that file location with -c so, use -c /home/tati/go/src/github.com/haccer/subjack/fingerprints.json while running subjack.

@MadaraTech thank you! it works with -c flag
Stranger things :)

I'm having the same issue on Ubuntu 18.0.4 with go version go1.11.2 linux/amd64

"open /src/github.com/haccer/subjack/fingerprints.json: no such file or directory"

I can confirm file and directory exists on my system.

Thanks, I will look into this possibly tomorrow @jdonsec @ttmyst.

It’s possible this is happening because the environment variable GOPATH is not set.

@haccer this is what I have at the end of file for ~/ .profile

export GOPATH=$HOME/work
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin

I faced the same problem, workaround is to use -c AND -v, at the same time.

The GOPATH variable is not resolving the GOPATH using "os.Getenv("GOPATH")" with the default golang install. For bash, edit ~/.bash_profile

export GOPATH=$HOME/go

same problem... i am using go 1.10... gopath is true..

subjack -d twitter.com -c fingerprints.json
2019/04/18 12:34:02 open : no such file or directory

the -c flag workarounded for me. thanks.

can't load package: package subjack.go: cannot find package "subjack.go" in any of:
/usr/lib/go-1.14/src/subjack.go (from $GOROOT)
/home/indira/go/src/subjack.go (from $GOPATH)

I have the same issue using subjack on MacOS (10.15.4 Catalina) and Go 1.14.4 via brew.
I literally followed the install info and ran go get github.com/haccer/subjack, made a domains file in w.txt and ran ~/go/bin/subjack -w w.txt -a -ssl:

2020/07/15 17:51:03 open /src/github.com/haccer/subjack/fingerprints.json: no such file or directory
2020/07/15 17:51:03 open /src/github.com/haccer/subjack/fingerprints.json: no such file or directory

My $GOPATH is empty, seems that on MacOS via brew that doesn't get set.

I see that I do have ~/go/src/github.com/haccer/subjack/fingerprints.json and using the -c workaround fixes it. Is the issue just the lack of $GOPATH? Maybe worth using a default if that doesn't exist?

EDIT: Just checked and if I export GOPATH=~/go then it works as expected so I think this'd fix the issue on MacOS