Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

NTLMv2 Support #21

Closed
wants to merge 33 commits into from
Closed

NTLMv2 Support #21

wants to merge 33 commits into from

Conversation

jborean93
Copy link

Bumping version to 2.0.0 due to the extensive changes that needed to be made to support NTLMv2 authentication. Contains updates to the computational side so that it supports the wide range of different protocols as well as the theorecticaly potential to use Channel Binding Tokens in the future (still needs some more work in the future). Re-worked the tests to make sure we the computational hashes match up with the Microsoft documentation.

BOREAN, Jordan and others added 9 commits August 5, 2016 15:06
…e improvements. This will ultimately break a lot of the things in the build which will be gradualy fixed once they are found. Bumping version to 2.0.0 as there are some changes that will potentially break other packages using this. Please see CHANGES.md for more details on what has changed
…d on the Microsoft documentation. Added the ability to specify the client challenge when initialising compute_response for testing purposes
… list of features I wish to add in future version. Added a mocking function so that the tests work outside of the one host and can work on travisci. Added more tests to test out authenticate messages and the various forms of NTML authentication
…. Added support for python 3.5 as it is newer. Finalised the last Microsoft compute example for ntlmv2 and added it as a test so we can properly test it out
@coveralls
Copy link

coveralls commented Aug 7, 2016

Coverage Status

Coverage increased (+0.1%) to 94.201% when pulling 95b038a on jborean93:master into e660efe on trustrachel:master.

BOREAN, Jordan added 2 commits August 8, 2016 04:09
…n a server set with the Strict setting to verify. Have added more tests to cover CBT and ensure we don't get any regressions in the future. Modified the arguments to create_NTLM_AUTHENTICATE_MESSAGE so that ntlm_compatibility and server_certificate_hash are in a kwarg allowing more variables to be added in the future without breaking anything major
@coveralls
Copy link

coveralls commented Aug 7, 2016

Coverage Status

Coverage decreased (-0.2%) to 93.842% when pulling 95e4b24 on jborean93:master into e660efe on trustrachel:master.

… 2.6, 2.7, 3.3, 3.4 and 3.5, should be good for Travis now
@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 94.141% when pulling 1f9094f on jborean93:master into e660efe on trustrachel:master.

@coveralls
Copy link

coveralls commented Aug 7, 2016

Coverage Status

Coverage increased (+0.6%) to 94.674% when pulling 1f9094f on jborean93:master into e660efe on trustrachel:master.

…e dump function from target_info.py as it isn't necessary and required. Added tests to cover target_info.py methods as well as some more lines in compute_response.py
@coveralls
Copy link

coveralls commented Aug 7, 2016

Coverage Status

Coverage increased (+1.2%) to 95.289% when pulling 4bf525b on jborean93:master into e660efe on trustrachel:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.2%) to 95.289% when pulling 6506b03 on jborean93:master into e660efe on trustrachel:master.

@coveralls
Copy link

coveralls commented Aug 7, 2016

Coverage Status

Coverage increased (+1.8%) to 95.828% when pulling 6506b03 on jborean93:master into e660efe on trustrachel:master.

@@ -17,6 +17,7 @@
import socket
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this file even needed in the main section, shouldn't it be in test for our testing and people use requests-ntlm instead when wanting to use python-ntlm3 in a http sense?

BOREAN, Jordan and others added 3 commits August 12, 2016 12:21
…at have occured and give more info on how to use the library. Moved the message structure out to a separate class to make them easier to use in different methods. Brought back the original ntlm methods for compatibility purposes but will be deprecated as they only support NTLMv1 Authentication. Added more tests and added testing to Python 3.5 in appveyor.
… test to cover NTLMv2 computation when the target info isn't supplied from the server
@coveralls
Copy link

coveralls commented Aug 12, 2016

Coverage Status

Coverage increased (+2.2%) to 96.296% when pulling 5f6fd5c on jborean93:master into e660efe on trustrachel:master.

BOREAN, Jordan and others added 11 commits August 20, 2016 18:57
…nd. Also added preliminary support for signing and sealing of messages. Updated the expectations for the tests so that the messages themselves are being checks against the Microsoft examples. Added cryptography as a dependecy due to the need for having RC4 support (looking at removing this at some point if possible). Updated the CHANGES.md and README.md to incorporate the new changes added
…he MIC was 0. Fixed up some tests to work with python 3
…pdated the example script to show those methods are deprecated and should be avoided
…ond value being larger than the first instead
…ively. Added tests to test out the rc4 code to ensure it is valid. Fixed up the various uses of cryptography to use the rc4.py file instead
…ng the type first, is there a better way for this?
…g authenticate message (didn't have a 0 byte MIC structure). Updated the expected result outside Microsoft example and tested with an actual server to verify everything is correct.
@coveralls
Copy link

coveralls commented Aug 21, 2016

Coverage Status

Coverage increased (+3.05%) to 97.122% when pulling 59c6473 on jborean93:master into e660efe on trustrachel:master.

BOREAN, Jordan and others added 5 commits August 26, 2016 14:54
… in automated tests for appveyor. This will test out the actual NTLM calculations and structuring with a real server validating the NTLM auth. This will only run in appveyor and not travis-ci as it is reliant on a windows server. Still better than nothing though.
…ing as well as the new integration tests with ntlm.
@coveralls
Copy link

coveralls commented Aug 26, 2016

Coverage Status

Coverage increased (+3.05%) to 97.122% when pulling fbe4c7f on jborean93:master into e660efe on trustrachel:master.

@jborean93 jborean93 closed this Aug 29, 2016
@jborean93
Copy link
Author

No response after 22 days. Created a new repo with these changes here https://github.com/jborean93/ntlm-auth as this project seems to be abandoned.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants