Go to Forum New

Cisco Password Changer

  1. From Reflection toolbar select Script-> Edit Script->
  2. New Script and paste this script in. If you only
  3. wan't it to run once, simply delete the GOTO statement
  4. at the end. Reflection gives you the ability to add a
  5. button to the toolbar for your new script.



  6. ; Reflection Cisco Password Changer
  7. Set LITERAL-ESCAPE "\\"
  8. :
  9. Hold for "Password:"
  10. ; Enter a password. Don't flash it on status line
  11. Let V0 = value(QUIET-COMMAND)
  12. Set QUIET-COMMAND yes
  13. ;Your existing first (vty) password
  14. Let V1 = "vtypassword"
  15. Transmit V1 & "^M"
  16. Let V1 = ""
  17. Set QUIET-COMMAND $0
  18. ; String omitted because it might change:
  19. ; Hold For "3"
  20. Hold For ">"
  21. Transmit "ena^M"
  22. Hold For "^JPassword: "
  23. ; Enter a password. Don't flash it on status line
  24. Let V0 = value(QUIET-COMMAND)
  25. Set QUIET-COMMAND yes
  26. ;Your existing enable password
  27. Let V1 = "enablesecretpassword"
  28. Transmit V1 & "^M"
  29. Let V1 = ""
  30. Set QUIET-COMMAND $0
  31. Hold For "^J"
  32. ; String omitted because it might change:
  33. ; Hold For "3"
  34. Hold For "#"
  35. Transmit "conf t^M"
  36. Hold For "#"
  37. ; String omitted because it might change:
  38. ; Hold For "3"
  39. ;Hold For "(config)#"
  40. ;Substitue newpassword below for your own new enable password
  41. Transmit "ena secret newpassword^M"
  42. Hold For "#"
  43. ; String omitted because it might change:
  44. ; Hold For "3"
  45. ;Hold For "(config)#"
  46. Transmit "line vty 0 4^M"
  47. Hold For "#"
  48. ; String omitted because it might change:
  49. ; Hold For "3"
  50. ;Hold For "(config-line)#"
  51. ;Substitute newvtypassword below for your own new vty password
  52. Transmit "pass newvtypassword^M"
  53. ;Hold For "#"
  54. ; String omitted because it might change:
  55. ; Hold For "3"
  56. ;Hold For "(config-line)#"
  57. Transmit "^Z"
  58. ;Hold For "#"
  59. ; String omitted because it might change:
  60. ; Hold For "3"
  61. ;Hold For "#"
  62. Transmit "write^M"
  63. Hold For "#"
  64. ; String omitted because it might change:
  65. ; Hold For "3"
  66. Hold For "#"
  67. Transmit "write net^M"
  68. Hold For "^JRemote host []? "
  69. ;The IP address of your TFTP server
  70. Transmit "1.1.1.1^M"
  71. Hold For "^JName of configuration file to write ["
  72. ; String omitted because it might change:
  73. ; Hold For "3"
  74. Hold For "-confg]? "
  75. Transmit "^M"
  76. ;Hold For "^JWrite file -confg"
  77. ; String omitted because it might change:
  78. ; Hold For "3"
  79. Hold For "-confg on host "
  80. ; String omitted because it might change:
  81. ;The IP address of your TFTP server
  82. ; Hold For "1.1.1.1"
  83. ;Hold For "? [confirm]"
  84. Transmit "^M"
  85. ;Hold For "#"
  86. ; String omitted because it might change:
  87. ; Hold For "3"
  88. ;Hold For "#"
  89. Transmit "lo^M"
  90. Hold For "^J^M^J^J"
  91. ;Remove the GOTO statement if you don't need to select additional routers
  92. GOTO
Copy to Clipboard



[ Last edited by seedfox at 2008-7-8 10:00 ]
The safer, easier  way to  pass IT cert...Q&A
Cisco|Microsoft|Oracle|CompTIA|Citrix|EMC|Checkpoint|ALL...

Go to Forum