pwn 0.4.382 → 0.4.383

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: a3d6102ac605e097e4223bef72a6897022bffeb5627dba7922689b6e145f0526
4
- data.tar.gz: 910b066fc9e59b49485a660e006bf379a86c02e028065d7cb05567e4123d1543
3
+ metadata.gz: e108fb65ae9052eeb2d7adec80706eebddd3493cd2766dd00b3210cee62aa9c4
4
+ data.tar.gz: 6259072fa3b503007c058b8150848c73b74d2d85d72c88c821e612ee83d2a4cb
5
5
  SHA512:
6
- metadata.gz: 9557331e44b1e1ea07c535ad4bb9ad05208b5ffa8b4edfe2cc50344050ef9d27a8fce5288ec8facd399780b13551b33c8c16b24bc4a1a0dc78eb338df5790deb
7
- data.tar.gz: 397dc2efd71676619de8b7626e35a343a1319e222d58160978fcf5ed919dd5d88802362ba19385f86eaa17ce7158fd40ffe41987ad8c458c918b7bad9b7aeb3d
6
+ metadata.gz: 7b44e2ed665b2e524b9afe56cfdc75fe17dfd52b28dafdac938714a2ea64cc51ce7c673a5549d8f5e308ef3e650471aee89d922fd3de8c98ff352303fa79b2ef
7
+ data.tar.gz: 7ebfbd4af956e56a361cab6f19478568edb2cbc5254e5bb592e129fff2847ef58f0c6700d7e1daa7161d9c65ddd287890c65e643f5464443ed94b1dfca754f9b
data/README.md CHANGED
@@ -31,13 +31,13 @@ Leveraging various pre-built modules and the pwn prototyper, you can mix-and-mat
31
31
  Tested on Linux, & OSX leveraging Ruby via RVM.
32
32
 
33
33
  ```
34
- $ rvm use ruby-<VERSION>@global
34
+ $ rvm use ruby-3.1.1@global
35
35
  $ rvm gemset create pwn
36
- $ rvm use ruby-<VERSION>@pwn
36
+ $ 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.382]:001 >>> PWN.help
40
+ pwn[v0.4.383]: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)
@@ -48,11 +48,11 @@ pwn[v0.4.382]:001 >>> PWN.help
48
48
  It's wise to update pwn often as numerous versions are released/week:
49
49
  ```
50
50
  $ rvm list gemsets
51
- $ rvm use ruby-<VERSION>@pwn
51
+ $ 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.382]:001 >>> PWN.help
55
+ pwn[v0.4.383]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -38,15 +38,17 @@ File.open('./lib/pwn/version.rb', 'w') do |f|
38
38
  end
39
39
 
40
40
  # Update README.md
41
- current_ruby_version = File.read(current_ruby).chomp
41
+ current_ruby_version = "ruby-#{File.read(current_ruby).chomp}"
42
42
  old_readme_md = File.read(readme_md_path, encoding: 'utf-8')
43
+ pwn_regex = 'pwn\[v.+\..+\..+\]'
44
+ rb_regex = 'ruby-.+'
43
45
  File.open(readme_md_path, 'w') do |file|
44
46
  old_readme_md.each_line do |line|
45
- if line.to_s.scrub.match?(/pwn\[v.+\..+\..+\]/) ||
46
- line.to_s.scrub.match?(/ruby-.+/)
47
+ if line.to_s.scrub.match?(/#{pwn_regex}/) ||
48
+ line.to_s.scrub.match?(/#{rb_regex}/)
47
49
 
48
- new_line = line.to_s.gsub(/pwn\[v#{old_rev}\]/, "pwn\[v#{new_rev}\]") if line.to_s.scrub.match?(/pwn\[v.+\..+\..+\]/)
49
- new_line = line.to_s.gsub(/ruby-.+(?=(@))/, current_ruby_version) if line.to_s.scrub.match?(/ruby-.+/)
50
+ new_line = line.to_s.gsub(/pwn\[v#{old_rev}\]/, "pwn\[v#{new_rev}\]") if line.to_s.scrub.match?(/#{pwn_regex}/)
51
+ new_line = line.to_s.gsub(/ruby-.+(?=(@))/, current_ruby_version) if line.to_s.scrub.match?(/#{rb_regex}/)
50
52
 
51
53
  file.puts new_line
52
54
  else
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.382'
4
+ VERSION = '0.4.383'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.382
4
+ version: 0.4.383
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.