Guest User

Untitled

a guest
Feb 18th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. # Paths for the filever.exe to read the version information from a file
  2. vbs = "/home/kuwe/filever.exe"
  3. target_dir = "C:\\programme"
  4.  
  5. begin
  6. if target_dir
  7. tempdir = target_dir
  8. else
  9. tempdir = @client.fs.file.expand_path("%TEMP%")
  10. end
  11. tempvbs = tempdir + "\\" + "filever2.exe"
  12. fd = @client.fs.file.new(tempvbs, "wb")
  13. count = 0
  14. fd.write(vbs)
  15. fd.close
  16. print_good("filever.exe written to #{tempvbs}")
  17. rescue ::Exception => e
  18. print_status("Error using Data upload: #{e.class} #{e}")
  19. end
Add Comment
Please, Sign In to add comment