Impacket addcomputer SMB

UsernamePasswordLinuxWindowsExploitationPersistence

Impacket’s addcomputer.py will add a computer account to the domain and set its password. The following command will create a new computer over the SMB by specifying the SAMR method.

Command Reference:

Target IP: 10.10.10.1

Domain: test.local

New Computer Password: TestPassword123

New Computer Name: testComputer

Username: john

Password: password123

Command

python3 addcomputer.py -method SAMR -dc-ip 10.10.10.1 -computer-pass TestPassword321 -computer-name testComputer test.local/john:password123

References