module PWN::Plugins::OAuth2
def self.authors
def self.authors st.pentest@0dayinc.com>
def self.decode(opts)
def self.decode(opts) s[:oauth2_token] uth2_token) => e
def self.get_value_by_key(opts)
def self.get_value_by_key(opts) s[:oauth2_token] receiving a symbol. Convert to string first in case an int is passed. o_s.to_sym out the ugly tail of this stuff. ken = Base64.decode64(oauth2_token).match(/^(.*?)\]\}/).to_s body = JSON.parse(readable_oauth2_token.split(/^\{(.*?)\}/)[-1], symbolize_names: true) body[key] => e
def self.help
def self.help auth2_token: 'required oauth2 token')" e_by_key( 'required oauth2 token', oauth2 token key name located within the Base64 encoded token as symbol, e.g. :company_id'