-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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(ms): import gost:MaineK00n/new-windows #1481
Conversation
7075a10
to
32da841
Compare
4adb85c
to
ff9f0c2
Compare
var osName string | ||
osName, ok := r.Optional["OSName"].(string) | ||
if !ok { | ||
logging.Log.Warnf("This Windows has wrong type option(OSName). UUID: %s", r.ServerUUID) |
Check failure
Code scanning / CodeQL
Log entries created from user input
products = append(products, p) | ||
} | ||
case nil: | ||
logging.Log.Warnf("This Windows has no option(InstalledProducts). UUID: %s", r.ServerUUID) |
Check failure
Code scanning / CodeQL
Log entries created from user input
unapplied[strings.TrimPrefix(kbID, "KB")] = struct{}{} | ||
} | ||
case nil: | ||
logging.Log.Warnf("This Windows has no option(KBID). UUID: %s", r.ServerUUID) |
Check failure
Code scanning / CodeQL
Log entries created from user input
applied[strings.TrimPrefix(kbID, "KB")] = struct{}{} | ||
} | ||
case nil: | ||
logging.Log.Warnf("This Windows has no option(AppliedKBID). UUID: %s", r.ServerUUID) |
Check failure
Code scanning / CodeQL
Log entries created from user input
unapplied[strings.TrimPrefix(kbID, "KB")] = struct{}{} | ||
} | ||
case nil: | ||
logging.Log.Warnf("This Windows has no option(UnappliedKBID). UUID: %s", r.ServerUUID) |
Check failure
Code scanning / CodeQL
Log entries created from user input
} | ||
} | ||
|
||
logging.Log.Debugf(`GetCvesByMicrosoftKBID query body {"osName": %s, "installedProducts": %q, "applied": %q, "unapplied: %q"}`, osName, products, maps.Keys(applied), maps.Keys(unapplied)) |
Check failure
Code scanning / CodeQL
Log entries created from user input
6181377
to
ae2042e
Compare
ae2042e
to
21cde74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What did you implement:
Import gost:MaineK00n/new-windows and use DetectCVE to detect CVEs.
Type of change
How Has This Been Tested?
Checklist:
You don't have to satisfy all of the following.
make fmt
make test
Is this ready for review?: YES
Reference