pwn 0.4.686 → 0.4.687

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: e10edeff4a08f2aaf687492bafdcbd5ec5ef6a7099f1d944e54e087089c1b7d9
4
- data.tar.gz: 652a23e3f665cb5725323e9e98b1dbb3f8e361d8f64dbf18e00c354e967164d9
3
+ metadata.gz: 912b6527626cc283537ab0f750b10c605e534bad484dea3cb86e54655bf21583
4
+ data.tar.gz: 4be3440e260caef978c9b496fed9b201d03722ab1803cab38ced76e41c7f95c6
5
5
  SHA512:
6
- metadata.gz: d5ba4c8ea73e48cee72f05f602c7802a957e5623d38bf9a8b65a3cb48be85cb85fc50645c7823159e3804f11290cb70af7eaa674732d61fafca12018dfb998ef
7
- data.tar.gz: e3ec15feb9161084ec9580a00731e6b94273b7e15e18db19df4bdebab79404b6cd9c2c64ab39a20ee5d8827e6ae209c66cf1404fcb6bffaed5ffc527040f4566
6
+ metadata.gz: 967cd8770e0909e4fefa4bdcc665f00290ecd23d8bffe22df5f9778780c554949a38815a06134f006e42573dd4a07f5a84d2afaefd3da6e018943bdce6b3930a
7
+ data.tar.gz: 86ba07e0b154a26b123bcd1b91c0dd918770a523ab55e8b1f28a0edde82cdc083f671c957d16b419e5c1e0bc1da432175543fabde836c8d1284edb5d509edeb5
data/README.md CHANGED
@@ -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.686]:001 >>> PWN.help
40
+ pwn[v0.4.687]: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.686]:001 >>> PWN.help
55
+ pwn[v0.4.687]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -126,7 +126,8 @@ def csv_diff(opts = {})
126
126
  # Write diff with redacted columns (to find differences we care about)
127
127
  CSV.open(diff_path, 'w', col_sep: ',', quote_char: '"', force_quotes: true) do |csv|
128
128
  larger_csv.each do |line_arr|
129
- csv.puts line_arr if smaller_csv.select { |sc| sc == line_arr }.empty?
129
+ line = line_arr.join(',')
130
+ csv.puts line_arr if smaller_csv.select { |sc| sc.join(',') == line }.empty?
130
131
  end
131
132
  end
132
133
  diff_csv = CSV.open(
@@ -138,17 +139,12 @@ def csv_diff(opts = {})
138
139
  ).read
139
140
 
140
141
  # Write diff again with all columns.
141
- csv_headers_orig = larger_csv_orig.first
142
142
  CSV.open(diff_path, 'w', col_sep: ',', quote_char: '"', force_quotes: true) do |csv|
143
- if no_headers
144
- larger_csv_orig.each_with_index do |line_arr, index|
145
- csv.puts line_arr if diff_csv.select { |dc| dc == larger_csv[index] }.any?
146
- end
147
- else
148
- csv.puts csv_headers_orig
149
- larger_csv_orig[1..-1].each_with_index do |line_arr, index|
150
- csv.puts line_arr if diff_csv.select { |dc| dc == larger_csv[index] }.any?
151
- end
143
+ csv.puts larger_csv_orig.first unless no_headers
144
+ larger_csv_orig.each_with_index do |line_arr, index|
145
+ # Use larger_csv instead of orig to compare column redaction to diff_csv
146
+ line = larger_csv[index].join(',')
147
+ csv.puts line_arr if diff_csv.select { |dc| dc.join(',') == line }.any?
152
148
  end
153
149
  end
154
150
  end
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.686'
4
+ VERSION = '0.4.687'
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.686
4
+ version: 0.4.687
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.