From 50ae7af2a98164fc5cd7caff2e2caab0085991ea Mon Sep 17 00:00:00 2001 From: termanix <50464194+termanix@users.noreply.github.com> Date: Sat, 17 May 2025 20:41:40 +0300 Subject: [PATCH 1/2] Create add-user-group.md --- smb-protocol/add-user-group.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 smb-protocol/add-user-group.md diff --git a/smb-protocol/add-user-group.md b/smb-protocol/add-user-group.md new file mode 100644 index 0000000..058d81f --- /dev/null +++ b/smb-protocol/add-user-group.md @@ -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 -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 -u user -p pass -M add-group -o USER=TargetUser Group=TargetGroup REMOVE=True +``` From 73167526317e104093e70e76cafc3bf264224d8f Mon Sep 17 00:00:00 2001 From: termanix <50464194+termanix@users.noreply.github.com> Date: Sat, 17 May 2025 20:43:13 +0300 Subject: [PATCH 2/2] Update SUMMARY.md --- SUMMARY.md | 1 + 1 file changed, 1 insertion(+) diff --git a/SUMMARY.md b/SUMMARY.md index 6957e39..630e226 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -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