pwn 0.5.378 → 0.5.380

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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/bin/pwn_sast +11 -10
  4. data/lib/pwn/plugins/file_fu.rb +27 -6
  5. data/lib/pwn/plugins/git.rb +2 -5
  6. data/lib/pwn/reports/sast.rb +2 -2
  7. data/lib/pwn/sast/amqp_connect_as_guest.rb +5 -8
  8. data/lib/pwn/sast/apache_file_system_util_api.rb +5 -8
  9. data/lib/pwn/sast/aws.rb +5 -8
  10. data/lib/pwn/sast/banned_function_calls_c.rb +5 -8
  11. data/lib/pwn/sast/base64.rb +5 -8
  12. data/lib/pwn/sast/beef_hook.rb +3 -6
  13. data/lib/pwn/sast/cmd_execution_java.rb +3 -6
  14. data/lib/pwn/sast/cmd_execution_python.rb +3 -6
  15. data/lib/pwn/sast/cmd_execution_ruby.rb +3 -6
  16. data/lib/pwn/sast/cmd_execution_scala.rb +3 -6
  17. data/lib/pwn/sast/csrf.rb +3 -6
  18. data/lib/pwn/sast/deserial_java.rb +3 -6
  19. data/lib/pwn/sast/emoticon.rb +3 -6
  20. data/lib/pwn/sast/eval.rb +3 -6
  21. data/lib/pwn/sast/factory.rb +3 -6
  22. data/lib/pwn/sast/http_authorization_header.rb +3 -6
  23. data/lib/pwn/sast/inner_html.rb +3 -6
  24. data/lib/pwn/sast/keystore.rb +3 -6
  25. data/lib/pwn/sast/local_storage.rb +3 -6
  26. data/lib/pwn/sast/location_hash.rb +3 -6
  27. data/lib/pwn/sast/log4j.rb +3 -6
  28. data/lib/pwn/sast/logger.rb +3 -6
  29. data/lib/pwn/sast/md5.rb +3 -6
  30. data/lib/pwn/sast/outer_html.rb +3 -6
  31. data/lib/pwn/sast/padding_oracle.rb +3 -6
  32. data/lib/pwn/sast/password.rb +3 -6
  33. data/lib/pwn/sast/php_input_mechanisms.rb +3 -6
  34. data/lib/pwn/sast/php_type_juggling.rb +3 -6
  35. data/lib/pwn/sast/pom_version.rb +3 -6
  36. data/lib/pwn/sast/port.rb +3 -6
  37. data/lib/pwn/sast/post_message.rb +3 -6
  38. data/lib/pwn/sast/private_key.rb +3 -6
  39. data/lib/pwn/sast/redirect.rb +3 -6
  40. data/lib/pwn/sast/redos.rb +3 -6
  41. data/lib/pwn/sast/shell.rb +3 -6
  42. data/lib/pwn/sast/signature.rb +3 -6
  43. data/lib/pwn/sast/sql.rb +3 -6
  44. data/lib/pwn/sast/ssl.rb +3 -6
  45. data/lib/pwn/sast/sudo.rb +3 -6
  46. data/lib/pwn/sast/task_tag.rb +3 -6
  47. data/lib/pwn/sast/throw_errors.rb +3 -6
  48. data/lib/pwn/sast/token.rb +3 -6
  49. data/lib/pwn/sast/type_script_type_juggling.rb +3 -6
  50. data/lib/pwn/sast/version.rb +3 -6
  51. data/lib/pwn/sast/window_location_hash.rb +3 -6
  52. data/lib/pwn/version.rb +1 -1
  53. metadata +1 -1
@@ -21,7 +21,7 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- PWN::Plugins::FileFu.recurse_dir(dir_path: dir_path) do |entry|
24
+ PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
25
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
26
26
  line_no_and_contents_arr = []
27
27
  entry_beautified = false
@@ -62,11 +62,8 @@ module PWN
62
62
  while line_no_count > current_count
63
63
  line_no = line_contents_split[current_count]
64
64
  contents = line_contents_split[current_count + 1]
65
- if Dir.exist?("#{dir_path}/.git") ||
66
- Dir.exist?('.git')
67
-
68
- repo_root = dir_path
69
- repo_root = '.' if Dir.exist?('.git')
65
+ if Dir.exist?('.git')
66
+ repo_root = '.'
70
67
 
71
68
  author = PWN::Plugins::Git.get_author(
72
69
  repo_root: repo_root,
@@ -21,7 +21,7 @@ module PWN
21
21
  result_arr = []
22
22
  logger_results = ''
23
23
 
24
- PWN::Plugins::FileFu.recurse_dir(dir_path: dir_path) do |entry|
24
+ PWN::Plugins::FileFu.recurse_in_dir(dir_path: dir_path) do |entry|
25
25
  if File.file?(entry) && File.basename(entry) !~ /^pwn.+(html|json|db)$/ && File.basename(entry) !~ /\.JS-BEAUTIFIED$/ && entry !~ /test/i
26
26
  line_no_and_contents_arr = []
27
27
  entry_beautified = false
@@ -61,11 +61,8 @@ module PWN
61
61
  while line_no_count > current_count
62
62
  line_no = line_contents_split[current_count]
63
63
  contents = line_contents_split[current_count + 1]
64
- if Dir.exist?("#{dir_path}/.git") ||
65
- Dir.exist?('.git')
66
-
67
- repo_root = dir_path
68
- repo_root = '.' if Dir.exist?('.git')
64
+ if Dir.exist?('.git')
65
+ repo_root = '.'
69
66
 
70
67
  author = PWN::Plugins::Git.get_author(
71
68
  repo_root: repo_root,
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.378'
4
+ VERSION = '0.5.380'
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.378
4
+ version: 0.5.380
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.