Skip to content

Commit 5edb138

Browse files
committed
fixed nil issue
1 parent fea84ca commit 5edb138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/windows/local/persistence.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def log_file(log_path = nil)
163163
#-------------------------------------------------------------------------------
164164
def write_script_to_target(vbs,name)
165165
tempdir = session.fs.file.expand_path("%TEMP%")
166-
if name
166+
if name == nil
167167
tempvbs = tempdir + "\\" + Rex::Text.rand_text_alpha((rand(8)+6)) + ".vbs"
168168
else
169169
tempvbs = tempdir + "\\" + name + ".vbs"

0 commit comments

Comments
 (0)