Skip to content

Commit

Permalink
Update pythonsnippets.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenbradshaw authored Aug 1, 2023
1 parent 20fb89f commit f5902a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions writeups/pythonsnippets.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,13 @@ Adding error handling to prevent exceptions in case of lookup failures:
ntlm('password_to_hash')


On newer Pythons that dont include md4 in hashlib, install pycryptodome and try this

from Crypto.Hash import MD4
ntlm = lambda pwd : MD4.new(pwd.encode('utf-16le')).hexdigest()



## Get all permutations of a given input list

The following will get all combinations of the given list, including combinations of items of list length n-1 to 2.
Expand Down

0 comments on commit f5902a8

Please # to comment.