Skip to content

Instantly share code, notes, and snippets.

@avoidik
Created May 14, 2023 12:45
Show Gist options
  • Select an option

  • Save avoidik/132851f60ea4ee4a7d648a058d5fcdb8 to your computer and use it in GitHub Desktop.

Select an option

Save avoidik/132851f60ea4ee4a7d648a058d5fcdb8 to your computer and use it in GitHub Desktop.
bookmarklet to get AWS account info
javascript:(function () { function fullDecode (input) { let decoded = decodeURIComponent(input); return (decoded == input ? decoded : fullDecode(decoded)) }; let userInfo = document.cookie.replace(/(?:(?:^|.*;\s*)aws-userInfo\s*\=\s*([^;]*).*$)|^.*$/, "$1"); alert(JSON.stringify(JSON.parse(fullDecode(userInfo)), null, 4)) })();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment