From 4ec2631ab0aa6ab90cd14f05a0ad77154c755ced Mon Sep 17 00:00:00 2001 From: nobbd Date: Tue, 15 Aug 2023 15:36:10 +0200 Subject: [PATCH] Update Finger.py to fix bug with single byte comparisons in python3 --- tools/SMBFinger/Finger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/SMBFinger/Finger.py b/tools/SMBFinger/Finger.py index 04c139a..5de42db 100755 --- a/tools/SMBFinger/Finger.py +++ b/tools/SMBFinger/Finger.py @@ -152,7 +152,7 @@ def color(txt, code = 1, modifier = 0): return "\033[%d;3%dm%s\033[0m" % (modifier, code, txt) def IsSigningEnabled(data): - if data[39] == "\x0f": + if data[39:40] == b"\x0f": return True else: return False