@@ -144,24 +144,21 @@ The *ACE module* supports operations to work with Windows *ACE* values. Its main
144144* ACE* values from binary or SDDL format into human readable form.
145145
146146``` console
147- $ wconv ace --help
148- usage: wconv ace [-h] [--ace-flags] [--ace-types] [--ace-permissions] [--from-string] [--type PERMISSION-TYPE ] [-t PERMISSION ] [--trustees] [-v] [ACE-VALUE ]
147+ $ wconv ace --help
148+ usage: wconv ace [-h] [--ace-flags] [--ace-types] [--ace-permissions] [--from-string] [--type type ] [--toggle perm ] [--trustees] [int ]
149149
150150positional arguments:
151- ACE-VALUE integer ace value
151+ int integer ace value
152152
153- optional arguments:
154- -h, --help show this help message and exit
155- --ace-flags show available ACE flags
156- --ace-types show available ACE types
157- --ace-permissions show permission definitions for requested type
158- --from-string interpret ace value als ace-string (sddl format)
159- --type PERMISSION-TYPE
160- permission type (defaul: file)
161- -t PERMISSION, --toggle PERMISSION
162- toogles specified permission on the ace value
163- --trustees display available trustees
164- -v, --verbose verbose output
153+ options:
154+ -h, --help show this help message and exit
155+ --ace-flags show available ACE flags
156+ --ace-types show available ACE types
157+ --ace-permissions show permission definitions for requested type
158+ --from-string interpret ace value als ace-string (sddl format)
159+ --type type permission type (default: file)
160+ --toggle perm toogles specified permission on the ace value
161+ --trustees display available trustees
165162```
166163
167164##### From Integer
@@ -199,7 +196,7 @@ $ wconv ace --from-string '(A;OICINPFA;RPSDWD;;;BU)'
199196Toggle the specified permission on the ACE value:
200197
201198``` console
202- $ wconv ace 0x00050010 -t WP -t GA
199+ $ wconv ace 0x00050010 --toggle WP --toggle GA
203200[+] Numeric: 0x10050030
204201[+] Permissions:
205202[+] + GENERIC_ALL
@@ -350,18 +347,16 @@ The *SDDL module* supports operations to convert *SDDL strings* into human reada
350347
351348``` console
352349$ wconv sddl --help
353- usage: wconv sddl [-h] [--add-everyone] [--add-anonymous] [-t PERMISSION-TYPE] [-v ] [SDDL-STRING ]
350+ usage: wconv sddl [-h] [--add-everyone] [--add-anonymous] [--type type ] [str ]
354351
355352positional arguments:
356- SDDL-STRING sddl string
353+ str sddl string
357354
358- optional arguments:
359- -h, --help show this help message and exit
360- --add-everyone add full permissions for everyone
361- --add-anonymous add full permissions for anonymous
362- -t PERMISSION-TYPE, --type PERMISSION-TYPE
363- permission type (file, directory, service, ...)
364- -v, --verbose verbose output
355+ options:
356+ -h, --help show this help message and exit
357+ --add-everyone add full permissions for everyone
358+ --add-anonymous add full permissions for anonymous
359+ --type type permission type (default: file)
365360```
366361
367362##### Parse SDDL
@@ -473,15 +468,15 @@ base64 encoded binary blobs.
473468
474469``` console
475470$ wconv sid --help
476- usage: wconv sid [-h] [--to-b64] [--raw] [--well-known] [SID-VALUE ]
471+ usage: wconv sid [-h] [--to-b64] [--raw] [--well-known] [b64 ]
477472
478473positional arguments:
479- SID-VALUE sid value (default format: base64)
474+ b64 sid value (default format: base64)
480475
481- optional arguments :
476+ options :
482477 -h, --help show this help message and exit
483- --to-b64 converts formatted sid to base64
484- --raw specify sid as raw hex string
478+ --to-b64 converts formatted sid (S-1-*) to base64
479+ --raw specify sid as raw hex string (010500...)
485480 --well-known display list of well known sids
486481```
487482
@@ -545,16 +540,15 @@ the corresponding integer representation again.
545540
546541``` console
547542$ wconv uac --help
548- usage: wconv uac [-h] [--mapping] [-t FLAG ] [UAC-VALUE ]
543+ usage: wconv uac [-h] [--mapping] [--toggle flag ] [int ]
549544
550545positional arguments:
551- UAC-VALUE binary user account control
546+ int binary user account control value
552547
553- optional arguments:
554- -h, --help show this help message and exit
555- --mapping display UserAccountControl mappings
556- -t FLAG, --toggle FLAG
557- toogles specified flag on the UserAccountControl value
548+ options:
549+ -h, --help show this help message and exit
550+ --mapping display UserAccountControl mappings (flags)
551+ --toggle flag toogles specified flag on the UserAccountControl value
558552```
559553
560554##### Parse UAC
@@ -575,7 +569,7 @@ $ wconv uac 1114624
575569Adds the specified flag(s) to the UAC value:
576570
577571``` console
578- $ wconv uac 1114624 -t DONT_REQ_PREAUTH -t TRUSTED_FOR_DELEGATION
572+ $ wconv uac 1114624 --toggle DONT_REQ_PREAUTH --toggle TRUSTED_FOR_DELEGATION
579573[+] UserAccountControl: 5833216 (0x00590200)
580574[+] + NORMAL_ACCOUNT
581575[+] + DONT_EXPIRE_PASSWORD
0 commit comments