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

feat(sslyze): Updates to use json output to find supported ciphers. #43

Merged
merged 1 commit into from
Jun 18, 2020

Conversation

petedv
Copy link
Contributor

@petedv petedv commented Jun 12, 2020

Makes parsing easier and less error prone.
Adds scan result caching to prevent unnecessary repeated scans on the same host

Makes parsing easier and less error prone.
Adds scan result caching to prevent unnecessary repeated scans on the same host
Copy link
Contributor

@Giannandrea Giannandrea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea to use the json as output, for sure will be more long term solution.
About the caching in my local version i added the cache on the Koa side (like https://github.com/koajs/cash) leveraging the http cache mechanism.

try {
const result = await exec(`cd /usr/local/bin && ./sslyze --regular --http_headers ${ctx.params.host}`);
const result = await exec(`sslyze --regular --http_headers ${hostName} --json_out=${fileName}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you think about using --json_out=- send json output on the standard output in this way:
const result = await exec(sslyze --regular --http_headers ${hostName} --json_out=-);
ctx.headers = { 'Content-Type': 'application/json' };
ctx.body = JSON.parse(result.stdout);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought there was some value in capturing both the formatted text output and the json output separately.
That way each of the scenario does not have to be to be rewritten immediately with the change.
e.g. verifying heartbleed requires additional code now to get it from the json output.

@perryloh-nintex perryloh-nintex merged commit 96693c1 into master Jun 18, 2020
@perryloh-nintex perryloh-nintex deleted the feat/sslyze-caching branch June 18, 2020 09:53
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

Successfully merging this pull request may close these issues.

None yet

3 participants