arii 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arii/sqldetector.rb +3 -0
- data/lib/arii/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f92af18ae1d08338573b7e6730782d00a8ae164c
|
4
|
+
data.tar.gz: 4c22be9fd55855894bfa361fe70df3ab1aae4bb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0e66865272b6d5b39f3096269056831a27acdc08a26b32c880fd19f53e6e915e90844ba93dac44bb75840c63b28650ef2f054166cc2f42ed8f1153fb4351a7d
|
7
|
+
data.tar.gz: 8e418c8217cf77b91b37458cc4324768399fd5c27b3fdac96d211296c5a2c8aa8cb4caa3d2ffef7b6708a68999c88b2b9fdaf406e56ffaf9fb05222f764af756
|
data/lib/arii/sqldetector.rb
CHANGED
@@ -18,7 +18,9 @@ module ARII
|
|
18
18
|
ARII::Config.log.debug(self.class.name) {"Monitoring #{object[:host]}"}
|
19
19
|
begin
|
20
20
|
@client = Mysql2::Client.new(:host => object[:host], :username => object[:username] , :password => object[:password] , :database => object[:database])
|
21
|
+
puts @agent[:payload][:query]
|
21
22
|
@client.query(@agent[:payload][:query]).each(:symbolize_keys => false) do |row|
|
23
|
+
puts row
|
22
24
|
unless object[:cache].nil? then
|
23
25
|
@response = Cashier.verify row[object[:cache]], object, row, object[:seed]
|
24
26
|
else
|
@@ -26,6 +28,7 @@ module ARII
|
|
26
28
|
end
|
27
29
|
|
28
30
|
# Process ARII cache response
|
31
|
+
puts response
|
29
32
|
@cache = JSON.parse(@response, {:symbolize_names => true})
|
30
33
|
unless @cache[:templates].nil? then
|
31
34
|
@cache[:templates].each do |t|
|
data/lib/arii/version.rb
CHANGED