From feca6613739bc3b2f0bf3d5e7c47d802ee0022ea Mon Sep 17 00:00:00 2001 From: HD Moore Date: Tue, 7 Mar 2006 06:50:25 +0000 Subject: [PATCH] Fixed typos in the license Fixed exception issues git-svn-id: file:///home/svn/incoming/trunk@3552 4d416f70-5f16-0410-b530-b9f4589650da --- documentation/LICENSE | 6 +++--- lib/rex/proto/dcerpc/exceptions.rb | 2 +- lib/rex/proto/smb/exceptions.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/documentation/LICENSE b/documentation/LICENSE index d61e089eda..364edaeaa1 100644 --- a/documentation/LICENSE +++ b/documentation/LICENSE @@ -12,7 +12,7 @@ b. "Software" means any software that is distributed under the terms of this License. c. "Extension" means any enhancement to the Software that does not require -modification of the Software itself. ?Extensions? include any module or +modification of the Software itself. "Extensions" include any module or plug-in that is intended (by design and coding) to, or can, be dynamically loaded by the Software. @@ -33,8 +33,8 @@ utilization in any larger application or product). g. "You" means the individual or organization that is using the Software under the conditions of the License. -h. "Interface" means to execute, parse, or otherwise benefit from the of -the Software. +h. "Interface" means to execute, parse, or otherwise benefit from the use +of the Software. i. "Interaction Software" means any external software program or library that interfaces with, but is not a component or subset of, the Software. diff --git a/lib/rex/proto/dcerpc/exceptions.rb b/lib/rex/proto/dcerpc/exceptions.rb index 0e23b0b9d2..f7d3049316 100644 --- a/lib/rex/proto/dcerpc/exceptions.rb +++ b/lib/rex/proto/dcerpc/exceptions.rb @@ -17,7 +17,7 @@ class Error < ::RuntimeError File.open(file).each { |line| next if line =~ /^#/ code, string = line.split - code = [code].pack('H*').unpack('L')[0] + code = [code].pack('H*').unpack('N')[0] @@errors[code] = string } end diff --git a/lib/rex/proto/smb/exceptions.rb b/lib/rex/proto/smb/exceptions.rb index 986df93ad9..fa559b4bac 100644 --- a/lib/rex/proto/smb/exceptions.rb +++ b/lib/rex/proto/smb/exceptions.rb @@ -18,7 +18,7 @@ class Error < ::RuntimeError File.open(file).each { |line| next if line =~ /^#/ code, string = line.split - code = [code].pack('H*').unpack('L')[0] + code = [code].pack('H*').unpack('N')[0] @@errors[code] = string } end