Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems IPv6 #2

Open
mrlexley opened this issue May 20, 2019 · 0 comments
Open

Problems IPv6 #2

mrlexley opened this issue May 20, 2019 · 0 comments

Comments

@mrlexley
Copy link

It's a nice scripts but not foolproof.
One problem is that a host can have more IP's and grades. The script doesn't check this you also can't select an IP.

The second problem is the split function that splits on a ":" but IPv6 also uses double points.
I think its better to use the json output with JQ bash utility. So you can get the specific data you want. Like:
./ssllabs-scan -usecache -quiet -maxage 48 google.nl | jq ".[0].endpoints[] | select(.ipAddress==\"2607:f8b0:4005:80a:0:0:0:2003\") | .grade"

By using this method you also can do error handling of the returning values, an example is mismatch of hostname.

./ssllabs-scan -usecache -quiet -maxage 48 iamnos.nl | jq ".[0].endpoints[] | select(.ipAddress==\"37.34.60.213\") | .statusMessage"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant