Skip to content

AgeloVito/adduserbysamr-bof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adduserbysamr-bof

Cobalt Strike BOF that Add a user to localgroup by samr.

Build

git clone https://github.com/AgeloVito/adduserbysamr-bof.git
make

And load adduserbysamr.cna

Usage

beacon> help adduserbysamr
Use: adduserbysamr [username] [password] [groupName]
e.g: adduserbysamr sysadmin p@ssw0rd
     adduserbysamr sysadmin p@ssw0rd Administrators
     adduserbysamr sysadmin p@ssw0rd "Remote Desktop Users"

Add a user to localgroup by samr, groupName is "Administrators" by default, do not use it at AD.

image

image

Refence

https://loong716.top/posts/MS_SAMR_Tips/

https://idiotc4t.com/redteam-research/netuseradd-ni-xiang

https://learn.microsoft.com/zh-cn/windows/win32/secmgmt/built-in-and-account-domains

About

Cobalt Strike BOF that Add a user to localgroup by samr

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published