• 大小: 56.87MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2022-05-20
  • 语言: 其他
  • 标签: SecureCRT  

资源简介

SecureCRT是一款支持SSH(SSH1和SSH2)的终端仿真程序,简单地说是Windows下登录UNIX或Linux服务器主机的软件。 SecureCRT支持SSH,同时支持Telnet和rlogin协议。SecureCRT是一款用于连接运行包括Windows、UNIX和VMS的理想工具。通过使用内含的VCP命令行程序可以进行加密文件的传输。有流行CRTTelnet客户机的所有特点,包括:自动注册、对不同主机保持不同的特性、打印功能、颜色设置、可变屏幕尺寸、用户定义的键位图和优良的VT100,VT102,VT220和ANSI竞争.能从命令行中运行或从浏览器中运行.其它特点包括文本手稿、易于使用的工具条、用户的键位图编辑器、可定制的ANSI颜色等.SecureCRT的SSH协议支持DES,3DES和RC4密码和密码与RSA鉴别。

资源截图

代码片段和文件信息

# $language = “python“
# $interface = “1.0“

# AddCommentToLogFile.py
#
# Description:
#   This example script allows you to add a custom line of text to your
#   SecureCRT log file.  The user will be prompted for the text to add
#   to the log file; logging will be stopped; the text provided by the
#   user will be appended to the log file; then SecureCRT logging will
#   be restarted.
#    
#   This method only works with connections associated with a Session
#   configuration in which a log file is specified.
#
# Demonstrates:
#   - How to prompt for user input using the SecureCRT InputBox() function.
#   - How to access Session.LogFileName to determine the log file name
#     stored for the current session.
#   - How to use the Session.Logging property to determine if logging
#     is currently active.
#   - How to use the Python replace() method to substitute substrings
#     within an existing string.
#   - How to use the Python file object to open an existing text file
#     and append data.
#

import datetime

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def Main():
# Make this script tab safe
tab = crt.GetscriptTab()

if tab.Session.LogFileName == ““ :
crt.Dialog.MessageBox(“Error.\n\n\
This script requires a session configuration in which a \
log file is defined.\n\n\
Specify a Log file name in Session Options ““Terminal / \
Log File““ and run this script again.“)
return

# 1. Stop logging to free up the log file for writing by our script.
tab.Session.Log(False)

# 2. Prompt the user for the text to add to the log file.
now = str(datetime.datetime.now())
textToAdd = crt.Dialog.Prompt(
“Add comment to log file (use \\r\\n to separate multiple lines):\n\n\
Comment will be prefaced with current timestamp:\n“ + now + “\n“
“Add Comment To SecureCRT Log File\n“ + now + “: “)

# Prompt returns ““ if the user cancels
if textToAdd == ““:
return

# 3. Write data to the file.  If you want to include a newline you must
# concatenate a \n character to the end of the line.  Note also that you can
# wrap the comment with certain markers and not require the user to enter
# these markers when prompted. Although the prompt function only allows
# one line per entry you can set up a tag that can be used to represent
# a new line such as “\r\n“ and then replace this tag with a \n as we 
# have done in this example:
textToAdd = “\n/********************************************/ \n\
* “ + now + “: \n* “ + textToAdd.replace(“\r\n“ “\n* “) + “\n\
/********************************************/ \n“

WriteToFile(tab.Session.LogFileName textToAdd)

# 4. Start up logging again making sure we append rather than overwrite.
tab.Session.Log(True True)

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def WriteToFile(filename data):
# filename: Full path to file
# data: data to be written to the 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     443392  2011-12-13 09:27  SecureCRT8.X+注册机+中文补丁\SecureCRT-8.1.4英文版(含注册机)\8.x 注册机\keygen.exe

     文件        663  2017-08-11 21:36  SecureCRT8.X+注册机+中文补丁\SecureCRT-8.1.4英文版(含注册机)\8.x 注册机\readme.txt

     文件        530  2018-05-17 11:39  SecureCRT8.X+注册机+中文补丁\SecureCRT-8.1.4英文版(含注册机)\8.x 注册机\SecureCRT v8.x 注册机使用说明.txt

     文件   27563080  2017-08-11 21:27  SecureCRT8.X+注册机+中文补丁\SecureCRT-8.1.4英文版(含注册机)\scrt814-x64.exe

     文件    2039008  2016-06-07 10:44  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\Activator.exe

     文件      19136  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-console-l1-1-0.dll

     文件      18624  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-datetime-l1-1-0.dll

     文件      18624  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-debug-l1-1-0.dll

     文件      18624  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-errorhandling-l1-1-0.dll

     文件      22208  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-file-l1-1-0.dll

     文件      18624  2015-12-04 15:47  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-file-l1-2-0.dll

     文件      18624  2015-12-04 15:47  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-file-l2-1-0.dll

     文件      18624  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-handle-l1-1-0.dll

     文件      19136  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-heap-l1-1-0.dll

     文件      18624  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-interlocked-l1-1-0.dll

     文件      19136  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-libraryloader-l1-1-0.dll

     文件      21184  2015-12-04 15:47  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-localization-l1-2-0.dll

     文件      19136  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-memory-l1-1-0.dll

     文件      18624  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-namedpipe-l1-1-0.dll

     文件      19648  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-processenvironment-l1-1-0.dll

     文件      20672  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-processthreads-l1-1-0.dll

     文件      19136  2015-12-04 15:47  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-processthreads-l1-1-1.dll

     文件      18112  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-profile-l1-1-0.dll

     文件      19136  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-rtlsupport-l1-1-0.dll

     文件      18624  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-string-l1-1-0.dll

     文件      20672  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-synch-l1-1-0.dll

     文件      19136  2015-12-04 15:47  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-synch-l1-2-0.dll

     文件      19648  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-sysinfo-l1-1-0.dll

     文件      18624  2015-12-04 15:47  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-timezone-l1-1-0.dll

     文件      18624  2016-02-05 12:16  SecureCRT8.X+注册机+中文补丁\SecureCRT8.0+注册机+汉化补丁(免安装)\SecureCRT\api-ms-win-core-util-l1-1-0.dll

............此处省略124个文件信息

评论

共有 条评论