Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
* [Steal Microsoft Teams Cookies](smb-protocol/steal-microsoft-teams-cookies.md)
* [🆕 Impersonate logged-on Users](smb-protocol/impersonate-logged-on-users.md)
* [🆕 Change User Password](smb-protocol/change-user-password.md)
* [🆕 Add User Group](smb-protocol/add-user-group.md)
* [🆕 Dump User Local Security Questions](smb-protocol/dump-user-local-security-questions.md)

## LDAP protocol
Expand Down
17 changes: 17 additions & 0 deletions smb-protocol/add-user-group.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 🆕 Add User Group

If a user with capabilities such as AddMember, AddSelf, etc. has control, this module can add or remove users from the target group.

### Add User to Group

Only need to specify target user and target group name.


```bash
nxc smb <ip> -u user -p pass -M add-group -o USER=TargetUser Group=TargetGroup
```

If want to remove the target user to group, just need to specify REMOVE true value.
```bash
nxc smb <ip> -u user -p pass -M add-group -o USER=TargetUser Group=TargetGroup REMOVE=True
```