pwn 0.4.625 → 0.4.627

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: 0da791e6c3f9a7c97a48fbe245c2bba5b6c556102270bb3647b4dc2dc0c1bc3e
4
- data.tar.gz: 627185dfe1d6aa46ee4752ddce5866fe955eecb70322ff4636209fb7e4996bc2
3
+ metadata.gz: 6bb7b47a555f63203342098f5142a197e8b1cbdca20f8e68e4775352ae87baac
4
+ data.tar.gz: 8d976e65c7aa3d03a99dcc04a331408f3beb8f8d6f62eca56a2efbeb1da1a92a
5
5
  SHA512:
6
- metadata.gz: bfeb736cd7ff4a42a515a5473b5be930d378916b8c19efe8c53b07643dd20e958b71842823c7d45da140a210578db410e2467769fd09ac341b9fc23810b70546
7
- data.tar.gz: 0e6c51e4e2231b9bf1db1d22b182468a73105e520f54752245a1bd300b5149d32d7efee7f8990aa36d0167139f5ed6e42dca51b53a9a86f276ceaf2d13ee5a32
6
+ metadata.gz: 863f68ce678563979a08b372cdfc349dfee3bcadcae212a365d1fce639d2a56691a98e557477ec9791c9c6bc5b4604a477becb3e7c47cb6410bdd69267e90a54
7
+ data.tar.gz: fb5a42c8680b6417592640b87b8a4fbdadd23aff771cd70af3844cff1d4c4f89d134fdd3465f3e3744d687918dc1ff1cd06919f2bc008d9034b85256b2e6fdce
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-ruby-3.2.1@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.625]:001 >>> PWN.help
40
+ pwn[v0.4.627]: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-ruby-3.2.1@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.625]:001 >>> PWN.help
55
+ pwn[v0.4.627]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
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.625'
4
+ VERSION = '0.4.627'
5
5
  end
data/pwn.gemspec CHANGED
@@ -17,11 +17,29 @@ Gem::Specification.new do |spec|
17
17
  spec.license = 'MIT'
18
18
  spec.metadata['rubygems_mfa_required'] = 'true'
19
19
 
20
- spec.files = `git ls-files -z`.split("\x0")
20
+ spec.files = `git ls-files -z`.split("\x00")
21
21
  spec.executables = spec.files.grep(%r{^bin/}) do |f|
22
22
  File.basename(f)
23
23
  end
24
24
 
25
+ spec_tests = spec.files.grep(%r{^spec/})
26
+ pwn_modules = spec.files.grep(%r{^lib/})
27
+
28
+ missing_rspec = false
29
+ pwn_modules.each do |pwn_path|
30
+ spec_test_for_mod = "#{File.basename(pwn_path).split('.').first}_spec.rb"
31
+ next unless spec_tests.grep(/#{spec_test_for_mod}/).empty?
32
+
33
+ missing_rspec = true
34
+ pwn_mod_dir = File.dirname(pwn_path)
35
+ spec_test = "/spec/#{pwn_mod_dir}/#{spec_test_for_mod}"
36
+ error_msg = "ERROR: RSpec: #{spec_test} missing for PWN Module: #{pwn_path}"
37
+ # Display error message in red (octal encoded ansi sequence)
38
+ puts "\001\e[1m\002\001\e[31m\002#{error_msg}\001\e[0m\002"
39
+ end
40
+
41
+ raise if missing_rspec
42
+
25
43
  spec.require_paths = ['lib']
26
44
 
27
45
  dev_dependency_arr = %i[
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ describe PWN::SAST::OuterHTML do
6
+ it 'scan method should exist' do
7
+ scan_response = PWN::SAST::OuterHTML
8
+ expect(scan_response).to respond_to :scan
9
+ end
10
+
11
+ it 'should display information for security_references' do
12
+ security_references_response = PWN::SAST::OuterHTML
13
+ expect(security_references_response).to respond_to :security_references
14
+ end
15
+
16
+ it 'should display information for authors' do
17
+ authors_response = PWN::SAST::OuterHTML
18
+ expect(authors_response).to respond_to :authors
19
+ end
20
+
21
+ it 'should display information for existing help method' do
22
+ help_response = PWN::SAST::OuterHTML
23
+ expect(help_response).to respond_to :help
24
+ end
25
+ 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.625
4
+ version: 0.4.627
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
@@ -1956,7 +1956,7 @@ files:
1956
1956
  - spec/lib/pwn/plugins/nmap_it_spec.rb
1957
1957
  - spec/lib/pwn/plugins/oauth2_spec.rb
1958
1958
  - spec/lib/pwn/plugins/ocr_spec.rb
1959
- - spec/lib/pwn/plugins/openai_spec.rb
1959
+ - spec/lib/pwn/plugins/open_ai_spec.rb
1960
1960
  - spec/lib/pwn/plugins/openvas_spec.rb
1961
1961
  - spec/lib/pwn/plugins/owasp_zap_spec.rb
1962
1962
  - spec/lib/pwn/plugins/packet_spec.rb
@@ -2006,6 +2006,7 @@ files:
2006
2006
  - spec/lib/pwn/sast/log4j_spec.rb
2007
2007
  - spec/lib/pwn/sast/logger_spec.rb
2008
2008
  - spec/lib/pwn/sast/md5_spec.rb
2009
+ - spec/lib/pwn/sast/outer_html_spec.rb
2009
2010
  - spec/lib/pwn/sast/password_spec.rb
2010
2011
  - spec/lib/pwn/sast/php_input_mechanisms_spec.rb
2011
2012
  - spec/lib/pwn/sast/php_type_juggling_spec.rb
@@ -2027,7 +2028,7 @@ files:
2027
2028
  - spec/lib/pwn/sast_spec.rb
2028
2029
  - spec/lib/pwn/www/app_cobalt_io_spec.rb
2029
2030
  - spec/lib/pwn/www/bing_spec.rb
2030
- - spec/lib/pwn/www/bug_crowd.rb
2031
+ - spec/lib/pwn/www/bug_crowd_spec.rb
2031
2032
  - spec/lib/pwn/www/checkip_spec.rb
2032
2033
  - spec/lib/pwn/www/coinbase_pro_spec.rb
2033
2034
  - spec/lib/pwn/www/duckduckgo_spec.rb