Comments (4)
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.
Any progress yet?
from softetherpy.
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.
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)
- Only 443 port can be used? HOT 8
- Add documentation about how to setup the CGI endpoint for the API client HOT 2
- Connection error
- Uploading the project to pypi
- Source materials HOT 2
- Access to IpTable HOT 1
- How to get Virtual IP address list?
- enum_user error for too many users
- It's not working now? HOT 3
- I can’t create link for cascade connection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from softetherpy.