Case insensitivity for execute-if

This commit is contained in:
S3cur3Th1sSh1t
2024-10-10 10:34:24 +02:00
committed by GitHub
parent 1005fe0e1a
commit 26bb632cb8
+1 -1
View File
@@ -3046,7 +3046,7 @@ proc execute_in(): bool =
var exe_name: string = obf("EXENAME")
if GetModuleFileNameA(cast[HMODULE](0), cast[LPSTR](temp.addr), DWORD(temp.len)) > 0:
let temp_str = $cast[cstring](temp.addr)
if temp_str.contains(exe_name):
if temp_str.toLower().contains(exe_name.toLower()):
return false
return true