Giter Site home page Giter Site logo

Comments (16)

trimstray avatar trimstray commented on August 26, 2024 3

Hi guys!

It's not a bug - htrace.sh uses this PATH variable (it's hardcoded in src/settings):

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

You should create symlinks for all external tools. For resolve it will be best to follow this guide: dockerfile

So, after clone repository:

  1. Install geoip-bin (should working without symlinks)
apt-get install geoip-bin
  1. Install Mozilla Observatory (should working without symlinks)
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y nodejs
npm install -g observatory-cli
  1. Install Ssllabs scanner
apt-get install -y golang
go get github.com/ssllabs/ssllabs-scan
ln -s /opt/go/bin/ssllabs-scan /usr/bin/ssllabs-scan
  1. Install Mixed Content scanner.
apt-get install -y composer php7.2-curl php7.2-xml
composer global require bramus/mixed-content-scan
ln -s /root/.composer/vendor/bramus/mixed-content-scan/bin/mixed-content-scan /usr/bin/mixed-content-scan
  1. Install Nmap (remember about properly version)

from htrace.sh.

trimstray avatar trimstray commented on August 26, 2024 1

I added this issue to README.md.

from htrace.sh.

ThomasG77 avatar ThomasG77 commented on August 26, 2024 1

Install Mozilla Observatory is also hardcoded.
As I use nvm (a Node version manager), I had to make some dirty changes with:

sudo ln -s $HOME/.nvm/versions/node/v10.8.0/bin/observatory \
    /usr/bin/observatory

where my first path has been obtained with whereis observatory

from htrace.sh.

ramya397 avatar ramya397 commented on August 26, 2024

Hi @devil00x
I also got same error did you find any ways to come out from this??

from htrace.sh.

imjdl avatar imjdl commented on August 26, 2024

I also encountered the same problem.
$ htrace.sh --domain http://www.baidu.com
not found in PATH: geoiplookup observatory ssllabs-scan mixed-content-scan

from htrace.sh.

ankurloriya avatar ankurloriya commented on August 26, 2024

Faced the same issue.

from htrace.sh.

devil00x avatar devil00x commented on August 26, 2024

i dont any idea!!!!!

from htrace.sh.

trimstray avatar trimstray commented on August 26, 2024

@ThomasG77 : hardcoded in the system? In htrace.sh it looks like this:

lib/DomainScan:    local _observatory_cmd="eval observatory \"$_host\" --format=report --rescan --zero --quiet"

from htrace.sh.

ThomasG77 avatar ThomasG77 commented on August 26, 2024

@trimstray You are right: not hardcoded.
However, eval observatory is OK, observatory is OK but when running htrace.sh --help without my previous symlink it returns

not found in PATH: observatory

My conclusion = this is an issue with detection of observatory in the PATH but unable to track it down at the moment

PS: observatory is in my PATH

from htrace.sh.

ankurloriya avatar ankurloriya commented on August 26, 2024

ln -s /root/.composer/vendor/bramus/mixed-content-scan/bin/mixed-content-scan /usr/bin/mixed-content-scan

Which NMAP version required for the tool?

from htrace.sh.

ankurloriya avatar ankurloriya commented on August 26, 2024
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

@trimstray still getting the same message after installing all the dependencies

not found in PATH: observatory ssllabs-scan mixed-content-scan

from htrace.sh.

trimstray avatar trimstray commented on August 26, 2024

ln -s /root/.composer/vendor/bramus/mixed-content-scan/bin/mixed-content-scan /usr/bin/mixed-content-scan

Which NMAP version required for the tool?

nmap --version

Nmap version 7.60 ( https://nmap.org )
Platform: x86_64-redhat-linux-gnu
Compiled with: liblua-5.3.3 openssl-1.1.0g libssh2-1.8.0 libz-1.2.11 libpcre-8.42 libpcap-1.9.0-PRE-GIT nmap-libdnet-1.12 ipv6
Compiled without:
Available nsock engines: epoll poll select
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

@trimstray still getting the same message after installing all the dependencies

not found in PATH: observatory ssllabs-scan mixed-content-scan

Check where stored these tools (use whereis or hash):

for i in observatory ssllabs-scan mixed-content-scan ; do whereis "$i" ; done

from htrace.sh.

ankurloriya avatar ankurloriya commented on August 26, 2024

ln -s /root/.composer/vendor/bramus/mixed-content-scan/bin/mixed-content-scan /usr/bin/mixed-content-scan

Which NMAP version required for the tool?

nmap --version

Nmap version 7.60 ( https://nmap.org )
Platform: x86_64-redhat-linux-gnu
Compiled with: liblua-5.3.3 openssl-1.1.0g libssh2-1.8.0 libz-1.2.11 libpcre-8.42 libpcap-1.9.0-PRE-GIT nmap-libdnet-1.12 ipv6
Compiled without:
Available nsock engines: epoll poll select
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

@trimstray still getting the same message after installing all the dependencies

not found in PATH: observatory ssllabs-scan mixed-content-scan

Check where stored these tools (use whereis or hash):

for i in observatory ssllabs-scan mixed-content-scan ; do whereis "$i" ; done
observatory: /usr/bin/observatory
ssllabs-scan: /usr/bin/ssllabs-scan /home/ankur/go/bin/ssllabs-scan
mixed-content-scan: /usr/bin/mixed-content-scan

$PATH contains

/home/ankur/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/home/ankur/go/bin:/home/ankur/.fzf/bin

Input:

htrace.sh --domain https://www.google.com

Result

not found in PATH: ssllabs-scan mixed-content-scan

from htrace.sh.

trimstray avatar trimstray commented on August 26, 2024

Hi guys!

@ankurloriya , @ThomasG77 : I can not reproduce this, please run htrace.sh with this:

bash -x htrace.sh --domain https://www.google.com

from htrace.sh.

jamatute avatar jamatute commented on August 26, 2024

@trimstray, using your docker I've got the same error with testssl.sh as it now seems that when you install it with apt-get it gets named as testssl.

Would you like a PR?

from htrace.sh.

trimstray avatar trimstray commented on August 26, 2024

from htrace.sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.