Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
buffer committed Apr 10, 2024
1 parent 2ef783b commit 5e16c89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/functional/test_exploits.py
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,7 @@ def test_Mimikatz(self, caplog):
expected = [
"ActiveXObject: system.text.asciiencoding",
"[System.Text.ASCIIEncoding] GetByteCount_2 count = 20164",
"[System.Text.ASCIIEncoding.GetBytes_4]",
"[System.Text.ASCIIEncoding] GetBytes_4",
"ActiveXObject: system.security.cryptography.frombase64transform",
"[System.Security.Cryptography.FromBase64ToTransform] TransformFinalBlock",
"ActiveXObject: system.io.memorystream",
Expand Down
2 changes: 1 addition & 1 deletion thug/ActiveX/modules/System/Text/ASCIIEncoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

def GetByteCount_2(self, chars):
count = len(chars.encode("utf-8"))
log.ThugLogging.add_behavior_warn(f"[System.Text.ASCIIEncoding.GetByteCount_2] count = {count}")
log.ThugLogging.add_behavior_warn(f"[System.Text.ASCIIEncoding] GetByteCount_2 count = {count}")
return count


Expand Down

0 comments on commit 5e16c89

Please sign in to comment.