mirror of
https://github.com/gatariee/gocheck
synced 2026-06-08 14:22:03 +00:00
minor print changes
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -31,6 +31,14 @@ var checkCmd = &cobra.Command{
|
||||
debug, _ := cmd.Flags().GetBool("debug")
|
||||
kaspersky, _ := cmd.Flags().GetBool("kaspersky")
|
||||
|
||||
//
|
||||
// if no args are passed, then use defender
|
||||
//
|
||||
|
||||
if !amsi && !defender && !kaspersky {
|
||||
defender = true
|
||||
}
|
||||
|
||||
if debug {
|
||||
utils.PrintInfo("Debug mode enabled, verbose output will be displayed")
|
||||
}
|
||||
|
||||
+1
-4
@@ -263,9 +263,7 @@ func ScanWindef(token Scanner, debug bool) error {
|
||||
|
||||
utils.PrintNewLine()
|
||||
|
||||
utils.PrintOk(fmt.Sprintf("Windows Defender - %s", end))
|
||||
utils.PrintErr(fmt.Sprintf("Isolated bad bytes at offset 0x%X in the original file [approximately %d / %d bytes]", lastGood, lastGood, size))
|
||||
|
||||
/* Add 32 bytes before the offset */
|
||||
start := lastGood - 32
|
||||
if start < 0 {
|
||||
@@ -284,8 +282,7 @@ func ScanWindef(token Scanner, debug bool) error {
|
||||
for threat := range uniqueThreats {
|
||||
utils.PrintInfo(threat)
|
||||
}
|
||||
|
||||
utils.PrintNewLine()
|
||||
utils.PrintOk(fmt.Sprintf("Windows Defender - %s", end))
|
||||
} else {
|
||||
utils.PrintInfo("No threat detected, but the original file was flagged as malicious. The bad bytes are likely at the very end of the binary.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user