-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathBOF-Trustedsec.yaml
More file actions
1349 lines (1342 loc) · 51.3 KB
/
BOF-Trustedsec.yaml
File metadata and controls
1349 lines (1342 loc) · 51.3 KB
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
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
name: adcs_enum
srcfile: "entry"
description: "Enumerate CAs and templates in the AD using Win32 functions"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/adcs_enum/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/adcs_enum/adcs_enum.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/adcs_enum/adcs_enum.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/adcs_enum/certca.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/adcs_enum/certenroll.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
adcs_enum <domain>
'
arguments:
- name: domain
desc: "Active directory domain name"
type: wstring
required: true
---
name: adcs_enum_com
srcfile: "entry"
description: "Enumerate CAs and templates in the AD using ICertConfig COM object"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/adcs_enum_com/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/adcs_enum_com/adcs_enum_com.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/adcs_enum_com/adcs_enum_com.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/adcs_enum_com/certca.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/adcs_enum_com/certenroll.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
adcs_enum_com
'
---
name: adcs_enum_com2
srcfile: "entry"
description: "Enumerate CAs and templates in the AD using IX509PolicyServerListManager COM object"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/adcs_enum_com2/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/adcs_enum_com2/adcs_enum_com2.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/adcs_enum_com2/adcs_enum_com2.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/adcs_enum_com2/certenroll.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
adcs_enum_com2
'
---
name: adv_audit_policies
srcfile: "entry"
description: "Retrieve advanced security audit policies"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/adv_audit_policies/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
adv_audit_policies
adv_audit_policies 1
'
arguments:
- name: iswow64
desc: "If set to non zero (e.g. 1) it retrieves policy for WoW64 subsystem. Default: 0"
type: integer
required: false
---
name: arp
srcfile: "entry"
description: "List ARP table"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/arp/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
arp
'
---
name: cacls
srcfile: "entry"
description: "List user permissions for the specified file, wildcards supported"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/cacls/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/cacls/defines.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
cacls *
cacls .
cacls "C:\\windows\\system32"
cacls "C:\\windows\\system32\\notepad.exe"
'
arguments:
- name: filepath
desc: "Path to the filesystem entry"
type: wstring
required: true
---
name: dir
srcfile: "entry"
description: "List files in a directory. Supports wildcards"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/dir/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/queue.c'
examples: '
dir "C:\\windows\\system32" 1
'
arguments:
- name: path
desc: "Path to the directory"
type: string
required: true
- name: subdirs
desc: "If set to non zero (e.g. 1) it will list subdirectories"
type: short
required: true
---
name: listmods
srcfile: "entry"
description: "List process modules (DLL). Target current process if PID is empty"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/listmods/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
listmods
listmods 3461
'
arguments:
- name: pid
desc: "Process PID"
type: integer
required: false
---
name: ldapsearch
srcfile: "entry"
description: "Execute LDAP searches"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/ldapsearch/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
ldapsearch z:"(objectclass=*)" z:"" i:0 i:0 z:"" z:"" i:0
ldapsearch z:"(objectclass=*)" "objectSID,name" i:0 i:0 z:"" z:""
'
arguments:
- name: ldap_filter
desc: "LDAP filter"
type: string
required: true
- name: ldap_attributes
desc: "LDAP attribute(s) or empty string (z:\"\")"
type: string
required: true
- name: results_count
desc: "Count of results or 0 for all results"
type: integer
required: true
- name: scope_of_search
desc: "LDAP attributes"
type: integer
required: true
- name: hostname
desc: "Domain Controller name or IP address or empty string (z:\"\")"
type: string
required: true
- name: domain
desc: "Distinguished Name or empty string (z:\"\")"
type: string
required: true
- name: ldaps
desc: "LDAPS support; set to 0 (false) by default"
type: integer
required: false
---
name: driversigs
srcfile: "entry"
description: "Enumerate installed services Imagepaths to check the signing cert against known AV/EDR vendors"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/driversigs/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
driversigs
'
---
name: enum_filter_driver
srcfile: "entry"
description: "Enumerate filter drivers"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/enum_filter_driver/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
enum_filter_driver
'
arguments:
- name: hostName
desc: 'The name of the remote computer in form: \\computername. If not provided the local machine name is used'
type: string
required: false
---
name: enumLocalSessions
srcfile: "entry"
description: "Enumerate currently attached user sessions both local and over RDP"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/enumLocalSessions/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
enumLocalSessions
'
---
name: env
srcfile: "entry"
description: "List process environment variables"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/env/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
env
'
---
name: findLoadedModule
srcfile: "entry"
description: "Find what processes *modulepart* are loaded into, optionally searching just *procnamepart*"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/findLoadedModule/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
findLoadedModule ntdll explorer
findLoadedModule ntdll
findLoadedModule amsi.dll
'
arguments:
- name: modulepart
desc: 'Part of dll module name used by the process(es)'
type: string
required: true
- name: procnamepart
desc: 'Part of process name to search in. If not provided search in every process'
type: string
required: false
---
name: get_dpapi_system
srcfile: "entry"
description: "Get the DPAPI_SYSTEM key and bootkey"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/get_dpapi_system/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
get_dpapi_system
'
---
name: get_password_policy
srcfile: "entry"
description: "Get target server or domain's configured password policy and lockouts"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/get_password_policy/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
get_password_policy
get_password_policy 127.0.0.1
'
arguments:
- name: hostname
desc: 'If not set check password policy for the domain'
type: wstring
required: false
---
name: get_session_info
srcfile: "entry"
description: "Prints out information related to the current users logon session"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/get_session_info/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
get_session_info
'
---
name: ipconfig
srcfile: "entry"
description: "List IPv4 address, hostname, and DNS server"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/ipconfig/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
ipconfig
'
---
name: ldapsecuritycheck
srcfile: "entry"
description: "Check LDAP signing and LDAPS channel binding requirements on domain controllers. Performs authentication tests to detect security configurations"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/ldapsecuritycheck/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
ldapsecuritycheck
ldapsecuritycheck DCname
'
arguments:
- name: DCname
desc: 'Domain Controller name. If not provided autodiscovery is performed'
type: wstring
required: false
---
name: listdns
srcfile: "entry"
description: "List DNS cache entries. Attempt to query and resolve each"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/listdns/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
listdns
'
---
name: list_firewall_rules
srcfile: "entry"
description: "List Windows firewall rules"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/list_firewall_rules/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
list_firewall_rules
'
---
name: windowlist
srcfile: "entry"
description: "List visible windows in the current user session"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/windowlist/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
windowlist
windowlist 0
'
arguments:
- name: display_all
desc: 'By defualt displays all windows (also hidden ones), set to 0 to change it'
type: integer
required: false
---
name: whoami
srcfile: "entry"
description: "List whoami /all"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/whoami/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
whoami
'
---
name: wmi_query
srcfile: "entry"
description: "Run a wmi query and display results in CSV format"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/wmi_query/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/wmi.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/wmi.h'
examples: '
wmi_query "root\\cimv2", "select * from win32_process"
'
arguments:
- name: query
desc: 'WMI query to run'
type: wstring
required: true
- name: resource
desc: 'WMI resource to connnect to'
type: wstring
required: true
---
name: vssenum
srcfile: "entry"
description: "Enumerate Shadow Copies on some Server 2012+ servers"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/vssenum/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
vssenum "localhost" "share"
'
arguments:
- name: hostname
desc: "hostname to check"
type: wstring
required: true
- name: sharename
desc: "sharename to check"
type: wstring
required: false
---
name: useridletime
srcfile: "entry"
description: "Shows how long the user as been idle, displayed in seconds, minutes, hours and days"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/useridletime/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
useridletime
'
---
name: uptime
srcfile: "entry"
description: "List system boot time and how long it has been running"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/uptime/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
uptime
'
---
name: tasklist
srcfile: "entry"
description: "List running processes including PID, PPID, and ComandLine (uses wmi)"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/tasklist/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/wmi.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/wmi.h'
examples: '
tasklist localhost
'
arguments:
- name: server
desc: "hostname to connect to via WMI"
type: wstring
required: true
---
name: sha1
srcfile: "entry"
description: "Hash filename using sha1"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/sha1/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
sha1 filename
'
arguments:
- name: file
desc: "file for which calculate sha1 sum"
type: wstring
required: true
---
name: sha256
srcfile: "entry"
description: "Hash filename using sha256"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/sha256/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
sha256 filename
'
arguments:
- name: file
desc: "file for which calculate sha1 sum"
type: wstring
required: true
---
name: schtasksquery
srcfile: "entry"
description: "Query the given task on the local or remote computer"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/schtasksquery/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/queue.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/anticrash.c'
examples: '
schtasksquery "" "\\Microsoft\\Windows\\Autochk\\Proxy"
'
arguments:
- name: hostname
desc: "Hostname or empty wstring for localhost"
type: wstring
required: true
- name: taskname
desc: "Taskname to query"
type: wstring
required: true
---
name: schtasksenum
srcfile: "entry"
description: "Enumerate scheduled tasks on the local or remote computer"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/schtasksenum/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/queue.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/anticrash.c'
examples: '
schtasksenum ""
'
arguments:
- name: hostname
desc: "Hostname or empty wstring for localhost"
type: wstring
required: true
---
name: sc_enum
srcfile: "entry"
description: "Enumerate services for qc, query, qfailure, and qtriggers info"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/sc_enum/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/anticrash.c'
examples: '
sc_enum ""
'
arguments:
- name: hostname
desc: "Hostname or empty wstring for localhost"
type: wstring
required: true
---
name: sc_qc
srcfile: "entry"
description: "sc qc impelmentation in BOF"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/sc_qc/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/anticrash.c'
examples: '
sc_qc "192.168.1.1" SvcName
'
arguments:
- name: hostname
desc: "Hostname or empty string for localhost"
type: wstring
required: true
- name: servicename
desc: "Servicename to check"
type: string
required: true
---
name: sc_qdescription
srcfile: "entry"
description: "sc qdescription implementation in BOF"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/sc_qdescription/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
sc_qdescription "192.168.1.1" SvcName
'
arguments:
- name: hostname
desc: "Hostname or empty string for localhost"
type: wstring
required: true
- name: servicename
desc: "Servicename to check"
type: string
required: true
---
name: sc_qfailure
srcfile: "entry"
description: "Query a service for failure conditions"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/sc_qfailure/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/anticrash.c'
examples: '
sc_qfailure "192.168.1.1" SvcName
'
arguments:
- name: hostname
desc: "Hostname or empty string for localhost"
type: wstring
required: true
- name: servicename
desc: "Servicename to check"
type: string
required: true
---
name: sc_qtriggerinfo
srcfile: "entry"
description: "Query a service for trigger conditions"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/sc_qtriggerinfo/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/anticrash.c'
examples: '
sc_qtriggerinfo "192.168.1.1" SvcName
'
arguments:
- name: hostname
desc: "Hostname or empty string for localhost"
type: wstring
required: true
- name: servicename
desc: "Servicename to check"
type: string
required: true
---
name: sc_query
srcfile: "entry"
description: "sc query implementation in BOF"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/sc_query/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/anticrash.c'
examples: '
sc_query "192.168.1.1" SvcName
'
arguments:
- name: hostname
desc: "Hostname or empty string for localhost"
type: wstring
required: true
- name: servicename
desc: "Servicename to check"
type: string
required: true
---
name: routeprint
srcfile: "entry"
description: "List IPv4 routes"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/routeprint/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
routeprint
'
---
name: resources
srcfile: "entry"
description: "List memory usage and available disk space on the primary hard drive"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/resources/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
resources
'
---
name: md5
srcfile: "entry"
description: "Hash filename using md5"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/md5/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
md5 filename
'
arguments:
- name: filename
desc: "creating md5 hash for this file"
type: string
required: true
---
name: probe
srcfile: "entry"
description: "Check if a specific port is open"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/probe/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
probe "192.168.1.1" 22
'
arguments:
- name: host
desc: "IP address of target host"
type: string
required: true
- name: port
desc: "port number to probe"
type: integer
required: true
---
name: regsession
srcfile: "entry"
description: "Return logged on user SIDs by enumerating HKEY_USERS. BOFHound compatible"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/regsession/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
regsession "192.168.1.1"
'
arguments:
- name: hostname
desc: "Hostname or empty string for localhost"
type: string
required: true
---
name: reg_query
srcfile: "entry"
description: "Query a registry value or enumerate a single key"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/reg_query/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/anticrash.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/stack.c'
examples: '
reg_query "" 2 "system\\currentcontrolset\\services\\webclient" ImagePath
reg_query "192.168.1.1" 2 "system\\currentcontrolset\\services\\webclient" ImagePath
'
arguments:
- name: hostname
desc: "Hostname or empty string for localhost"
type: string
required: true
- name: hive
desc: "Registry hive to query"
type: integer
required: true
- name: path
desc: "Key path"
type: string
required: true
- name: queryValue
desc: "Value to query"
type: string
required: flase
---
name: nslookup
srcfile: "entry"
description: "Make a DNS query"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/nslookup/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
nslookup "no.such.host.com" "1.1.1.1" 1
'
arguments:
- name: hostname
desc: "name to resolve"
type: string
required: true
- name: dnsServer
desc: "DNS server to query"
type: integer
required: true
- name: recordType
desc: "DNS record type: A = 1, NS = 2, CNAME = 5, AAAA = 28, ANY = 255"
type: short
required: true
---
name: locale
srcfile: "entry"
description: "List system locale language, locale ID, date, time, and country"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/locale/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/anticrash.c'
examples: '
locale
'
---
name: netgroup
srcfile: "entry"
description: "List groups or grup members from the default or specified domain"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows
entrypoint: "go"
sources:
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/SA/netgroup/entry.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/base.c'
- 'https://raw.githubusercontent.com/trustedsec/CS-Situational-Awareness-BOF/refs/heads/master/src/common/bofdefs.h'
examples: '
netgroup 0 "corp.local"
netgroup 1 "" "Domain Admins"
'
arguments:
- name: type
desc: "listing type: 0 - list groups; 1 - list group members"
type: short
required: true
- name: domain
desc: "domain name"
type: wstring
required: true
- name: group
desc: "group name"
type: wstring
required: true
---
name: netlocalgroup
srcfile: "entry"
description: "List local groups or local grup members from the local or specified computer"
author: Trustedsec
tags: ['windows', 'host-recon', 'trustedsec', 'CS-Situational-Awareness-BOF']
OS: windows