From dd7f27e974ca93f3500989a1db0567defd2ebc23 Mon Sep 17 00:00:00 2001 From: Spoon M Date: Thu, 2 Jun 2005 01:06:17 +0000 Subject: [PATCH] module is a reversed name, opps! git-svn-id: file:///home/svn/incoming/trunk@2540 4d416f70-5f16-0410-b530-b9f4589650da --- lib/rex/post/meterpreter/client_core.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rex/post/meterpreter/client_core.rb b/lib/rex/post/meterpreter/client_core.rb index 55763c3ac5..b805371d89 100644 --- a/lib/rex/post/meterpreter/client_core.rb +++ b/lib/rex/post/meterpreter/client_core.rb @@ -133,13 +133,13 @@ class ClientCore < Extension Indicates that the library should be loaded from disk, not from memory on the remote machine =end - def use(module, opts) - if (module == nil) + def use(mod, opts) + if (mod == nil) raise RuntimeError, "No modules were specified", caller end if (load_library( - 'LibraryFilePath' => 'data/meterpreter/ext_server_' + module.downcase + '.dll', + 'LibraryFilePath' => 'data/meterpreter/ext_server_' + mod.downcase + '.dll', 'UploadLibrary' => true, 'Extension' => true, 'SaveToDisk' => opts['LoadFromDisk']))