prbinu / tls-scan

An Internet scale, blazing fast SSL/TLS scanner ( non-blocking, event-driven )
https://prbinu.github.io/tls-scan
Other
283 stars 54 forks source link

tls-scan installation failure #37

Closed anonyjocke closed 4 years ago

anonyjocke commented 4 years ago

Hi @prbinu :) i have followed all those steps to install tls-scan installed gcc , autoconf , automake , libtool , pkg-config , git clone https://github.com/prbinu/tls-scan.git , cd tls-scan and ./build-x86-64.sh but ended up with ./tls-scan command not found

  /usr/bin/install -c $f /root/tls-scan/build-root/bin ; \
done
make[1]: Leaving directory '/root/tls-scan/build-root/build/nettle-nettle_3.5.1_release_20190627/tools'
Making install in testsuite
make[1]: Entering directory '/root/tls-scan/build-root/build/nettle-nettle_3.5.1_release_20190627/testsuite'
true
make[1]: Leaving directory '/root/tls-scan/build-root/build/nettle-nettle_3.5.1_release_20190627/testsuite'
Making install in examples
make[1]: Entering directory '/root/tls-scan/build-root/build/nettle-nettle_3.5.1_release_20190627/examples'
true
make[1]: Leaving directory '/root/tls-scan/build-root/build/nettle-nettle_3.5.1_release_20190627/examples'
Downloading gnutls_3.6.10.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:02:11 --:--:--     0curl: (7) Failed to connect to www.gnupg.org port 443: Connection timed out
./build-x86-64.sh: line 7: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
>>> Complete

how can i fix that ? i am running Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-66-generic x86_64) VPS from DigitalOcean

prbinu commented 4 years ago

Seem like the script could not download gnutls from www.gnupg.org: error msg: Failed to connect to www.gnupg.org port 443: Connection timed out

Make sure https://www.gnupg.org is reachable from your host.

anonyjocke commented 4 years ago

hi @prbinu i tried on 2 vps from Digital Ocean and it gives the same error

 Failed to connect to www.gnupg.org port 443: Connection timed out

i don't know what's the problem so i tried to install it on my local machine

but it gives an error when it runs make && make install on ./build-x86-64.sh

checking host system type... x86_64-pc-linux-gnu
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
gcc -DPACKAGE_NAME=\"tls-scan\" -DPACKAGE_TARNAME=\"tls-scan\" -DPACKAGE_VERSION=\"1.4.1\" -DPACKAGE_STRING=\"tls-scan\ 1.4.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tls-scan\" -DVERSION=\"1.4.1\" -I.  -I./include -I build-root/include -I build-root/include -Wall -Wundef -Wshadow -Wunreachable-code -Wswitch-default -Wcast-align -pedantic -g -std=c99 -D_GNU_SOURCE -DTS_VERSION=\"1.4.3\" -DTS_BUILD_DATE=\"2020-08-01\" -DTS_OS=\"Linux\"   -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
In file included from ./include/proto-adapters.h:8,
                 from main.c:29:
./include/common.h:18:10: fatal error: gnutls/gnutls.h: No such file or directory
   18 | #include <gnutls/gnutls.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:439: main.o] Error 1
gcc -DPACKAGE_NAME=\"tls-scan\" -DPACKAGE_TARNAME=\"tls-scan\" -DPACKAGE_VERSION=\"1.4.1\" -DPACKAGE_STRING=\"tls-scan\ 1.4.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tls-scan\" -DVERSION=\"1.4.1\" -I.  -I./include -I build-root/include -I build-root/include -Wall -Wundef -Wshadow -Wunreachable-code -Wswitch-default -Wcast-align -pedantic -g -std=c99 -D_GNU_SOURCE -DTS_VERSION=\"1.4.3\" -DTS_BUILD_DATE=\"2020-08-01\" -DTS_OS=\"Linux\"   -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
In file included from ./include/proto-adapters.h:8,
                 from main.c:29:
./include/common.h:18:10: fatal error: gnutls/gnutls.h: No such file or directory
   18 | #include <gnutls/gnutls.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:439: main.o] Error 1
>>> Complete
root@yousif:~/tls-scan# 
prbinu commented 4 years ago

I have tested on a Ubuntu 18.04 machine, and it is working for me.

Here is what I did:

sudo apt-get update
sudo apt-get install autoconf automake libtool pkg-config gcc unzip -y

git clone https://github.com/prbinu/tls-scan.git
cd tls-scan/
./build-x86-64.sh 

##  <<build will take approx 15 mins>>

cd build-root/bin/
./tls-scan -c example.com  --cacert=../etc/tls-scan/ca-bundle.crt --pretty
anonyjocke commented 4 years ago

It worked :) , thanks @prbinu for this awesome tool <3 Have a nice day