owasp_zap 0.0.94 → 0.0.95
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/owasp_zap/policy.rb +14 -0
- data/lib/owasp_zap/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 782c553bfa5aee80dc9987f306cff31a3cfe6b7e
|
4
|
+
data.tar.gz: 653a520ff07c6a14156cd84e43f33d6e814e81a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73ff7b887bce019164c72b040c7b3549d1fb523b88390c9c1dc35b9976a4d5d9fa1d64aa2fe6f131f5e578acc31fe54d1ec8910f98ef083fd61d27c0b02f76f1
|
7
|
+
data.tar.gz: dc49d7f3e8e8f95408a722524b96a9c4e61159937f687ec0d0b0231a2c2dbfc66a7ee74b366ffc7156ffc0a961a5dc928a4ec0ae82684ef13cbebaeb6230bc09
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module OwaspZap
|
2
|
+
class Policy
|
3
|
+
def initialize(params = {})
|
4
|
+
@base = params[:base]
|
5
|
+
end
|
6
|
+
|
7
|
+
def all(format = "JSON")
|
8
|
+
# http://127.0.0.1:8080/JSON/ascan/view/policies/?zapapiformat=JSON
|
9
|
+
url = Addressable::URI.parse "#{@base}/#{format}/ascan/view/policies/"
|
10
|
+
url.query_values = {:zapapiformat=>format}
|
11
|
+
RestClient::get url.normalize.to_str
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/owasp_zap/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: owasp_zap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.95
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pereira
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- lib/owasp_zap/attack.rb
|
127
127
|
- lib/owasp_zap/auth.rb
|
128
128
|
- lib/owasp_zap/error.rb
|
129
|
+
- lib/owasp_zap/policy.rb
|
129
130
|
- lib/owasp_zap/scanner.rb
|
130
131
|
- lib/owasp_zap/spider.rb
|
131
132
|
- lib/owasp_zap/string_extension.rb
|