View Single Post
Old 06-19-2017, 09:22 AM
rzavala rzavala is offline
Registered User
Join Date: Jun 2017
Posts: 6
Originally Posted by rtb View Post
Hi Ken,

Thanks for the question. Currently, SecureCRT does not have the ability to obfuscate scripts. I have created a feature request in our SecureCRT development database to add this capability.

Should a future release of SecureCRT have this ability, we will post to this thread. If you would like to be notified directly, please complete and submit the form at the following location:
Submit Feature Request
In the meantime, you may be able to use the following steps to encode an existing VBScript for use in SecureCRT:
  1. Write your script and test it to ensure proper operation within SecureCRT.
  2. Remove the two SecureCRT specific header lines, and save your script source file with a .vbs extension. In other words, the following two lines should *not* appear at the top of your un-encoded script source file:
    # $language = "VBScript.Encode"
    # $interface = "1.0"
  3. Download and install Microsoft Script Encoder
  4. Encode the .vbs script using a command-line similar to the following:
    "<path>\screnc.exe" test.vbs test.vbe
  5. Edit the encoded script (test.vbe) and add the following lines to the beginning of the script:
    # $language = "VBScript.Encode"
    # $interface = "1.0"
    '**Start Encode**
Note that Microsoft only supports the script encoder on Windows versions up through XP. Microsoft does not support the script encoder in Windows Vista or 7. See the following MSDN article for more details:
I tried this one with a small script as example, but it's not working for me; looks like it's not sending the CR/LF commands, it goes trough 1 line, look at the attached picture.
Attached Images
File Type: gif Capture.GIF (28.3 KB, 283 views)

Last edited by rzavala; 06-19-2017 at 09:32 AM.
Reply With Quote