File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
37
37
$ rvm list gemsets
38
38
$ gem install --verbose pwn
39
39
$ pwn
40
- pwn[v0.4.638 ]:001 >>> PWN.help
40
+ pwn[v0.4.639 ]: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.2.2@pwn
52
52
$ gem uninstall --all --executables pwn
53
53
$ gem install --verbose pwn
54
54
$ pwn
55
- pwn[v0.4.638 ]:001 >>> PWN.help
55
+ pwn[v0.4.639 ]:001 >>> PWN.help
56
56
```
57
57
58
58
Original file line number Diff line number Diff line change @@ -113,14 +113,12 @@ module OwaspZap
113
113
owasp_zap_cmd = "cd #{ zap_dir } && ./#{ zap_bin } "
114
114
end
115
115
116
- if opts [ :proxy ]
117
- proxy = opts [ :proxy ] . to_s . scrub . strip . chomp
118
- proxy_uri = URI . parse ( proxy )
119
- else
120
- random_port = PWN ::Plugins ::Sock . get_random_unused_port
121
- proxy = "http://127.0.0.1:#{ random_port } "
122
- proxy_uri = URI . parse ( proxy )
123
- end
116
+ random_port = PWN ::Plugins ::Sock . get_random_unused_port
117
+
118
+ proxy = "http://127.0.0.1:#{ random_port } "
119
+ proxy = opts [ :proxy ] . to_s . scrub . strip . chomp if opts [ :proxy ]
120
+
121
+ proxy_uri = URI . parse ( proxy )
124
122
owasp_zap_cmd = "#{ owasp_zap_cmd } -host #{ proxy_uri . host } -port #{ proxy_uri . port } "
125
123
zap_obj [ :host ] = proxy_uri . host . to_s . scrub
126
124
zap_obj [ :port ] = proxy_uri . port . to_i
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
module PWN
4
- VERSION = '0.4.638 '
4
+ VERSION = '0.4.639 '
5
5
end
You can’t perform that action at this time.
0 commit comments