2 techniquesLinux · Windows · ActiveDirectoryWADComsGPL-3.0
Impacket-addcomputer-LDAPS
ExecutionPersistenceLinuxWindowsActiveDirectory
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 LDAPS. Plain LDAP is not supported, as it doesn't allow setting the password of the new computer.
Command Reference:
Target IP: 10.10.10.1
Domain: test.local
New Computer Password: TestPassword123
New Computer Name: testComputer
Username: john
Password: password123
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