GithubHelp home page GithubHelp logo

Comments (4)

 avatar commented on July 26, 2024 1

Ntlm uses md4

hashed_password = hashlib.new('sha')
hashed_password.update(str.encode(password))
hashed_password.update(str.encode(str.upper(name)))
hashed_password = hashed_password.digest()

secure_password = hashlib.new('md4')
secure_password.update(str.encode(password, encoding="utf-16le"))
secure_password = secure_password.digest()

from softetherpy.

birkanozer avatar birkanozer commented on July 26, 2024

Any progress yet?

from softetherpy.

Anurag-Chaudhary avatar Anurag-Chaudhary commented on July 26, 2024

Below worked for me:

hashed_password = hashlib.new('sha')
hashed_password.update(str.encode(password))
hashed_password.update(str.encode(str.upper(name)))
hashed_password = hashed_password.digest()

    secure_password = hashlib.new('sha')
    secure_password.update(hashed_password)
    secure_password.update(self.connect_response['random'][0])
    
    payload = {
        'HubName': ('string', [hub_name]),
        'Name': ('string', [name]),
        'GroupName': ('string', [group_name]),
        'Realname': ('ustring', [realname]),
        'Note': ('ustring', [note]),
        'CreatedTime': ('int64', [created_time]),
        'UpdatedTime': ('int64', [updated_time]),
        'ExpireTime': ('int', [expire_time]),
        'NumLogin': ('int', [num_login]),
        'AuthType': ('int', [1]),
        'AuthData': ('raw', [password]),
        'HashedKey': ('raw', [hashed_password]),
        'NtLmSecureHash': ('raw', [secure_password.digest()])
    }

from softetherpy.

iutx avatar iutx commented on July 26, 2024

You can add "AuthType" and "Auth_Password".
Auth type 1 mean create user by password authentication.
Auth password input clear text.

payload = {
'HubName': ('string', [hub_name]),
'Name': ('string', [name]),
'GroupName': ('string', [group_name]),
'Realname': ('ustring', [realname]),
'Note': ('ustring', [note]),
'CreatedTime': ('int64', [created_time]),
'UpdatedTime': ('int64', [updated_time]),
'ExpireTime': ('int', [expire_time]),
'NumLogin': ('int', [num_login]),
"AuthType": ('int', [auth_type]),
"Auth_Password": ('string', [user_pass]),
}

from softetherpy.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.