more ninja foo

git-svn-id: file:///home/svn/incoming/trunk@2350 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2005-04-10 04:18:05 +00:00
parent 1d6e8a10d8
commit a89490cd64
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ class ClientCore
# path of the local and target so that it gets loaded with a random
# name
if (opts['Extension'])
library_path = "ext" + rand(1000000) + ".dll"
library_path = "ext" + rand(1000000).to_s + ".dll"
target_path = library_path
end
end
@ -154,7 +154,7 @@ class ClientCore
modules.each { |mod|
load_library(
'LibraryFilePath' => 'data/meterpreter/' + mod + '.dll',
'LibraryFilePath' => 'data/meterpreter/ext_server_' + mod.downcase + '.dll',
'UploadLibrary' => true,
'Extension' => true,
'SaveToDisk' => opts['LoadFromDisk']