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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bb7b47a555f63203342098f5142a197e8b1cbdca20f8e68e4775352ae87baac
|
4
|
+
data.tar.gz: 8d976e65c7aa3d03a99dcc04a331408f3beb8f8d6f62eca56a2efbeb1da1a92a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
40
|
+
pwn[v0.4.627]:001 >>> PWN.help
|
41
41
|
```
|
42
42
|
|
43
43
|
[](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.
|
55
|
+
pwn[v0.4.627]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
|
data/lib/pwn/version.rb
CHANGED
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("\
|
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.
|
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/
|
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/
|
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
|
File without changes
|
File without changes
|