 - From Reflection toolbar select Script-> Edit Script->
- New Script and paste this script in. If you only
- wan't it to run once, simply delete the GOTO statement
- at the end. Reflection gives you the ability to add a
- button to the toolbar for your new script.
- ; Reflection Cisco Password Changer
- Set LITERAL-ESCAPE "\\"
- :
- Hold for "Password:"
- ; Enter a password. Don't flash it on status line
- Let V0 = value(QUIET-COMMAND)
- Set QUIET-COMMAND yes
- ;Your existing first (vty) password
- Let V1 = "vtypassword"
- Transmit V1 & "^M"
- Let V1 = ""
- Set QUIET-COMMAND $0
- ; String omitted because it might change:
- ; Hold For "3"
- Hold For ">"
- Transmit "ena^M"
- Hold For "^JPassword: "
- ; Enter a password. Don't flash it on status line
- Let V0 = value(QUIET-COMMAND)
- Set QUIET-COMMAND yes
- ;Your existing enable password
- Let V1 = "enablesecretpassword"
- Transmit V1 & "^M"
- Let V1 = ""
- Set QUIET-COMMAND $0
- Hold For "^J"
- ; String omitted because it might change:
- ; Hold For "3"
- Hold For "#"
- Transmit "conf t^M"
- Hold For "#"
- ; String omitted because it might change:
- ; Hold For "3"
- ;Hold For "(config)#"
- ;Substitue newpassword below for your own new enable password
- Transmit "ena secret newpassword^M"
- Hold For "#"
- ; String omitted because it might change:
- ; Hold For "3"
- ;Hold For "(config)#"
- Transmit "line vty 0 4^M"
- Hold For "#"
- ; String omitted because it might change:
- ; Hold For "3"
- ;Hold For "(config-line)#"
- ;Substitute newvtypassword below for your own new vty password
- Transmit "pass newvtypassword^M"
- ;Hold For "#"
- ; String omitted because it might change:
- ; Hold For "3"
- ;Hold For "(config-line)#"
- Transmit "^Z"
- ;Hold For "#"
- ; String omitted because it might change:
- ; Hold For "3"
- ;Hold For "#"
- Transmit "write^M"
- Hold For "#"
- ; String omitted because it might change:
- ; Hold For "3"
- Hold For "#"
- Transmit "write net^M"
- Hold For "^JRemote host []? "
- ;The IP address of your TFTP server
- Transmit "1.1.1.1^M"
- Hold For "^JName of configuration file to write ["
- ; String omitted because it might change:
- ; Hold For "3"
- Hold For "-confg]? "
- Transmit "^M"
- ;Hold For "^JWrite file -confg"
- ; String omitted because it might change:
- ; Hold For "3"
- Hold For "-confg on host "
- ; String omitted because it might change:
- ;The IP address of your TFTP server
- ; Hold For "1.1.1.1"
- ;Hold For "? [confirm]"
- Transmit "^M"
- ;Hold For "#"
- ; String omitted because it might change:
- ; Hold For "3"
- ;Hold For "#"
- Transmit "lo^M"
- Hold For "^J^M^J^J"
- ;Remove the GOTO statement if you don't need to select additional routers
- GOTO
Copy to Clipboard
[ Last edited by seedfox at 2008-7-8 10:00 ] |