security-gem 0.1.0 → 0.1.1
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/security/gem/builder.rb +7 -1
- data/lib/security/gem/version.rb +1 -1
- metadata +1 -2
- data/payloads.txt +0 -1279
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6edb94cc1e01b1cafa41c80efb2757beea865b8b08323294a62b0e173e376eae
|
|
4
|
+
data.tar.gz: a541e237ef277663cdbd4983df66b96335e59807581f696600cfbdc6996ceb8b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1fbda697f1b85d8ecbff4bffb359b703f5465af87c625f3c8e87aed0d431f7b4b11c67c8018c5eb89a69f4d33fa4bb1857a5de6d011ef8d153166a70e4462d9f
|
|
7
|
+
data.tar.gz: a11f2331724910658bac30a8880555762c3149509aa483fb01718a208e02e64a329ff6b7b2e6db79045cf4b9d653e3086927602363a216f33d76507db66e2929
|
data/Gemfile.lock
CHANGED
data/lib/security/gem/builder.rb
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
require 'json'
|
|
2
2
|
require 'logger'
|
|
3
3
|
require 'logger/formatter'
|
|
4
|
+
require 'net/http'
|
|
4
5
|
require 'open-uri'
|
|
5
6
|
|
|
6
7
|
|
|
8
|
+
|
|
7
9
|
module SecurityLogger
|
|
8
10
|
|
|
9
11
|
#Create logs used for SQL Injection detections
|
|
@@ -28,12 +30,16 @@ module SecurityLogger
|
|
|
28
30
|
end
|
|
29
31
|
|
|
30
32
|
def check_input(input)
|
|
31
|
-
|
|
33
|
+
uri = "https://raw.githubusercontent.com/tuckerweibell/security-gem/main/payloads.txt"
|
|
34
|
+
uri = URI(uri)
|
|
35
|
+
file = Net::HTTP.get(uri)
|
|
36
|
+
file.each_line do |file|
|
|
32
37
|
if file.strip == input.strip
|
|
33
38
|
self.log(input.strip)
|
|
34
39
|
break
|
|
35
40
|
end
|
|
36
41
|
end
|
|
42
|
+
|
|
37
43
|
end
|
|
38
44
|
end
|
|
39
45
|
end
|
data/lib/security/gem/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: security-gem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- tuckerweibell
|
|
@@ -30,7 +30,6 @@ files:
|
|
|
30
30
|
- lib/security/gem.rb
|
|
31
31
|
- lib/security/gem/builder.rb
|
|
32
32
|
- lib/security/gem/version.rb
|
|
33
|
-
- payloads.txt
|
|
34
33
|
- security-gem.gemspec
|
|
35
34
|
homepage: https://github.com/tuckerweibell/security-gem
|
|
36
35
|
licenses:
|