πŸ†• Modify Group

If a user has privileges such as AddMember, AddSelf, etc. over a group, this module can add or remove users from that group.

Add User to Group

Just specify the target user and target group name.

nxc smb <ip> -u <username> -p <password> -M modify-group -o USER=TargetUser GROUP=TargetGroup

Remove User from Group

If want to remove the target user from the group, just specify the REMOVE=True option.

nxc smb <ip> -u <username> -p <password> -M modify-group -o USER=TargetUser GROUP=TargetGroup REMOVE=True