pwn 0.4.686 → 0.4.688
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/bin/pwn_diff_csv_files_w_column_exclude +7 -11
- data/lib/pwn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5811b94ebb8792ce1d6180dae05dccf4b78a68343d341dcf9caa36493d09b789
|
4
|
+
data.tar.gz: 395f5c07477d138582bfdcd89a01f5b2c0f97598f6a91ba0817ee3ba61d0c892
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8f98dbbfaae621771788447bb06c0877c7e469f41e0843ce95c14fbaa6b41bb99609c6aca065a561531c205ee2e9b1e2e6e48249ef100bf0d6f7f65c5874c57
|
7
|
+
data.tar.gz: cfc7f236d7d7f9e75df6562759475e298340825c59115144102a887192e7c4325a249e8d150ac78b41c44a1b84f2b62ef921a648b376691a8081d691a5ac179e
|
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.
|
40
|
+
pwn[v0.4.688]: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.
|
55
|
+
pwn[v0.4.688]: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
|
-
|
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
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
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