pwn 0.4.381 → 0.4.382

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: 6b4a3fb3530004d315ca505daa165aa522e1e42cb1d0a67dcea4404ca3c03d97
4
- data.tar.gz: 8f7bc5333c051e88b84d3e19790a60b69cc6020db62685a37665315094f7ae72
3
+ metadata.gz: a3d6102ac605e097e4223bef72a6897022bffeb5627dba7922689b6e145f0526
4
+ data.tar.gz: 910b066fc9e59b49485a660e006bf379a86c02e028065d7cb05567e4123d1543
5
5
  SHA512:
6
- metadata.gz: 2dfcb3127cddf9314b7512a7b8323f217a17c4adf70ad35f44ae0be43463a9b6af594a52de14ceb5e51d0b18883dc19b08d036a9548d89f365d247e19eb852b8
7
- data.tar.gz: 0fcf308f4305de23f332e292684830e8528f4de2fc7007ec2d12faba74d31077a58f97a03e07e5608af1d66d3c92b0a536d4e81ead40cb9dea2d29eda0ab1faf
6
+ metadata.gz: 9557331e44b1e1ea07c535ad4bb9ad05208b5ffa8b4edfe2cc50344050ef9d27a8fce5288ec8facd399780b13551b33c8c16b24bc4a1a0dc78eb338df5790deb
7
+ data.tar.gz: 397dc2efd71676619de8b7626e35a343a1319e222d58160978fcf5ed919dd5d88802362ba19385f86eaa17ce7158fd40ffe41987ad8c458c918b7bad9b7aeb3d
data/README.md CHANGED
@@ -31,12 +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
35
  $ rvm gemset create pwn
35
- $ rvm list gemsets
36
36
  $ rvm use ruby-<VERSION>@pwn
37
+ $ rvm list gemsets
37
38
  $ gem install --verbose pwn
38
39
  $ pwn
39
- pwn[v0.4.381]:001 >>> PWN.help
40
+ pwn[v0.4.382]:001 >>> PWN.help
40
41
  ```
41
42
 
42
43
  [![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
@@ -51,7 +52,7 @@ $ rvm use ruby-<VERSION>@pwn
51
52
  $ gem uninstall --all --executables pwn
52
53
  $ gem install --verbose pwn
53
54
  $ pwn
54
- pwn[v0.4.381]:001 >>> PWN.help
55
+ pwn[v0.4.382]:001 >>> PWN.help
55
56
  ```
56
57
 
57
58
 
@@ -5,6 +5,7 @@ require 'pwn'
5
5
 
6
6
  old_rev = PWN::VERSION
7
7
  readme_md_path = './README.md'
8
+ current_ruby = './.ruby-version'
8
9
  placeholder_arr = old_rev.split('.')
9
10
  major = placeholder_arr[0].to_i
10
11
  minor = placeholder_arr[1].to_i
@@ -37,11 +38,16 @@ File.open('./lib/pwn/version.rb', 'w') do |f|
37
38
  end
38
39
 
39
40
  # Update README.md
41
+ current_ruby_version = File.read(current_ruby).chomp
40
42
  old_readme_md = File.read(readme_md_path, encoding: 'utf-8')
41
43
  File.open(readme_md_path, 'w') do |file|
42
44
  old_readme_md.each_line do |line|
43
- if line.to_s.scrub.match?(/pwn\[v.+\..+\..+\]/)
44
- new_line = line.to_s.gsub(/pwn\[v#{old_rev}\]/, "pwn\[v#{new_rev}\]")
45
+ if line.to_s.scrub.match?(/pwn\[v.+\..+\..+\]/) ||
46
+ line.to_s.scrub.match?(/ruby-.+/)
47
+
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
+
45
51
  file.puts new_line
46
52
  else
47
53
  file.puts line
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.381'
4
+ VERSION = '0.4.382'
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.4.381
4
+ version: 0.4.382
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-28 00:00:00.000000000 Z
11
+ date: 2022-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport