pwn 0.4.721 → 0.4.722

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c955683b5eaf02952a897892a4ffb163e8e3d37e189774f8b6b947e9b0719091
4
- data.tar.gz: 4d14d45e6e693a8264e817ae908dbee175aefe65808b616701bee56d8ee886ba
3
+ metadata.gz: 7bbc9f14487dddfa239bc7f85bbccf8fc06b32abe298fe6a1c9099f5471999d7
4
+ data.tar.gz: 021b481cab4531a566e6da682b72a5cf37dcdc5abe1ade52d37d510f0b06bae7
5
5
  SHA512:
6
- metadata.gz: c6b4f75c5a4f54a1ffc0b152ae2b3ef59f57f1a4e9cb3d4e4b0383ebb9cfd41fd4f1e9254c0c3d2129e43dbab7dca613b52421fec88ab5ed85cf091ab86b61a3
7
- data.tar.gz: 5773b15cebf70e751af66483d374b9b50cfb819239492588059f40b1e9ff56a9631e8c370971bbd62714ed3c08d6927a862b6c22b3fbaafc428e7e19297e2055
6
+ metadata.gz: 338a02788c9069d19f8bdcef94ea88971421fc2679e432654b8ead18e296baefb0af1cd379439a84d4f051fbf7d56c4b34a6c7753f71da20de71ac53e8e3e145
7
+ data.tar.gz: c6b8945cfa10ca5333ce38b1bb50f624cd107408817c62466ffc4146b081cbeeb73b7bba4f09b0cd0370ff5f6d67026c4af95a4276be22c411832ef1489dc9c1
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.721]:001 >>> PWN.help
40
+ pwn[v0.4.722]: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.721]:001 >>> PWN.help
55
+ pwn[v0.4.722]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -134,7 +134,8 @@ def csv_diff(opts = {})
134
134
  CSV.open(diff_path, 'w', col_sep: ',', quote_char: '"', force_quotes: true) do |csv|
135
135
  larger_csv.each do |line_arr|
136
136
  line = line_arr.join(',')
137
- csv.puts line_arr if smaller_csv.select { |sc| sc.join(',') == line }.empty?
137
+ # csv.puts line_arr if smaller_csv.select { |sc| sc.join(',') == line }.empty?
138
+ csv.puts line_arr if smaller_csv.none? { |sc| sc.join(',') == line }
138
139
  end
139
140
  end
140
141
  diff_csv = CSV.open(
@@ -151,7 +152,8 @@ def csv_diff(opts = {})
151
152
  larger_csv_orig.each_with_index do |line_arr, index|
152
153
  # Use larger_csv instead of orig to compare column redaction to diff_csv
153
154
  line = larger_csv[index].join(',')
154
- csv.puts line_arr if diff_csv.select { |dc| dc.join(',') == line }.any?
155
+ # csv.puts line_arr if diff_csv.select { |dc| dc.join(',') == line }.any?
156
+ csv.puts line_arr if diff_csv.any? { |dc| dc.join(',') == line }
155
157
  end
156
158
  end
157
159
  end
@@ -78,7 +78,16 @@ if opts.empty?
78
78
  end
79
79
 
80
80
  pwn_provider = 'ruby-gem'
81
- pwn_provider = ENV.fetch('PWN_PROVIDER') if ENV.keys.select { |s| s == 'PWN_PROVIDER' }.any?
81
+ # pwn_provider = ENV.fetch('PWN_PROVIDER') if ENV.keys.select { |s| s == 'PWN_PROVIDER' }.any?
82
+ pwn_provider = ENV.fetch('PWN_PROVIDER') if ENV.keys.any? { |s| s == 'PWN_PROVIDER' }
83
+
84
+ if pwn_provider == 'ruby-gem'
85
+ require 'pwn'
86
+ elsif pwn_provider == 'docker'
87
+ require '/opt/pwn/lib/pwn'
88
+ else
89
+ raise "PWN_PROVIDER env variable is not set to 'ruby-gem' or 'docker'"
90
+ end
82
91
 
83
92
  dir_path = opts[:dir_path].to_s.scrub
84
93
  target = opts[:target]
data/bin/pwn_phone CHANGED
@@ -66,7 +66,8 @@ end
66
66
 
67
67
  begin
68
68
  pwn_provider = 'ruby-gem'
69
- pwn_provider = ENV.fetch('PWN_PROVIDER') if ENV.keys.select { |s| s == 'PWN_PROVIDER' }.any?
69
+ # pwn_provider = ENV.fetch('PWN_PROVIDER') if ENV.keys.select { |s| s == 'PWN_PROVIDER' }.any?
70
+ pwn_provider = ENV.fetch('PWN_PROVIDER') if ENV.keys.any? { |s| s == 'PWN_PROVIDER' }
70
71
  $stdout.sync = true
71
72
 
72
73
  # Required Flag Variables
data/bin/pwn_sast CHANGED
@@ -47,7 +47,8 @@ end
47
47
 
48
48
  begin
49
49
  pwn_provider = 'ruby-gem'
50
- pwn_provider = ENV.fetch('PWN_PROVIDER') if ENV.keys.select { |s| s == 'PWN_PROVIDER' }.any?
50
+ # pwn_provider = ENV.fetch('PWN_PROVIDER') if ENV.keys.select { |s| s == 'PWN_PROVIDER' }.any?
51
+ pwn_provider = ENV.fetch('PWN_PROVIDER') if ENV.keys.any? { |s| s == 'PWN_PROVIDER' }
51
52
 
52
53
  green = "\e[32m"
53
54
  end_of_color = "\e[0m"
@@ -140,7 +140,8 @@ end
140
140
 
141
141
  begin
142
142
  pwn_provider = 'ruby-gem'
143
- pwn_provider = ENV.fetch('PWN_PROVIDER') if ENV.keys.select { |s| s == 'PWN_PROVIDER' }.any?
143
+ # pwn_provider = ENV.fetch('PWN_PROVIDER') if ENV.keys.select { |s| s == 'PWN_PROVIDER' }.any?
144
+ pwn_provider = ENV.fetch('PWN_PROVIDER') if ENV.keys.any? { |s| s == 'PWN_PROVIDER' }
144
145
  $stdout.sync = true
145
146
 
146
147
  target_url = opts[:target_url]
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.721'
4
+ VERSION = '0.4.722'
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.721
4
+ version: 0.4.722
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-02 00:00:00.000000000 Z
11
+ date: 2023-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport