minor print changes

This commit is contained in:
gatari
2024-11-28 16:10:55 +08:00
parent 4acb53f7d3
commit c95b38e2c4
4 changed files with 9 additions and 4 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+8
View File
@@ -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
View File
@@ -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.")
}