pwn 0.5.383 → 0.5.384

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.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/lib/pwn/plugins/git.rb +1 -1
  4. data/lib/pwn/reports/sast.rb +4 -4
  5. data/lib/pwn/sast/amqp_connect_as_guest.rb +0 -1
  6. data/lib/pwn/sast/apache_file_system_util_api.rb +0 -1
  7. data/lib/pwn/sast/aws.rb +0 -1
  8. data/lib/pwn/sast/banned_function_calls_c.rb +0 -1
  9. data/lib/pwn/sast/base64.rb +0 -2
  10. data/lib/pwn/sast/beef_hook.rb +0 -1
  11. data/lib/pwn/sast/cmd_execution_java.rb +0 -1
  12. data/lib/pwn/sast/cmd_execution_python.rb +0 -1
  13. data/lib/pwn/sast/cmd_execution_ruby.rb +0 -1
  14. data/lib/pwn/sast/cmd_execution_scala.rb +0 -1
  15. data/lib/pwn/sast/csrf.rb +0 -1
  16. data/lib/pwn/sast/deserial_java.rb +0 -1
  17. data/lib/pwn/sast/emoticon.rb +0 -1
  18. data/lib/pwn/sast/eval.rb +0 -1
  19. data/lib/pwn/sast/factory.rb +0 -1
  20. data/lib/pwn/sast/http_authorization_header.rb +0 -1
  21. data/lib/pwn/sast/inner_html.rb +0 -1
  22. data/lib/pwn/sast/keystore.rb +0 -1
  23. data/lib/pwn/sast/local_storage.rb +0 -1
  24. data/lib/pwn/sast/location_hash.rb +0 -1
  25. data/lib/pwn/sast/log4j.rb +0 -1
  26. data/lib/pwn/sast/logger.rb +0 -1
  27. data/lib/pwn/sast/md5.rb +0 -1
  28. data/lib/pwn/sast/outer_html.rb +0 -1
  29. data/lib/pwn/sast/padding_oracle.rb +0 -1
  30. data/lib/pwn/sast/password.rb +0 -1
  31. data/lib/pwn/sast/php_input_mechanisms.rb +0 -1
  32. data/lib/pwn/sast/php_type_juggling.rb +0 -1
  33. data/lib/pwn/sast/pom_version.rb +0 -1
  34. data/lib/pwn/sast/port.rb +0 -1
  35. data/lib/pwn/sast/post_message.rb +0 -1
  36. data/lib/pwn/sast/private_key.rb +0 -1
  37. data/lib/pwn/sast/redirect.rb +0 -1
  38. data/lib/pwn/sast/redos.rb +0 -1
  39. data/lib/pwn/sast/shell.rb +0 -1
  40. data/lib/pwn/sast/signature.rb +0 -1
  41. data/lib/pwn/sast/sql.rb +0 -1
  42. data/lib/pwn/sast/ssl.rb +0 -1
  43. data/lib/pwn/sast/sudo.rb +0 -1
  44. data/lib/pwn/sast/task_tag.rb +0 -1
  45. data/lib/pwn/sast/throw_errors.rb +0 -1
  46. data/lib/pwn/sast/token.rb +0 -1
  47. data/lib/pwn/sast/type_script_type_juggling.rb +0 -1
  48. data/lib/pwn/sast/version.rb +0 -1
  49. data/lib/pwn/sast/window_location_hash.rb +0 -1
  50. data/lib/pwn/version.rb +1 -1
  51. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03077b6d085cfe42d5651c4b947acee3a5449b098147efaf46ca0b2d2cfa1e77
4
- data.tar.gz: 0a9d7df6bede1f67c6f6b288eb89c3609d715c38705c2690727844d1fee6b511
3
+ metadata.gz: 5ef46a76e3f27dc733cea12c316e92202b5adbc74afb539ecabbf8dcc9cf00ed
4
+ data.tar.gz: adfaef25a8e016fe2baac3f28098dc7d667f32425d0fb3054b4288afa2f19800
5
5
  SHA512:
6
- metadata.gz: ce83dda8dc4fd8db37b4245d29c40aa26c4eba637c6c9ca863c83f33a0dfaeaa477eed3e9c4ca06e3b8b7e4cd04f355250f7d3f00a33773cf04711a316c6e871
7
- data.tar.gz: 7b67b47ed8e1a170af0cd0ec825bc65483854d4ddd1436a3c45f9535dfbee3b79f7f79c2fb10605d57dd42c155100f1798505f747d1e48008cff9c1f04bd7dde
6
+ metadata.gz: 1728f5f744232da442b38763ae914f833118644b29bf4a488e535786faca91ac6d54914d5f09490d621680a1bdbea83cc8d52779ad4d8960920664f1b3124a6b
7
+ data.tar.gz: c3e67cfe0b0c64a2eb88ffb1ada20e7e45e9fb3f887f2bc852ba61e61cd4b58348613f07f2e92eb0e145819ca10fa03c2c510e3a80c1382167237ed7ca9c6ae6
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ cd /opt/pwn
37
37
  $ ./install.sh
38
38
  $ ./install.sh ruby-gem
39
39
  $ pwn
40
- pwn[v0.5.383]:001 >>> PWN.help
40
+ pwn[v0.5.384]: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.4.4@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.383]:001 >>> PWN.help
55
+ pwn[v0.5.384]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
  If you're using a multi-user install of RVM do:
@@ -62,7 +62,7 @@ $ rvm use ruby-3.4.4@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.383]:001 >>> PWN.help
65
+ pwn[v0.5.384]:001 >>> PWN.help
66
66
  ```
67
67
 
68
68
  PWN periodically upgrades to the latest version of Ruby which is reflected in `/opt/pwn/.ruby-version`. The easiest way to upgrade to the latest version of Ruby from a previous PWN installation is to run the following script:
@@ -50,7 +50,7 @@ module PWN
50
50
 
51
51
  private_class_method def self.get_author_by_line_range(opts = {})
52
52
  repo_root = opts[:repo_root] ||= '.'
53
- repo_root = opts[:repo_root].to_s unless repor_root.is_a?(String)
53
+ repo_root = opts[:repo_root].to_s unless repo_root.is_a?(String)
54
54
  from_line = opts[:from_line].to_i
55
55
  to_line = opts[:to_line].to_i
56
56
  target_file = opts[:target_file].to_s
@@ -205,8 +205,8 @@ module PWN
205
205
  <a class="toggle-vis" data-column="2" href="#">Test Case / Security References</a>&nbsp;|&nbsp;
206
206
  <a class="toggle-vis" data-column="3" href="#">Path</a>&nbsp;|&nbsp;
207
207
  <a class="toggle-vis" data-column="4" href="#">Line#, Formatted Content, AI Analysis, &amp; Last Committed By</a>&nbsp;|&nbsp;
208
- <a class="toggle-vis" data-column="6" href="#">Raw Content</a>&nbsp;|&nbsp;
209
- <a class="toggle-vis" data-column="7" href="#">Test Case (Anti-Pattern) Filter</a>
208
+ <a class="toggle-vis" data-column="5" href="#">Raw Content</a>&nbsp;|&nbsp;
209
+ <a class="toggle-vis" data-column="6" href="#">Test Case (Anti-Pattern) Filter</a>
210
210
  </div>
211
211
  <br /><br />
212
212
 
@@ -232,7 +232,7 @@ module PWN
232
232
  <col width="300px" />
233
233
  <col width="90px" />
234
234
  <col width="90px" />
235
- <col width="300px" />
235
+ <col width="90px" />
236
236
  <col width="90px" />
237
237
  <!-- DataTables <tbody> -->
238
238
  </table>
@@ -327,7 +327,7 @@ module PWN
327
327
  to_line_number = line_entry_uri + '#L' + data[i]['line_no'];
328
328
  }
329
329
 
330
- pwn_rows = pwn_rows.concat('<tr class="' + tr_class + '"><td style="width:90px" align="left"><a href="' + htmlEntityEncode(to_line_number) + '" target="_blank">' + htmlEntityEncode(data[i]['line_no']) + '</a>:&nbsp;</td><td style="width:300px" align="left">' + htmlEntityEncode(data[i]['contents']) + '</td><td style="width:300px" align=:left">' + htmlEntityEncode(data[i]['ai_analysis']) + '</td><td style="width:200px" align="right"><a href="mailto:' + canned_email + '">' + htmlEntityEncode(data[i]['author']) + '</a></td></tr>');
330
+ pwn_rows = pwn_rows.concat('<tr class="' + tr_class + '"><td style="width:90px" align="left"><a href="' + htmlEntityEncode(to_line_number) + '" target="_blank">' + htmlEntityEncode(data[i]['line_no']) + '</a>:&nbsp;</td><td style="width:300px" align="left">' + htmlEntityEncode(data[i]['contents']) + '</td><td style="width:100px" align=:left">' + htmlEntityEncode(data[i]['ai_analysis']) + '</td><td style="width:200px" align="right"><a href="mailto:' + canned_email + '">' + htmlEntityEncode(data[i]['author']) + '</a></td></tr>');
331
331
  }
332
332
  pwn_rows = pwn_rows.concat('</tbody></table>');
333
333
  return pwn_rows;
@@ -22,7 +22,6 @@ module PWN
22
22
  result_arr = []
23
23
  logger_results = ''
24
24
 
25
- Dir.chdir(dir_path)
26
25
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
27
26
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
28
27
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
data/lib/pwn/sast/aws.rb CHANGED
@@ -20,7 +20,6 @@ module PWN
20
20
  result_arr = []
21
21
  logger_results = ''
22
22
 
23
- Dir.chdir(dir_path)
24
23
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
25
24
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
26
25
  line_no_and_contents_arr = []
@@ -22,7 +22,6 @@ module PWN
22
22
  result_arr = []
23
23
  logger_results = ''
24
24
 
25
- Dir.chdir(dir_path)
26
25
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
27
26
  if (File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/) && (File.extname(entry) == '.c' || File.extname(entry) == '.cpp' || File.extname(entry) == '.c++' || File.extname(entry) == '.cxx' || File.extname(entry) == '.h' || File.extname(entry) == '.hpp' || File.extname(entry) == '.h++' || File.extname(entry) == '.hh' || File.extname(entry) == '.hxx' || File.extname(entry) == '.ii' || File.extname(entry) == '.ixx' || File.extname(entry) == '.ipp' || File.extname(entry) == '.inl' || File.extname(entry) == '.txx' || File.extname(entry) == '.tpp' || File.extname(entry) == '.tpl') && entry !~ /test/i
28
27
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -38,7 +37,6 @@ module PWN
38
37
  grep -Ein \
39
38
  -e 'BASE64' #{entry} 2> /dev/null
40
39
  "
41
-
42
40
  str = `#{test_case_filter}`.to_s.scrub
43
41
 
44
42
  if str.to_s.empty?
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if (File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/) && File.extname(entry) == '.java' && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if (File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/) && (File.extname(entry) == '.py' || File.extname(entry) == '.pyc' || File.extname(entry) == '.pyo' || File.extname(entry) == '.pyd') && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if (File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/) && (File.extname(entry) == '.rb' || File.extname(entry) == '.rbw') && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if (File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/) && File.extname(entry) == '.scala' && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
data/lib/pwn/sast/csrf.rb CHANGED
@@ -22,7 +22,6 @@ module PWN
22
22
  result_arr = []
23
23
  logger_results = ''
24
24
 
25
- Dir.chdir(dir_path)
26
25
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
27
26
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
28
27
  line_no_and_contents_arr = []
@@ -23,7 +23,6 @@ module PWN
23
23
  result_arr = []
24
24
  logger_results = ''
25
25
 
26
- Dir.chdir(dir_path)
27
26
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
28
27
  if (File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/) && (File.extname(entry) == '.scala' || File.extname(entry) == '.java') && entry !~ /test/i
29
28
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
data/lib/pwn/sast/eval.rb CHANGED
@@ -22,7 +22,6 @@ module PWN
22
22
  result_arr = []
23
23
  logger_results = ''
24
24
 
25
- Dir.chdir(dir_path)
26
25
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
27
26
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
28
27
  line_no_and_contents_arr = []
@@ -23,7 +23,6 @@ module PWN
23
23
  result_arr = []
