Skip to content

Tools for read, parse and write file ACLs (NTFS) in Windows OS

License

Notifications You must be signed in to change notification settings

An0ther0ne/SSDL_Utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SDDL_Utils

  • readsddl - tool for read and parse file ACLs in SDDL format.
  • getsddl - tool for get SDDL for specified file or folder.

SYNOPSIS

  1. Read and parse file ACLs in SDDL format:

    python readssdl.py [path]<filename>
    
  2. Parse SDDL string:

    python readssdl.py /S:<SDDL>
    
  3. Get SDDL representation ACL for file

    python getsddl.py <file | folder>
    

Output:

README.md :: D:AI(A;ID;0x1301bf;;;AU)(A;ID;FA;;;SY)(A;ID;FA;;;BA)(A;ID;0x1301bf;;;BU)
  D:AI :: SDDL_AUTO_INHERITED
  A;ID;0x1301bf;;;AU  
    AUTHENTICATED_USERS           ACCESS_ALLOWED            INHERITED                           FILE_READ|DELETE_CHILD|LIST_CHILDREN|READ_PROPERTY|WRITE_PROPERTY|CONTROL_ACCESS|STANDARD_DELETE
  A;ID;FA;;;SY        
    LOCAL_SYSTEM                  ACCESS_ALLOWED            INHERITED                           FILE_ALL        
  A;ID;FA;;;BA        
    BUILTIN_ADMINISTRATORS        ACCESS_ALLOWED            INHERITED                           FILE_ALL        
  A;ID;0x1301bf;;;BU  
    BUILTIN_USERS                 ACCESS_ALLOWED            INHERITED                           FILE_READ|DELETE_CHILD|LIST_CHILDREN|READ_PROPERTY|WRITE_PROPERTY|CONTROL_ACCESS|STANDARD_DELETE
   D:AI(A;ID;0x1301bf;;;AU)(A;ID;FA;;;SY)(A;ID;FA;;;BA)(A;ID;0x1301bf;;;BU)

Explanation

First tool 'readsddl' parse output of Windows standart CACLS tool. But the second 'getsddl' use direct call API procedures from Windows security module. You may combine output of second tool as input for the first.

Files:

  • readsddl.py - Tool for read and parse file ACLs in SDDL notation.
  • getsddl.py - Tool for read ACLs for specified file or folder (including network shares) and shown SDDL string representation of that.

Requirements:

  • Python
  • Windows OS with NTFS

AUTHOR

An0ther0ne

SEE ALSO:

About

Tools for read, parse and write file ACLs (NTFS) in Windows OS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages