pwn 0.5.159 → 0.5.160

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f15b5602a73c8726bfd66d6ed8ec663f5b0d4f9fb6d1b13a5a5ce02563b6e5a
4
- data.tar.gz: 19614b0dce31aa5eb46bc81c35ec76940a992f8664510aca1fb2b25788090b79
3
+ metadata.gz: 1c60ad1dae3937c81207eba9b1656bd8d03bb253cf59d1c72b6ad581d6f8c5c8
4
+ data.tar.gz: 78a8f2a9ca4c2ae038ec8a697c6113c4629faad4695b39c0f1ec339635657b29
5
5
  SHA512:
6
- metadata.gz: 43a7da7a7938a383d7b9af1f00ebc2e796aed590bf21e5771e1a8b7bb504168a0b62ba50926f0e33f52fd012f34b2e61e959a1b30d0e243cd0c1057099bffcbe
7
- data.tar.gz: 272d5f97b39eeee26ac2fe05d58c0dcaa8455eb80c12b457775a727fc5e536995831f23a127289c04afeef250f880ff2b2c4ae281ba76e38ae180c5649b17724
6
+ metadata.gz: 74219980c6db4d8a0e2fa0bbdf745422ee6de00f0401ed2ffcbc261a212b1915244f0ccf91944b4be99aac330c2505555f150ac7bcf284c9365bfd3c19079888
7
+ data.tar.gz: a646cf451e919e7d409b0fad3fefe8012a2f17b0fbd029675d26ab3479a8d9cbba93e01ad6da684948167dff8a5d17f571def735b044ea36473d7ac266ffa0e8
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ cd /opt/pwn
37
37
  $ ./install.sh
38
38
  $ ./install.sh ruby-gem
39
39
  $ pwn
40
- pwn[v0.5.159]:001 >>> PWN.help
40
+ pwn[v0.5.160]: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.3.1@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.159]:001 >>> PWN.help
55
+ pwn[v0.5.160]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
  If you're using a multi-user install of RVM do:
@@ -62,7 +62,7 @@ $ rvm use ruby-3.3.1@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.159]:001 >>> PWN.help
65
+ pwn[v0.5.160]:001 >>> PWN.help
66
66
  ```
67
67
 
68
68
  PWN periodically upgrades to the latest version of Ruby which is reflected in `/opt/pwn/.ruby-version`. The easiest way to upgrade to the latest version of Ruby from a previous PWN installation is to run the following script:
@@ -45,6 +45,15 @@ module PWN
45
45
  # Let's crank up the default timeout from 30 seconds to 15 min for slow sites
46
46
  Watir.default_timeout = 900
47
47
 
48
+ args = []
49
+ args.push('--start-maximized')
50
+ args.push('--disable-notifications')
51
+
52
+ unless browser_type == :rest
53
+ logger = Selenium::WebDriver.logger
54
+ logger.level = :error
55
+ end
56
+
48
57
  case browser_type
49
58
  when :firefox
50
59
  this_profile = Selenium::WebDriver::Firefox::Profile.new
@@ -98,10 +107,11 @@ module PWN
98
107
  end
99
108
  end
100
109
 
101
- args = []
102
-
103
110
  args.push('--devtools') if with_devtools
104
- options = Selenium::WebDriver::Firefox::Options.new(args: args, accept_insecure_certs: true)
111
+ options = Selenium::WebDriver::Firefox::Options.new(
112
+ args: args,
113
+ accept_insecure_certs: true
114
+ )
105
115
  options.profile = this_profile
106
116
  # driver = Selenium::WebDriver.for(:firefox, capabilities: options)
107
117
  driver = Selenium::WebDriver.for(:firefox, options: options)
@@ -112,22 +122,18 @@ module PWN
112
122
  this_profile['download.prompt_for_download'] = false
113
123
  this_profile['download.default_directory'] = '~/Downloads'
114
124
 
115
- switches = []
116
- switches.push('--start-maximized')
117
- switches.push('--disable-notifications')
118
-
119
125
  if proxy
120
- switches.push("--host-resolver-rules='MAP * 0.0.0.0 , EXCLUDE #{tor_obj[:ip]}'") if tor_obj
121
- switches.push("--proxy-server=#{proxy}")
126
+ args.push("--host-resolver-rules='MAP * 0.0.0.0 , EXCLUDE #{tor_obj[:ip]}'") if tor_obj
127
+ args.push("--proxy-server=#{proxy}")
122
128
  end
123
129
 
124
130
  if with_devtools
125
- switches.push('--auto-open-devtools-for-tabs')
126
- switches.push('--disable-hang-monitor')
131
+ args.push('--auto-open-devtools-for-tabs')
132
+ args.push('--disable-hang-monitor')
127
133
  end
128
134
 
129
135
  options = Selenium::WebDriver::Chrome::Options.new(
130
- args: switches,
136
+ args: args,
131
137
  accept_insecure_certs: true
132
138
  )
133
139
 
@@ -188,7 +194,12 @@ module PWN
188
194
  end
189
195
  end
190
196
 
191
- options = Selenium::WebDriver::Firefox::Options.new(args: ['-headless'], accept_insecure_certs: true)
197
+ args.push('--headless')
198
+ options = Selenium::WebDriver::Firefox::Options.new(
199
+ args: args,
200
+ accept_insecure_certs: true
201
+ )
202
+
192
203
  options.profile = this_profile
193
204
  driver = Selenium::WebDriver.for(:firefox, options: options)
194
205
  browser_obj[:browser] = Watir::Browser.new(driver)
@@ -198,18 +209,15 @@ module PWN
198
209
  this_profile['download.prompt_for_download'] = false
199
210
  this_profile['download.default_directory'] = '~/Downloads'
200
211
 
201
- switches = []
202
- switches.push('--headless')
203
- switches.push('--start-maximized')
204
- switches.push('--disable-notifications')
212
+ args.push('--headless')
205
213
 
206
214
  if proxy
207
- switches.push("--host-resolver-rules='MAP * 0.0.0.0 , EXCLUDE #{tor_obj[:ip]}'") if tor_obj
208
- switches.push("--proxy-server=#{proxy}")
215
+ args.push("--host-resolver-rules='MAP * 0.0.0.0 , EXCLUDE #{tor_obj[:ip]}'") if tor_obj
216
+ args.push("--proxy-server=#{proxy}")
209
217
  end
210
218
 
211
219
  options = Selenium::WebDriver::Chrome::Options.new(
212
- args: switches,
220
+ args: args,
213
221
  accept_insecure_certs: true
214
222
  )
215
223
 
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.5.159'
4
+ VERSION = '0.5.160'
5
5
  end
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.5.159
4
+ version: 0.5.160
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-05 00:00:00.000000000 Z
11
+ date: 2024-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport