pwn 0.4.386 → 0.4.387

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9b485665b5ab58c1b6a395b6a3612ad1d9d0674d4f20a1243c7b76eb1995595
4
- data.tar.gz: 5ff53b97446a9c0face611d86bf3e328cb424a832b9136e6d2ecb64c821a3bac
3
+ metadata.gz: 69e0d57c1556e5adb3cfd5afe9c38f43dcf4158ec0dea58b76b05dade6124818
4
+ data.tar.gz: 28d847dcf1306254508beb5bed47486762d5051d0251586738619ee443d1fe8b
5
5
  SHA512:
6
- metadata.gz: 2c8aed63d10f28f5f80326e94df77d21192db771bc8f326006c496a2968d079be1d0a445a1a8dd7f9a38fe35fe70746edbb8538e0acd74d71124aa775fe1cac0
7
- data.tar.gz: 8d3fa53f9340dedbfc147e2a0d61520180f382b69ab41b42363b51fea34500e67f4afdf8ce6ff63162b8d2a5e1cc898a96ef845ab89fba243d5462e0a9a1c1d2
6
+ metadata.gz: a581d275147b239b3b022fdcfb2b436acb3e2bd70489bb59fffc03522645539440d07218c3a8d4502b8015a23e70a3329670ad62d298d57cdc485e0cf1cc4c4c
7
+ data.tar.gz: 1575cebddfe1b9d9667afc53f1de79c26e633721c0688c6638dc53eac856e1636f2ea16ebede288a714c5d0c93eb2982ca67d65befbb106458ed6eb6c2807df6
data/Gemfile CHANGED
@@ -47,6 +47,7 @@ gem 'packetfu', '1.1.13'
47
47
  gem 'pdf-reader', '2.9.2'
48
48
  gem 'pg', '1.3.5'
49
49
  gem 'pry', '0.14.1'
50
+ gem 'pry-bond', '0.0.1'
50
51
  gem 'pry-doc', '1.3.0'
51
52
  gem 'rake', '13.0.6'
52
53
  gem 'rb-readline', '0.5.5'
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.1@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.386]:001 >>> PWN.help
40
+ pwn[v0.4.387]:001 >>> PWN.help
41
41
  ```
42
42
 
43
43
  [![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
@@ -52,7 +52,7 @@ $ rvm use ruby-3.1.1@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.386]:001 >>> PWN.help
55
+ pwn[v0.4.387]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
data/bin/pwn CHANGED
@@ -3,6 +3,7 @@
3
3
 
4
4
  require 'pwn'
5
5
  require 'pry'
6
+ require 'pry_bond'
6
7
  require 'tty-prompt'
7
8
  require 'tty-reader'
8
9
 
@@ -105,6 +105,9 @@ module PWN
105
105
  this_profile['download.default_directory'] = '~/Downloads'
106
106
 
107
107
  switches = []
108
+ switches.push('--start-maximized')
109
+ switches.push('--disable-notifications')
110
+
108
111
  if proxy
109
112
  switches.push("--host-resolver-rules='MAP * 0.0.0.0 , EXCLUDE #{URI(proxy).host}'") if with_tor
110
113
  switches.push("--proxy-server=#{proxy}")
@@ -187,7 +190,10 @@ module PWN
187
190
  this_profile['download.default_directory'] = '~/Downloads'
188
191
 
189
192
  switches = []
190
- switches.push('-headless')
193
+ switches.push('--headless')
194
+ switches.push('--start-maximized')
195
+ switches.push('--disable-notifications')
196
+
191
197
  if proxy
192
198
  switches.push("--host-resolver-rules='MAP * 0.0.0.0 , EXCLUDE #{URI(proxy).host}'") if with_tor
193
199
  switches.push("--proxy-server=#{proxy}")
data/lib/pwn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.4.386'
4
+ VERSION = '0.4.387'
5
5
  end
@@ -27,7 +27,8 @@ module PWN
27
27
  # browser_obj = PWN::WWW::CoinbasePro.login(
28
28
  # browser_obj: 'required - browser_obj returned from #open method',
29
29
  # username: 'required - username',
30
- # password: 'optional - passwd (will prompt if blank)'
30
+ # password: 'optional - passwd (will prompt if blank)',
31
+ # mfa: 'optional - if true prompt for mfa token (defaults to false)'
31
32
  # )
32
33
 
33
34
  public_class_method def self.login(opts = {})
@@ -44,9 +45,6 @@ module PWN
44
45
 
45
46
  browser_obj.goto('https://pro.coinbase.com')
46
47
 
47
- # In case window is really small,
48
- # click on hamburger menu
49
- browser_obj.div(index: 9).click if browser_obj.div(index: 9).visible?
50
48
  browser_obj.span(text: 'Sign in').wait_until(&:present?).click
51
49
  browser_obj.text_field(name: 'email').wait_until(&:present?).set(username)
52
50
  browser_obj.text_field(name: 'password').wait_until(&:present?).set(password)
@@ -117,6 +115,7 @@ module PWN
117
115
  browser_obj: 'required - browser_obj returned from #open method',
118
116
  username: 'required - username',
119
117
  password: 'optional - passwd (will prompt if blank),
118
+ mfa: 'optional - if true prompt for mfa token (defaults to false)'
120
119
  )
121
120
 
122
121
  browser_obj = #{self}.logout(
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.386
4
+ version: 0.4.387
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-31 00:00:00.000000000 Z
11
+ date: 2022-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -486,6 +486,20 @@ dependencies:
486
486
  - - '='
487
487
  - !ruby/object:Gem::Version
488
488
  version: 0.14.1
489
+ - !ruby/object:Gem::Dependency
490
+ name: pry-bond
491
+ requirement: !ruby/object:Gem::Requirement
492
+ requirements:
493
+ - - '='
494
+ - !ruby/object:Gem::Version
495
+ version: 0.0.1
496
+ type: :runtime
497
+ prerelease: false
498
+ version_requirements: !ruby/object:Gem::Requirement
499
+ requirements:
500
+ - - '='
501
+ - !ruby/object:Gem::Version
502
+ version: 0.0.1
489
503
  - !ruby/object:Gem::Dependency
490
504
  name: pry-doc
491
505
  requirement: !ruby/object:Gem::Requirement