Quickly build SecureCRT SSH sessions
AutoCRT will work on Windows or MacOS. Binary files for each are provided in the bin directory
Running with the -h
switch will provide you with some help
C:\Users\User> AutoCRT.exe -h
Usage: AutoCRT [options]
Options:
-h, --help show this help message and exit
-t TEMPLATE, --template=TEMPLATE
.INI file to use for template
-l USER, --user=USER SSH login name to use
-w PASSWORD, --password=PASSWORD
SSH password to use
-o OUTPUT_FOLDER, --output_folder=OUTPUT_FOLDER
Folder where .INI file is created
-i HOSTNAME, --hostname=HOSTNAME
IP address or hostname of remote device
-r RANGE, --range=RANGE
IP address range of hosts to find
-d DEVICE_TYPE, --device_type=DEVICE_TYPE
Device Type
Windows Example (Single IP)
AutoCRT.exe -t "C:\SecureCRT\Sessions\MyCustomerSession.ini" -i 192.168.1.1 -l admin -w password123
Windows Example (IP Range)
AutoCRT.exe -t "C:\SecureCRT\Sessions\MyCustomerSession.ini" -r 192.168.1.1-192.168.1.20 -l admin -w password123
MacOS Example (Single IP)
./AutoCRT -t "/Users/MyUser/SecureCRT/Sessions/MyCustomerSession.ini" -i 192.168.1.1 -l admin -w password123
MacOS Example (IP Range)
./AutoCRT -t "/Users/MyUser/SecureCRT/Sessions/MyCustomerSession.ini" -r 192.168.1.1-192.168.1.20 -l admin -w password123
AutoCRT requires the use of Python 2.7.X
- Install Python 2.7.X interpreter from the Python Website
- Download "pip-Win" from its download site
- Open pip-Win and run with command
venv -c -i pyi-env-name
- Install PyInstaller with command
pip install PyInstaller
- You will also need topip install netmiko
andpip install netaddr
- Navigate a folder with AutoCRT.py
- Run command to compile:
pyinstaller --onefile AutoCRT.py
- Install Python 2.7.X and set as default interpreter
- Install Homebrew
- Open Terminal and use Homebrew to install updated Python:
brew install python
- Open the bash_profile in VI and add the new Python path:
more .bash_profile
- Insert the line at the bottom:
export PATH="/usr/local/Cellar/python/2.7.13/bin:${PATH}"
- Insert the line at the bottom:
- Close Terminal and reopen it, type
python --version
and make sure it shows version 2.7.13 or greater
- Install Pip with command
sudo easy_install pip
- Use Pip to install PyInstaller
pip install pyinstaller
- You will also need topip install netmiko
andpip install netaddr
- Run command to compile:
pyinstaller --onefile --windowed --icon=acid.ico --clean Acid.py