From cb5cc5533338baf3ba56ec0749df17a52b89a478 Mon Sep 17 00:00:00 2001 From: Alexander Hebel Date: Sun, 19 Nov 2023 20:44:16 +0100 Subject: [PATCH 1/2] fix special characters --- poc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poc.py b/poc.py index 45157d4..bf7e66a 100644 --- a/poc.py +++ b/poc.py @@ -59,7 +59,7 @@ def get_candidates(dump_file): str_len += 1 i += 1 elif str_len > 0: - if (data[i] >= 0x20) and (data[i] <= 0x7E) and (data[i + 1] == 0x00): + if (data[i] >= 0x20) and (data[i] <= 0xFF) and (data[i + 1] == 0x00): candidate = (str_len * b'\xCF\x25') + bytes([data[i], data[i + 1]]) if not candidate in candidates: From b55e806b9f8f01e249b9f385cd7352f297915ba9 Mon Sep 17 00:00:00 2001 From: Alexander Hebel Date: Mon, 8 Apr 2024 21:17:33 +0200 Subject: [PATCH 2/2] Update poc.py --- poc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poc.py b/poc.py index bf7e66a..eb0dfa7 100644 --- a/poc.py +++ b/poc.py @@ -59,7 +59,7 @@ def get_candidates(dump_file): str_len += 1 i += 1 elif str_len > 0: - if (data[i] >= 0x20) and (data[i] <= 0xFF) and (data[i + 1] == 0x00): + if (((data[i] >= 0x20) and (data[i] <= 0x7E)) or data[i] >= 0xA0) and (data[i + 1] == 0x00): candidate = (str_len * b'\xCF\x25') + bytes([data[i], data[i + 1]]) if not candidate in candidates: