We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fea84ca commit 5edb138Copy full SHA for 5edb138
modules/exploits/windows/local/persistence.rb
@@ -163,7 +163,7 @@ def log_file(log_path = nil)
163
#-------------------------------------------------------------------------------
164
def write_script_to_target(vbs,name)
165
tempdir = session.fs.file.expand_path("%TEMP%")
166
- if name
+ if name == nil
167
tempvbs = tempdir + "\\" + Rex::Text.rand_text_alpha((rand(8)+6)) + ".vbs"
168
else
169
tempvbs = tempdir + "\\" + name + ".vbs"
0 commit comments