module PWN::WWW::Paypal

def self.authors

def self.authors
st.pentest@0dayinc.com>

def self.close(opts = {})

def self.close(opts = {})
[:browser_obj]
sparentBrowser.close(
wser_obj
 => e

def self.help

def self.help
self}.open(
'optional - :firefox|:chrome|:ie|:headless (Defaults to :firefox)',
al - scheme://proxy_host:port || tor'
self}.signup(
required - browser_obj returned from #open method',
equired - first name',
quired - last name',
ired - address',
d - city',
ed - state abbreviation',
uired - zip code',
'required - mobile phone',
uired - username (email address)',
ional - passwd (will prompt if blank)',
self}.login(
required - browser_obj returned from #open method',
uired - username (email address)',
ional - passwd (will prompt if blank),
 - if true prompt for mfa token (defaults to false)'
self}.logout(
required - browser_obj returned from #open method'
required - browser_obj returned from #open method'

def self.login(opts = {})

def self.login(opts = {})
[:browser_obj]
sername].to_s.scrub.strip.chomp
assword]
obj[:browser]
Plugins::AuthenticationHelper.mask_password
:password].to_s.scrub.strip.chomp
s://www.paypal.com/signin')
(id: 'email').wait_until(&:present?).set(username)
(id: 'password').wait_until(&:present?).set(password)
 'btnLogin').click!
MS
d: 'btnSelectSoftToken').wait_until(&:present?).click!
l == 'https://www.paypal.com/myaccount/home'
ield(id: 'security-code').wait_until(&:present?).set(PWN::Plugins::AuthenticationHelper.mfa(prompt: 'enter mfa token'))
(id: 'btnCodeSubmit').click!
 => e

def self.logout(opts = {})

def self.logout(opts = {})
[:browser_obj]
obj[:browser]
: 13).wait_until(&:present?).click!
 => e

def self.open(opts = {})

def self.open(opts = {})
:Plugins::TransparentBrowser.open(opts)
obj[:browser]
s://www.paypal.com')
 => e

def self.signup(opts = {})

def self.signup(opts = {})
[:browser_obj]
:first_name].to_s.scrub.strip.chomp
last_name].to_s.scrub.strip.chomp
dress].to_s.scrub.strip.chomp
.to_s.scrub.strip.chomp
e].to_s.scrub.strip.chomp
ip_code].to_s.scrub.strip.chomp
s[:mobile_phone].to_s.scrub.strip.chomp
sername].to_s.scrub.strip.chomp
assword]
obj[:browser]
Plugins::AuthenticationHelper.mask_password
:password].to_s.scrub.strip.chomp
s://www.paypal.com/signup/account')
(id: 'email').wait_until(&:present?).set(username)
(id: 'password').wait_until(&:present?).set(password)
(id: 'confirmPassword').wait_until(&:present?).set(password)
 '_eventId_personal').wait_until(&:present?).click!
(id: 'firstName').wait_until(&:present?).set(first_name)
(id: 'lastName').wait_until(&:present?).set(last_name)
(id: 'address1').wait_until(&:present?).set(address)
(id: 'city').wait_until(&:present?).set(city)
 'state').wait_until(&:present?).select_value(state)
(id: 'postalCode').wait_until(&:present?).set(zip_code)
(id: 'phoneNumber').wait_until(&:present?).set(mobile_phone)
: 7).wait_until(&:present?).click! # Agree to ToS
 'submitBtn').wait_until(&:present?).click!
 email sent to: #{username}"
 => e