Skip to content

Commit ce9d2af

Browse files
committed
more osx hacks
1 parent 0f2bfb7 commit ce9d2af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rex/post/meterpreter/client_core.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,11 @@ def load_library(opts)
249249
# path of the local and target so that it gets loaded with a random
250250
# name
251251
if opts['Extension']
252-
if client.binary_suffix.size > 1
252+
if client.binary_suffix and client.binary_suffix.size > 1
253253
m = /(.*)\.(.*)/.match(library_path)
254254
suffix = $2
255+
elsif client.binary_suffix.size == 1
256+
suffix = client.binary_suffix[0]
255257
else
256258
suffix = client.binary_suffix
257259
end

0 commit comments

Comments
 (0)