8000 GitHub - codewatchorg/CloudKeyHunter: Scan targets via SMB for cloud key files on Windows systems
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

codewatchorg/CloudKeyHunter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

CloudKeyHunter

SMB based scanner that connects to targets in a text file and checks them for common cloud credential files for AWS/Azure/GCP.

The PowerShell script loops through a target list file and attempts to access each user's directory to search for common paths for AWS, Azure, and GCP cloud key files.

Requirements

This script requires local admin rights (and a configuration that allows local access) or domain admin rights on the servers being scanned. This can be performed via:

  1. An already logged domain admin account,
  2. An already logged in local account with the same username and password as the target(s),
  3. Using 'runas /netonly /user:DOMAIN\USER "powershell -exec bypass"' for domain accounts, or
  4. Using 'runas /netonly /user:LOCAL\USER "powershell -exec bypass"' for a local account.

Usage

NAME    
  Invoke-CloudKeyHunter
  
SYNOPSIS    
  This module loops through a target list and searches each user's directory for AWS, Azure, and GCP cloud key files.
  
    CloudKeyHunter Function: Invoke-CloudKeyHunter
    Author: Josh Berry (@codewatchorg)
    License: BSD 3-Clause
    Required Dependencies: None
    Optional Dependencies: None

SYNTAX    
  Invoke-CloudKeyHunter [[-targets] <Object>] [-verbose] [<CommonParameters>]

DESCRIPTION    
This module loops through C:\Users\\ directories and attempts to enumerate cloud credential files.  The script 
takes a list of targets and a username/password combination to authenticate over SMB to list the files. This requires 
administrative credentials.

Example CloudKeyHunter.ps1 usage:
    # Without verbose mode
    Invoke-CloudKeyHunter -targets .\targets.txt
    
    # With verbose mode
    Invoke-CloudKeyHunter -targets .\targets.txt -verbose

About

Scan targets via SMB for cloud key files on Windows systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0