logpresso / CVE-2021-44228-Scanner

Vulnerability scanner and mitigation patch for Log4j2 CVE-2021-44228
Apache License 2.0
851 stars 174 forks source link

Return codes for execution #134

Closed greg-michael closed 2 years ago

greg-michael commented 2 years ago

Can you include what the expected return codes/values are for the various outcomes of a scan run? For example: 0 --> no vulnerable files found, no potential vulnerable files found

Thanks!

jgstew commented 2 years ago

Do you mean in the README.md in the github project? or through a --help command parameter?

The exit code info is currently only in the release notes where it was added here: https://github.com/logpresso/CVE-2021-44228-Scanner/releases/tag/v2.1.1

Probably a good idea to add it to the README.md at least.

greg-michael commented 2 years ago

Do you mean in the README.md in the github project? or through a --help command parameter?

The exit code info is currently only in the release notes where it was added here: https://github.com/logpresso/CVE-2021-44228-Scanner/releases/tag/v2.1.1

Probably a good idea to add it to the README.md at least.

Minimally, the readme would be good. Help wouldn't be bad either. It's tough to narrow down how to programmatically account for success vs failure.

Thanks!

xeraph commented 2 years ago

@greg-michael Added https://github.com/logpresso/CVE-2021-44228-Scanner/blob/main/README.md#exit-code-for-automation

greg-michael commented 2 years ago

Awesome. Thanks!

From: Yang, BongYeol (xeraph) @.> Sent: Friday, December 17, 2021 12:07 To: logpresso/CVE-2021-44228-Scanner @.> Cc: Greg Michael @.>; Mention @.> Subject: Re: [logpresso/CVE-2021-44228-Scanner] Return codes for execution (Issue #134)

This email did not originate from Canadian Pacific. Please exercise caution with any links or attachments.


@greg-michaelhttps://urldefense.com/v3/__https:/github.com/greg-michael__;!!Iww4!0SXsVMjWBUvcx7_kUgBYQjkyYzqHl2qtAc3Fa-O7KjK3MLilXdMzDwQECVdBDBuefA$ Added https://github.com/logpresso/CVE-2021-44228-Scanner/blob/main/README.md#exit-code-for-automationhttps://urldefense.com/v3/__https:/github.com/logpresso/CVE-2021-44228-Scanner/blob/main/README.md*exit-code-for-automation__;Iw!!Iww4!0SXsVMjWBUvcx7_kUgBYQjkyYzqHl2qtAc3Fa-O7KjK3MLilXdMzDwQECVe8hOphEw$

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/logpresso/CVE-2021-44228-Scanner/issues/134*issuecomment-996918321__;Iw!!Iww4!0SXsVMjWBUvcx7_kUgBYQjkyYzqHl2qtAc3Fa-O7KjK3MLilXdMzDwQECVd80S7QCg$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AJ6SVAWSNAJXBZEBXB7BR3TURN34BANCNFSM5KJLLIAA__;!!Iww4!0SXsVMjWBUvcx7_kUgBYQjkyYzqHl2qtAc3Fa-O7KjK3MLilXdMzDwQECVcV20eG1Q$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!Iww4!0SXsVMjWBUvcx7_kUgBYQjkyYzqHl2qtAc3Fa-O7KjK3MLilXdMzDwQECVdf_amuSA$ or Androidhttps://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!Iww4!0SXsVMjWBUvcx7_kUgBYQjkyYzqHl2qtAc3Fa-O7KjK3MLilXdMzDwQECVe3QGm4og$. You are receiving this because you were mentioned.Message ID: @.**@.>>

------------------------------ IMPORTANT NOTICE - AVIS IMPORTANT ------------------------------ Computer viruses can be transmitted via email. Recipient should check this email and any attachments for the presence of viruses. Sender and sender company accept no liability for any damage caused by any virus transmitted by this email. This email transmission and any accompanying attachments contain confidential information intended only for the use of the individual or entity named above. Any dissemination, distribution, copying or action taken in reliance on the contents of this email by anyone other than the intended recipient is strictly prohibited. If you have received this email in error please immediately delete it and notify sender at the above email address. Le courrier electronique peut etre porteur de virus informatiques. Le destinataire doit donc passer le present courriel et les pieces qui y sont jointes au detecteur de virus. L' expediteur et son employeur declinent toute responsabilite pour les dommages causes par un virus contenu dans le courriel. Le present message et les pieces qui y sont jointes contiennent des renseignements confidentiels destines uniquement a la personne ou a l' organisme nomme ci-dessus. Toute diffusion, distribution, reproduction ou utilisation comme reference du contenu du message par une autre personne que le destinataire est formellement interdite. Si vous avez recu ce courriel par erreur, veuillez le detruire immediatement et en informer l' expediteur a l' adresse ci-dessus. ------------------------------ IMPORTANT NOTICE - AVIS IMPORTANT ------------------------------