module PWN::AWS::STS
def self.authors
def self.authors st.pentest@0dayinc.com>
def self.get_temp_credentials(opts = {})
def self.get_temp_credentials(opts = {}) ion].to_s.scrub.chomp.strip ole_arn].to_s.scrub.chomp.strip = opts[:role_session_name].to_s.scrub.chomp.strip opts[:duration_seconds].to_i rieving AWS STS Credentials...') STS::Client.new(region: region) client.assume_role( rn, e: role_session_name, : duration_seconds plete.\n") tials => e
def self.help
def self.help self}.get_temp_credentials( red - region name to connect (eu-west-1, ap-southeast-1, ap-southeast-2, eu-central-1, ap-northeast-2, ap-northeast-1, us-east-1, sa-east-1, us-west-1, us-west-2)', uired - role arn for instance profile to be used', ame: 'required - the name of the instance profile role', ds: 'required - seconds in which sts credentials will expire'