File tree Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ $ rvm use ruby-3.1.2@pwn
37
37
$ rvm list gemsets
38
38
$ gem install --verbose pwn
39
39
$ pwn
40
- pwn[v0.4.411 ]:001 >>> PWN.help
40
+ pwn[v0.4.412 ]: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.2@pwn
52
52
$ gem uninstall --all --executables pwn
53
53
$ gem install --verbose pwn
54
54
$ pwn
55
- pwn[v0.4.411 ]:001 >>> PWN.help
55
+ pwn[v0.4.412 ]:001 >>> PWN.help
56
56
```
57
57
58
58
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.411 '
4
+ VERSION = '0.4.412 '
5
5
end
Original file line number Diff line number Diff line change 12
12
sudo tee -a $pwn_env_file << EOF
13
13
export PWN_ROOT=\$ (
14
14
source /etc/profile.d/rvm.sh; \
15
- ruby -r pwn -e 'puts "#{Gem.path.first}/gems/pwn-#{PWN::VERSION}"' \
16
- 2> /dev/null
15
+ if [[ -d '/opt/pwn' ]]; then \
16
+ printf '/opt/pwn'; \
17
+ else \
18
+ ruby -r pwn -e 'puts "#{Gem.path.first}/gems/pwn-#{PWN::VERSION}"' \
19
+ 2> /dev/null; \
20
+ fi
17
21
)
18
22
export PWN_PROVIDER='${pwn_provider} '
19
23
EOF
Original file line number Diff line number Diff line change 12
12
sudo tee -a $pwn_env_file << EOF
13
13
export PWN_ROOT=\$ (
14
14
source /etc/profile.d/rvm.sh; \
15
- ruby -r pwn -e 'puts "#{Gem.path.first}/gems/pwn-#{PWN::VERSION}"' \
16
- 2> /dev/null
15
+ if [[ -d '/opt/pwn' ]]; then \
16
+ printf '/opt/pwn'; \
17
+ else \
18
+ ruby -r pwn -e 'puts "#{Gem.path.first}/gems/pwn-#{PWN::VERSION}"' \
19
+ 2> /dev/null; \
20
+ fi
17
21
)
18
22
export PWN_PROVIDER='${pwn_provider} '
19
23
EOF
You can’t perform that action at this time.
0 commit comments