trustedsec / CS-Situational-Awareness-BOF

Situational Awareness commands implemented using Beacon Object Files
GNU General Public License v2.0
1.26k stars 218 forks source link

added netuserAdd BOF #61

Closed kiwings closed 3 years ago

kiwings commented 3 years ago

add a new bof: netuserAdd add a user to target group

kiwings commented 3 years ago

Missing to update bofdefs.h

WINBASEAPI DWORD WINAPI NETAPI32$NetUserAdd(LPCWSTR servername, DWORD level,LPBYTE *bufptr, LPDWORD parm_err);
WINBASEAPI DWORD WINAPI NETAPI32$NetLocalGroupAddMembers(LPCWSTR servername,LPCWSTR groupname,DWORD level,LPBYTE *bufptr, DWORD totalentries);

#define NETAPI32$NetUserAdd  NetUserAdd
#define NETAPI32$NetLocalGroupAddMembers NetLocalGroupAddMembers
freefirex commented 3 years ago

Thank you for this pull request. I believe it to be well coded and I can appreciate the time spent on it.

Unfortunately as this is a technique that modifies a target system I will have to reject it from this specific repository. This is outlined under technique expectations here

That specific decision was made by those higher up then I in TrustedSec in terms of what we want our name on publicly in relation to this repo.

Thank you again, as stated I think this is good code and it would be more then possible for it to stand alone or in a fork.