-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from essentialkaos/develop
Version 14.0.0
- Loading branch information
Showing
10 changed files
with
2,064 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
module github.com/essentialkaos/sslscan/v13 | ||
module github.com/essentialkaos/sslscan/v14 | ||
|
||
go 1.18 | ||
|
||
require ( | ||
github.com/essentialkaos/check v1.4.0 | ||
github.com/valyala/fasthttp v1.50.0 | ||
github.com/essentialkaos/ek/v12 v12.112.1 | ||
) | ||
|
||
require ( | ||
github.com/andybalholm/brotli v1.0.5 // indirect | ||
github.com/klauspost/compress v1.16.5 // indirect | ||
github.com/kr/pretty v0.3.1 // indirect | ||
github.com/kr/text v0.2.0 // indirect | ||
github.com/rogpeppe/go-internal v1.10.0 // indirect | ||
github.com/valyala/bytebufferpool v1.0.0 // indirect | ||
github.com/rogpeppe/go-internal v1.11.0 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs= | ||
github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= | ||
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= | ||
github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk= | ||
github.com/essentialkaos/check v1.4.0/go.mod h1:LMKPZ2H+9PXe7Y2gEoKyVAwUqXVgx7KtgibfsHJPus0= | ||
github.com/klauspost/compress v1.16.5 h1:IFV2oUNUzZaz+XyusxpLzpzS8Pt5rh0Z16For/djlyI= | ||
github.com/klauspost/compress v1.16.5/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= | ||
github.com/essentialkaos/ek/v12 v12.112.1 h1:mYhqb7K3c5e1LSMGOSUfCNRcVn9iEoZi4wQG0G1MLFk= | ||
github.com/essentialkaos/ek/v12 v12.112.1/go.mod h1:SslW97Se34YQKc08Ume2V/8h/HPTgLS1+Iok64cNF/U= | ||
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= | ||
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= | ||
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= | ||
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= | ||
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= | ||
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= | ||
github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= | ||
github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= | ||
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= | ||
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= | ||
github.com/valyala/fasthttp v1.50.0 h1:H7fweIlBm0rXLs2q0XbalvJ6r0CUPFWK3/bB4N13e9M= | ||
github.com/valyala/fasthttp v1.50.0/go.mod h1:k2zXd82h/7UZc3VOdJ2WaUqt1uZ/XpXAfE9i+HBC3lA= | ||
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= | ||
github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,17 @@ | |
|
||
################################################################################ | ||
|
||
API_ANALYZE="https://api.ssllabs.com/api/v3/analyze" | ||
API_DETAILS="https://api.ssllabs.com/api/v3/getEndpointData" | ||
API_ANALYZE="https://api.ssllabs.com/api/v4/analyze" | ||
API_DETAILS="https://api.ssllabs.com/api/v4/getEndpointData" | ||
EMAIL="[email protected]" | ||
|
||
################################################################################ | ||
|
||
main() { | ||
local output_dir="${1:-.}" | ||
local version status endpoint | ||
|
||
version=$(curl -s "$API_ANALYZE?host=essentialkaos.com" | jq '"v3-" + .engineVersion + "-" + .criteriaVersion' | tr -d '"') | ||
version=$(curl -s --header "email: $EMAIL" "$API_ANALYZE?host=essentialkaos.com" | jq '"v4-" + .engineVersion + "-" + .criteriaVersion' | tr -d '"') | ||
|
||
echo "Current API version: $version" | ||
|
||
|
@@ -21,16 +22,16 @@ main() { | |
fi | ||
|
||
while : ; do | ||
status=$(curl -s "$API_ANALYZE?host=essentialkaos.com" | jq '.status' | tr -d '"') | ||
status=$(curl -s --header "email: $EMAIL" "$API_ANALYZE?host=essentialkaos.com" | jq '.status' | tr -d '"') | ||
|
||
if [[ "$status" != "READY" ]] ; then | ||
sleep 5 | ||
continue | ||
fi | ||
|
||
endpoint=$(curl -s "$API_ANALYZE?host=essentialkaos.com" | jq '.endpoints[0].ipAddress' | tr -d '"') | ||
endpoint=$(curl -s --header "email: $EMAIL" "$API_ANALYZE?host=essentialkaos.com" | jq '.endpoints[0].ipAddress' | tr -d '"') | ||
|
||
curl -s "$API_DETAILS?host=essentialkaos.com&s=$endpoint" | jq '.' > "$output_dir/$version.json" | ||
curl -s --header "email: $EMAIL" "$API_DETAILS?host=essentialkaos.com&s=$endpoint" | jq '.' > "$output_dir/$version.json" | ||
echo -e "" >> "$output_dir/$version.json" | ||
|
||
echo "Data saved as $output_dir/$version.json" | ||
|
Oops, something went wrong.