Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Paths for the filever.exe to read the version information from a file
- vbs = "/home/kuwe/filever.exe"
- target_dir = "C:\\programme"
- begin
- if target_dir
- tempdir = target_dir
- else
- tempdir = @client.fs.file.expand_path("%TEMP%")
- end
- tempvbs = tempdir + "\\" + "filever2.exe"
- fd = @client.fs.file.new(tempvbs, "wb")
- count = 0
- fd.write(vbs)
- fd.close
- print_good("filever.exe written to #{tempvbs}")
- rescue ::Exception => e
- print_status("Error using Data upload: #{e.class} #{e}")
- end
Add Comment
Please, Sign In to add comment