Skip to content

Instantly share code, notes, and snippets.

@api0cradle
Last active September 11, 2023 10:17
Show Gist options
  • Star 19 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save api0cradle/95cd51fa1aa735d9331186f934df4df9 to your computer and use it in GitHub Desktop.
Save api0cradle/95cd51fa1aa735d9331186f934df4df9 to your computer and use it in GitHub Desktop.
AppLocker hardening
accesschk -w -s -u Users "C:\Program Files" >> programfiles.txt
accesschk -w -s -u Everyone "C:\Program Files" >> programfiles.txt
accesschk -w -s -u "Authenticated Users" "C:\Program Files" >> programfiles.txt
accesschk -w -s -u Interactive "C:\Program Files" >> programfiles.txt
accesschk -w -s -u "This Organization" "C:\Program Files" >> programfiles.txt
accesschk -w -s -u "Authentication authority asserted identity" "C:\Program Files" >> programfiles.txt
accesschk -w -s -u "Mandatory Label\Medium Mandatory Level" "C:\Program Files" >> programfiles.txt
accesschk -w -s -u %username% "C:\Program Files" >> programfiles.txt
accesschk -w -s -u Users "C:\Program Files (x86)" >> programfilesx86.txt
accesschk -w -s -u Everyone "C:\Program Files (x86)" >> programfilesx86.txt
accesschk -w -s -u "Authenticated Users" "C:\Program Files (x86)" >> programfilesx86.txt
accesschk -w -s -u Interactive "C:\Program Files (x86)" >> programfilesx86.txt
accesschk -w -s -u "This Organization" "C:\Program Files (x86)" >> programfilesx86.txt
accesschk -w -s -u "Authentication authority asserted identity" "C:\Program Files (x86)" >> programfilesx86.txt
accesschk -w -s -u "Mandatory Label\Medium Mandatory Level" "C:\Program Files (x86)" >> programfilesx86.txt
accesschk -w -s -u %username% "C:\Program Files (x86)" >> programfilesx86.txt
accesschk -w -s -u Users "C:\Windows" >> windows.txt
accesschk -w -s -u Everyone "C:\Windows" >> windows.txt
accesschk -w -s -u "Authenticated Users" "C:\Windows" >> windows.txt
accesschk -w -s -u Interactive "C:\Windows" >> windows.txt
accesschk -w -s -u "This Organization" "C:\Windows" >> windows.txt
accesschk -w -s -u "Authentication authority asserted identity" "C:\Windows" >> windows.txt
accesschk -w -s -u "Mandatory Label\Medium Mandatory Level" "C:\Windows" >> windows.txt
accesschk -w -s -u %username% "C:\Windows" >> windows.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment