From 4a3d2a18dee6c0b3e526c009e747486205db5816 Mon Sep 17 00:00:00 2001 From: Brandon Perry Date: Mon, 2 Apr 2012 21:42:51 -0500 Subject: [PATCH] hard tabs --- lib/rex/registry/hive.rb | 6 +++--- lib/rex/registry/nodekey.rb | 6 +++--- tools/reg.rb | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/rex/registry/hive.rb b/lib/rex/registry/hive.rb index 9d58223a96..45e40d2aca 100644 --- a/lib/rex/registry/hive.rb +++ b/lib/rex/registry/hive.rb @@ -12,10 +12,10 @@ class Hive hive_blob = open(hivepath, "rb") { |io| io.read } @hive_regf = RegfBlock.new(hive_blob) - return nil if !@hive_regf.root_key_offset + return nil if !@hive_regf.root_key_offset - @root_key = NodeKey.new(hive_blob, 0x1000 + @hive_regf.root_key_offset) - return nil if !@root_key.lf_record + @root_key = NodeKey.new(hive_blob, 0x1000 + @hive_regf.root_key_offset) + return nil if !@root_key.lf_record keys = [] root_key.lf_record.children.each do |key| diff --git a/lib/rex/registry/nodekey.rb b/lib/rex/registry/nodekey.rb index b5b99cf896..97d85f151b 100644 --- a/lib/rex/registry/nodekey.rb +++ b/lib/rex/registry/nodekey.rb @@ -34,9 +34,9 @@ class NodeKey @class_name_length = hive[offset+0x4a, 2].unpack('c').first @name = hive[offset+0x4c, @name_length].to_s - windows_time = @timestamp - unix_time = windows_time/10000000-11644473600 - ruby_time = Time.at(unix_time) + windows_time = @timestamp + unix_time = windows_time/10000000-11644473600 + ruby_time = Time.at(unix_time) @readable_timestamp = ruby_time diff --git a/tools/reg.rb b/tools/reg.rb index eaf2ddcc52..ddcae877b2 100755 --- a/tools/reg.rb +++ b/tools/reg.rb @@ -375,7 +375,7 @@ when "list_drivers" when "get_everything" Dir.foreach(ARGV[1]) do |file| next if file =~ /^\./ - next if ::File.directory?(ARGV[1] + "/" + file) + next if ::File.directory?(ARGV[1] + "/" + file) @hive = Rex::Registry::Hive.new(ARGV[1] + "/" + file)