8000 GitHub - paulxu/getawscred: Automatic
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

paulxu/getawscred

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

GETAWSCRED v1.5, get CLI credentials from AWS SSO login page

usage: getawscred.py [-h] [-f CREDENTIALS FILE] [-p PROFILE] [-r] [-s] SSOSITE SSOUSERNAME AWSACCOUNT AWSUSERNAME
positional arguments:
  SSOSITE              SSO site, i.e. "company-aws-sso.awsapps.com"
  SSOUSERNAME          SSO username
  AWSACCOUNT           AWS account, can be part of name if it is unique, i.e. "Company Infra"
  AWSUSERNAME          AWS username, can be part of name if it is unique, i.e. "power"
optional arguments:
  -h, --help           show this help message and exit
  -f CREDENTIALS FILE  Credential's file with path, default is ~/.aws/credentials
  -p PROFILE           Name of aws profile in credential's file, default is the awsaccount name
  -r                   Recreate cookie file
  -s                   Show credentials instead of writing to file

The python script uses Selenium as headless browser in order to mimic SSO authentication against aws site.
It is able to detect a requirement of MFA code and prompts for entering it. The cookie file allows to preserve the MFA authentication.

About

Automatic

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%
0