From d92f37600ef55b7b900558806d86f16d91a0879e Mon Sep 17 00:00:00 2001 From: Trenton Ivey Date: Thu, 5 Jun 2014 11:28:23 -0500 Subject: [PATCH] Changed class variables to instance variables in plugins --- lib/memorandom/plugins/aes.rb | 6 +++--- lib/memorandom/plugins/capi.rb | 4 ++-- lib/memorandom/plugins/cc.rb | 6 +++--- lib/memorandom/plugins/der.rb | 6 +++--- lib/memorandom/plugins/hashes.rb | 6 +++--- lib/memorandom/plugins/pem.rb | 6 +++--- lib/memorandom/plugins/rsa.rb | 6 +++--- lib/memorandom/plugins/template.rb | 8 ++++---- lib/memorandom/plugins/url_params.rb | 6 +++--- 9 files changed, 27 insertions(+), 27 deletions(-) diff --git a/lib/memorandom/plugins/aes.rb b/lib/memorandom/plugins/aes.rb index 52a970f..f051389 100644 --- a/lib/memorandom/plugins/aes.rb +++ b/lib/memorandom/plugins/aes.rb @@ -2,8 +2,8 @@ module Memorandom module Plugins class AES < PluginTemplate - @@description = "This plugin looks for AES encryption keys (128/256)" - @@confidence = 0.50 + @description = "This plugin looks for AES encryption keys (128/256)" + @confidence = 0.50 # # This code is a ruby implementation of AESKeyFind (C) 2008-07-18 Nadia Heninger and Ariel Feldman @@ -185,4 +185,4 @@ def scan(buffer, source_offset) end end -end \ No newline at end of file +end diff --git a/lib/memorandom/plugins/capi.rb b/lib/memorandom/plugins/capi.rb index 481a9b5..86e63d9 100644 --- a/lib/memorandom/plugins/capi.rb +++ b/lib/memorandom/plugins/capi.rb @@ -4,8 +4,8 @@ class CAPI < PluginTemplate require 'openssl' - @@description = "This plugin looks for Microsoft CryptoAPI encryption keys in memory (PRIVATEBLOB)" - @@confidence = 0.90 + @description = "This plugin looks for Microsoft CryptoAPI encryption keys in memory (PRIVATEBLOB)" + @confidence = 0.90 # Scan takes a buffer and an offset of where this buffer starts in the source def scan(buffer, source_offset) diff --git a/lib/memorandom/plugins/cc.rb b/lib/memorandom/plugins/cc.rb index 31ccf94..eab0ecd 100644 --- a/lib/memorandom/plugins/cc.rb +++ b/lib/memorandom/plugins/cc.rb @@ -5,8 +5,8 @@ class CC < PluginTemplate # Use the credit_card_validator gem for luhn checks and card verification require 'credit_card_validator' - @@description = "This plugin looks for credit card numbers" - @@confidence = 0.10 + @description = "This plugin looks for credit card numbers" + @confidence = 0.10 # Scan takes a buffer and an offset of where this buffer starts in the source def scan(buffer, source_offset) @@ -33,4 +33,4 @@ def scan(buffer, source_offset) end end -end \ No newline at end of file +end diff --git a/lib/memorandom/plugins/der.rb b/lib/memorandom/plugins/der.rb index 0979e20..4aff9bc 100644 --- a/lib/memorandom/plugins/der.rb +++ b/lib/memorandom/plugins/der.rb @@ -4,8 +4,8 @@ class DER < PluginTemplate require 'openssl' - @@description = "This plugin looks for DER-encoded encryption keys (RSA/DSA/EC)" - @@confidence = 0.90 + @description = "This plugin looks for DER-encoded encryption keys (RSA/DSA/EC)" + @confidence = 0.90 # Scan takes a buffer and an offset of where this buffer starts in the source def scan(buffer, source_offset) @@ -40,4 +40,4 @@ def scan(buffer, source_offset) end end -end \ No newline at end of file +end diff --git a/lib/memorandom/plugins/hashes.rb b/lib/memorandom/plugins/hashes.rb index 6f25304..bb0a3a0 100644 --- a/lib/memorandom/plugins/hashes.rb +++ b/lib/memorandom/plugins/hashes.rb @@ -2,8 +2,8 @@ module Memorandom module Plugins class Hashes < PluginTemplate - @@description = "This plugin looks for common hash formats" - @@confidence = 0.10 + @description = "This plugin looks for common hash formats" + @confidence = 0.10 # Scan takes a buffer and an offset of where this buffer starts in the source def scan(buffer, source_offset) @@ -33,4 +33,4 @@ def scan(buffer, source_offset) end end -end \ No newline at end of file +end diff --git a/lib/memorandom/plugins/pem.rb b/lib/memorandom/plugins/pem.rb index 2df20f9..761ee5d 100644 --- a/lib/memorandom/plugins/pem.rb +++ b/lib/memorandom/plugins/pem.rb @@ -2,8 +2,8 @@ module Memorandom module Plugins class PEM < PluginTemplate - @@description = "This plugin looks for PEM-encoded data (keys, certificates, crls, etc)" - @@confidence = 0.90 + @description = "This plugin looks for PEM-encoded data (keys, certificates, crls, etc)" + @confidence = 0.90 # Scan takes a buffer and an offset of where this buffer starts in the source def scan(buffer, source_offset) @@ -19,4 +19,4 @@ def scan(buffer, source_offset) end end -end \ No newline at end of file +end diff --git a/lib/memorandom/plugins/rsa.rb b/lib/memorandom/plugins/rsa.rb index 792a239..31f5cfe 100644 --- a/lib/memorandom/plugins/rsa.rb +++ b/lib/memorandom/plugins/rsa.rb @@ -8,8 +8,8 @@ class RSA < PluginTemplate require 'openssl' - @@description = "This plugin looks for RSA keys by finding Bignum-encoded p-values" - @@confidence = 0.90 + @description = "This plugin looks for RSA keys by finding Bignum-encoded p-values" + @confidence = 0.90 # Scan takes a buffer and an offset of where this buffer starts in the source def scan(buffer, source_offset) @@ -74,4 +74,4 @@ def scan(buffer, source_offset) end end -=end \ No newline at end of file +=end diff --git a/lib/memorandom/plugins/template.rb b/lib/memorandom/plugins/template.rb index 6994d19..4835004 100644 --- a/lib/memorandom/plugins/template.rb +++ b/lib/memorandom/plugins/template.rb @@ -1,8 +1,8 @@ module Memorandom class PluginTemplate - @@description = "This is an unconfigured plugin using the base template" - @@confidence = 0.80 + @description = "This is an unconfigured plugin using the base template" + @confidence = 0.80 attr_accessor :scanner, :hits @@ -27,11 +27,11 @@ def reset end def self.description - @@description + @description end def self.confidence - @@confidence + @confidence end def description diff --git a/lib/memorandom/plugins/url_params.rb b/lib/memorandom/plugins/url_params.rb index 2661644..b043c8e 100644 --- a/lib/memorandom/plugins/url_params.rb +++ b/lib/memorandom/plugins/url_params.rb @@ -2,8 +2,8 @@ module Memorandom module Plugins class URLParams < PluginTemplate - @@description = "This plugin looks for interesting URL parameters and POST data" - @@confidence = 0.50 + @description = "This plugin looks for interesting URL parameters and POST data" + @confidence = 0.50 # Scan takes a buffer and an offset of where this buffer starts in the source def scan(buffer, source_offset) @@ -19,4 +19,4 @@ def scan(buffer, source_offset) end end -end \ No newline at end of file +end