Skip to content

Commit fc484c1

Browse files
committed
PWN::Plugins::TransparentBrowser module - #bugfix in #open method to always start browsers maximized (when supported of course)
1 parent 48e4735 commit fc484c1

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ cd /opt/pwn
3737
$ ./install.sh
3838
$ ./install.sh ruby-gem
3939
$ pwn
40-
pwn[v0.5.196]:001 >>> PWN.help
40+
pwn[v0.5.197]:001 >>> PWN.help
4141
```
4242

4343
[![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.3@pwn
5252
$ gem uninstall --all --executables pwn
5353
$ gem install --verbose pwn
5454
$ pwn
55-
pwn[v0.5.196]:001 >>> PWN.help
55+
pwn[v0.5.197]:001 >>> PWN.help
5656
```
5757

5858
If you're using a multi-user install of RVM do:
@@ -62,7 +62,7 @@ $ rvm use ruby-3.3.3@pwn
6262
$ rvmsudo gem uninstall --all --executables pwn
6363
$ rvmsudo gem install --verbose pwn
6464
$ pwn
65-
pwn[v0.5.196]:001 >>> PWN.help
65+
pwn[v0.5.197]:001 >>> PWN.help
6666
```
6767

6868
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:

lib/pwn/plugins/transparent_browser.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module TransparentBrowser
6666
Watir.default_timeout = 900
6767

6868
args = []
69-
args.push('--start-maximized')
69+
# args.push('--start-maximized')
7070
args.push('--disable-notifications')
7171

7272
unless browser_type == :rest
@@ -308,6 +308,7 @@ module TransparentBrowser
308308
jmp_devtools_panel(browser_obj: browser_obj, panel: :elements)
309309
end
310310

311+
browser_obj[:browser].driver.manage.window.maximize
311312
new_tab(browser_obj: browser_obj, first_tab: true)
312313
end
313314

lib/pwn/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module PWN
4-
VERSION = '0.5.196'
4+
VERSION = '0.5.197'
55
end

0 commit comments

Comments
 (0)