Skip to content
This repository was archived by the owner on May 18, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/memorandom/plugins/aes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -185,4 +185,4 @@ def scan(buffer, source_offset)

end
end
end
end
4 changes: 2 additions & 2 deletions lib/memorandom/plugins/capi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions lib/memorandom/plugins/cc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -33,4 +33,4 @@ def scan(buffer, source_offset)

end
end
end
end
6 changes: 3 additions & 3 deletions lib/memorandom/plugins/der.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -40,4 +40,4 @@ def scan(buffer, source_offset)

end
end
end
end
6 changes: 3 additions & 3 deletions lib/memorandom/plugins/hashes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -33,4 +33,4 @@ def scan(buffer, source_offset)

end
end
end
end
6 changes: 3 additions & 3 deletions lib/memorandom/plugins/pem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -19,4 +19,4 @@ def scan(buffer, source_offset)

end
end
end
end
6 changes: 3 additions & 3 deletions lib/memorandom/plugins/rsa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -74,4 +74,4 @@ def scan(buffer, source_offset)
end
end

=end
=end
8 changes: 4 additions & 4 deletions lib/memorandom/plugins/template.rb
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -27,11 +27,11 @@ def reset
end

def self.description
@@description
@description
end

def self.confidence
@@confidence
@confidence
end

def description
Expand Down
6 changes: 3 additions & 3 deletions lib/memorandom/plugins/url_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -19,4 +19,4 @@ def scan(buffer, source_offset)

end
end
end
end