24
24
  logger_results = ''
25
25
 
26
- Dir.chdir(dir_path)
27
26
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
28
27
  if (File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/) && (File.extname(entry) == '.scala' || File.extname(entry) == '.java') && entry !~ /test/i
29
28
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -22,7 +22,6 @@ module PWN
22
22
  result_arr = []
23
23
  logger_results = ''
24
24
 
25
- Dir.chdir(dir_path)
26
25
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
27
26
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
28
27
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -22,7 +22,6 @@ module PWN
22
22
  result_arr = []
23
23
  logger_results = ''
24
24
 
25
- Dir.chdir(dir_path)
26
25
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
27
26
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
28
27
  line_no_and_contents_arr = []
@@ -22,7 +22,6 @@ module PWN
22
22
  result_arr = []
23
23
  logger_results = ''
24
24
 
25
- Dir.chdir(dir_path)
26
25
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
27
26
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
28
27
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if (File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/) && File.extname(entry) == '.java' && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -22,7 +22,6 @@ module PWN
22
22
  result_arr = []
23
23
  logger_results = ''
24
24
 
25
- Dir.chdir(dir_path)
26
25
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
27
26
  if (File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/) && (File.extname(entry) == '.scala' || File.extname(entry) == '.java') && entry !~ /test/i
28
27
  line_no_and_contents_arr = []
data/lib/pwn/sast/md5.rb CHANGED
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -22,7 +22,6 @@ module PWN
22
22
  result_arr = []
23
23
  logger_results = ''
24
24
 
25
- Dir.chdir(dir_path)
26
25
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
27
26
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
28
27
  line_no_and_contents_arr = []
@@ -20,7 +20,6 @@ module PWN
20
20
  result_arr = []
21
21
  logger_results = ''
22
22
 
23
- Dir.chdir(dir_path)
24
23
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
25
24
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
26
25
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if (File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/) && File.extname(entry).include?('.php') && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if (File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/) && File.extname(entry).include?('.php') && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -22,7 +22,6 @@ module PWN
22
22
  result_arr = []
23
23
  logger_results = ''
24
24
 
25
- Dir.chdir(dir_path)
26
25
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
27
26
  if File.file?(entry) && File.basename(entry) == 'pom.xml' && entry !~ /test/i
28
27
  line_no_and_contents_arr = []
data/lib/pwn/sast/port.rb CHANGED
@@ -23,7 +23,6 @@ module PWN
23
23
  result_arr = []
24
24
  logger_results = ''
25
25
 
26
- Dir.chdir(dir_path)
27
26
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
28
27
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
29
28
  line_no_and_contents_arr = []
@@ -22,7 +22,6 @@ module PWN
22
22
  result_arr = []
23
23
  logger_results = ''
24
24
 
25
- Dir.chdir(dir_path)
26
25
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
27
26
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
28
27
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -22,7 +22,6 @@ module PWN
22
22
  result_arr = []
23
23
  logger_results = ''
24
24
 
25
- Dir.chdir(dir_path)
26
25
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
27
26
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
28
27
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
data/lib/pwn/sast/sql.rb CHANGED
@@ -22,7 +22,6 @@ module PWN
22
22
  result_arr = []
23
23
  logger_results = ''
24
24
 
25
- Dir.chdir(dir_path)
26
25
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
27
26
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
28
27
  line_no_and_contents_arr = []
data/lib/pwn/sast/ssl.rb CHANGED
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
data/lib/pwn/sast/sudo.rb CHANGED
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -22,7 +22,6 @@ module PWN
22
22
  result_arr = []
23
23
  logger_results = ''
24
24
 
25
- Dir.chdir(dir_path)
26
25
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
27
26
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
28
27
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if (File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/) && (File.extname(entry) == '.scala' || File.extname(entry) == '.java') && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if (File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/) && File.extname(entry).include?('.ts') && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
@@ -21,7 +21,6 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- Dir.chdir(dir_path)
25
24
  PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
26
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
27
26
  line_no_and_contents_arr = []
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.5.383'
4
+ VERSION = '0.5.384'
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.5.383
4
+ version: 0.5.384
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.