g0ldencybersec / EasyEASM

Zero-dollar attack surface management tool
MIT License
249 stars 35 forks source link

#2 Path in the EASM executable file not accessing the Git repository #19

Open osintbd opened 3 months ago

osintbd commented 3 months ago

Hii!

After running ./easyeas, im getting to following error: ──(root㉿kali)-[~/go/bin] └─# ./easyeasm
dnsx is not installed 2024/06/17 22:14:33 Successfully installed the package: github.com/projectdiscovery/dnsx/cmd/dnsx@latest oam_subs is not installed 2024/06/17 22:14:33 Successfully installed the package: github.com/owasp-amass/oam-tools/cmd/oam_subs@master subfinder is not installed 2024/06/17 22:14:33 Successfully installed the package: github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest alterx is not installed 2024/06/17 22:14:34 Successfully installed the package: github.com/projectdiscovery/alterx/cmd/alterx@latest All needed tools installed!


EASY EASM


No previous run data found Running Passive Sources Finding domains for .nl Runing Subfinder on .nl panic: exec: "subfinder": executable file not found in $PATH

goroutine 10 [running]: github.com/g0ldencybersec/EasyEASM/pkg/passive/subfinder.RunSubfinder({0xc000014bc8, 0x7}, 0xc000076180, 0x0?) /root/go/pkg/mod/github.com/g0ldencybersec/!easy!e!a!s!m@v1.0.6/pkg/passive/subfinder/subfinder.go:21 +0x331 created by github.com/g0ldencybersec/EasyEASM/pkg/passive.(*PassiveRunner).RunPassiveEnum in goroutine 1 /root/go/pkg/mod/github.com/g0ldencybersec/!easy!e!a!s!m@v1.0.6/pkg/passive/passive.go:26 +0x1da


go env is showing this: ──(root㉿kali)-[~/go/bin] └─# go env GO111MODULE='' GOARCH='amd64' GOBIN='' GOCACHE='/root/.cache/go-build' GOENV='/root/.config/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='amd64' GOHOSTOS='linux' GOINSECURE='' GOMODCACHE='/root/go/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='linux' GOPATH='/root/go' GOPRIVATE='' GOPROXY='https://proxy.golang.org,direct' GOROOT='/usr/lib/go-1.22' GOSUMDB='sum.golang.org' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/usr/lib/go-1.22/pkg/tool/linux_amd64' GOVCS='' GOVERSION='go1.22.4' GCCGO='gccgo' GOAMD64='v1' AR='ar' CC='gcc' CXX='g++' CGO_ENABLED='1' GOMOD='/dev/null' GOWORK='' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2968645009=/tmp/go-build -gno-record-gcc-switches'

┌──(root㉿kali)-[~/go/bin] └─# ls alterx config.yml dnsx easyeasm oam_subs subfinder

gamix255 commented 2 days ago

@osintbd

Hello, It seems that the executable file subfinder has been built, but the PATH to it is not set.

In your case, try running easyeasm after running export PATH=$HOME/go/bin:$PATH or export PATH=/root/go/bin:$PATH

regards.