;***************************************************
;* This file automates password changes on Lucent *
;* 5ESS and can be modified for other unix based *
;* systems that require you to change your password*
;* every ? days. You can opt to keep your current *
;* Password or change it. *
;***************************************************
integer status
string CURPASS
string NEWPASS
integer QUES = 6
proc main
dialogbox 0 7 17 288 63 2 "Password changer."
text 1 10 7 94 11 "Enter your current password." left
editbox 2 115 7 54 11 CURPASS MASKED
radiogroup 3 QUES
radiobutton 6 187 7 42 11 "Keep it?"
radiobutton 7 187 28 49 11 "Change it?"
radiobutton 8 238 7 42 11 "Forced?"
radiobutton 9 238 28 42 11 "Forced?"
endgroup
text 4 10 28 80 11 "Change password?" left
editbox 5 115 28 54 11 NEWPASS MASKED
pushbutton 10 187 42 40 13 "OK" OK DEFAULT
pushbutton 11 238 42 40 13 "Cancel" CANCEL
enddialog
dlgevent 0 status
while ! ((status == 10)||(status == 11))
dlgevent 0 status
endwhile
if status == 11
exit
endif
if QUES == 6
transmit "120^M"
pause 2
sendvkey 0x72
pause 2
strfmt s0 "CHGSSWD:OLD=`"%s`",NEW=`"t31c0v`";" CURPASS
transmit s0
waitfor "<"
pause 2
transmit "CHGSSWD:OLD=`"t31c0v`",NEW=`"sw1mme`";"
waitfor "<"
pause 2
transmit "CHGSSWD:OLD=`"sw1mme`",NEW=`"qm1c3d`";"
waitfor "<"
pause 2
strfmt s0 "CHGSSWD:OLD=`"qm1c3d`",NEW=`"%s`";" CURPASS
transmit s0
endif
if QUES == 7
transmit "120^M"
pause 2
sendvkey 0x72
pause 2
strfmt s0 "CHGSSWD:OLD=`"%s`",NEW=`"t31c0v`";" CURPASS
transmit s0
waitfor "<"
pause 2
transmit "CHGSSWD:OLD=`"t31c0v`",NEW=`"sw1mme`";"
waitfor "<"
pause 2
transmit "CHGSSWD:OLD=`"sw1mme`",NEW=`"qm1c3d`";"
waitfor "<"
pause 2
strfmt s0 "CHGSSWD:OLD=`"qm1c3d`",NEW=`"%s`";" NEWPASS
transmit s0
endif
if QUES == 8
strfmt s0 "%s^M" CURPASS
transmit s0
waitfor "Enter new password:"
transmit "t3lc0v^M"
waitfor "Re-enter new password:"
transmit "t3lc0v^M"
waitfor "OK"
pause 10
transmit "120^M"
pause 2
sendvkey 0x72
pause 2
transmit "CHGSSWD:OLD=`"t3lc0v`",NEW=`"sw1mme`";"
waitfor "<"
pause 2
transmit "CHGSSWD:OLD=`"sw1mme`",NEW=`"qm1c3d`";"
waitfor "<"
pause 2
strfmt s0 "CHGSSWD:OLD=`"qm1c3d`",NEW=`"%s`";" CURPASS
transmit s0
endif
if QUES == 9
strfmt s0 "%s^M" CURPASS
transmit s0
waitfor "Enter new password:"
transmit "t3lc0v^M"
waitfor "Re-enter new password:"
transmit "t3lc0v^M"
waitfor "OK"
pause 10
transmit "120^M"
pause 2
sendvkey 0x72
pause 2
transmit "CHGSSWD:OLD=`"t3lc0v`",NEW=`"sw1mme`";"
waitfor "<"
pause 2
transmit "CHGSSWD:OLD=`"sw1mme`",NEW=`"qm1c3d`";"
waitfor "<"
pause 2
strfmt s0 "CHGSSWD:OLD=`"qm1c3d`",NEW=`"%s`";" NEWPASS
transmit s0
endif
Endproc
;* This file automates password changes on Lucent *
;* 5ESS and can be modified for other unix based *
;* systems that require you to change your password*
;* every ? days. You can opt to keep your current *
;* Password or change it. *
;***************************************************
integer status
string CURPASS
string NEWPASS
integer QUES = 6
proc main
dialogbox 0 7 17 288 63 2 "Password changer."
text 1 10 7 94 11 "Enter your current password." left
editbox 2 115 7 54 11 CURPASS MASKED
radiogroup 3 QUES
radiobutton 6 187 7 42 11 "Keep it?"
radiobutton 7 187 28 49 11 "Change it?"
radiobutton 8 238 7 42 11 "Forced?"
radiobutton 9 238 28 42 11 "Forced?"
endgroup
text 4 10 28 80 11 "Change password?" left
editbox 5 115 28 54 11 NEWPASS MASKED
pushbutton 10 187 42 40 13 "OK" OK DEFAULT
pushbutton 11 238 42 40 13 "Cancel" CANCEL
enddialog
dlgevent 0 status
while ! ((status == 10)||(status == 11))
dlgevent 0 status
endwhile
if status == 11
exit
endif
if QUES == 6
transmit "120^M"
pause 2
sendvkey 0x72
pause 2
strfmt s0 "CHGSSWD:OLD=`"%s`",NEW=`"t31c0v`";" CURPASS
transmit s0
waitfor "<"
pause 2
transmit "CHGSSWD:OLD=`"t31c0v`",NEW=`"sw1mme`";"
waitfor "<"
pause 2
transmit "CHGSSWD:OLD=`"sw1mme`",NEW=`"qm1c3d`";"
waitfor "<"
pause 2
strfmt s0 "CHGSSWD:OLD=`"qm1c3d`",NEW=`"%s`";" CURPASS
transmit s0
endif
if QUES == 7
transmit "120^M"
pause 2
sendvkey 0x72
pause 2
strfmt s0 "CHGSSWD:OLD=`"%s`",NEW=`"t31c0v`";" CURPASS
transmit s0
waitfor "<"
pause 2
transmit "CHGSSWD:OLD=`"t31c0v`",NEW=`"sw1mme`";"
waitfor "<"
pause 2
transmit "CHGSSWD:OLD=`"sw1mme`",NEW=`"qm1c3d`";"
waitfor "<"
pause 2
strfmt s0 "CHGSSWD:OLD=`"qm1c3d`",NEW=`"%s`";" NEWPASS
transmit s0
endif
if QUES == 8
strfmt s0 "%s^M" CURPASS
transmit s0
waitfor "Enter new password:"
transmit "t3lc0v^M"
waitfor "Re-enter new password:"
transmit "t3lc0v^M"
waitfor "OK"
pause 10
transmit "120^M"
pause 2
sendvkey 0x72
pause 2
transmit "CHGSSWD:OLD=`"t3lc0v`",NEW=`"sw1mme`";"
waitfor "<"
pause 2
transmit "CHGSSWD:OLD=`"sw1mme`",NEW=`"qm1c3d`";"
waitfor "<"
pause 2
strfmt s0 "CHGSSWD:OLD=`"qm1c3d`",NEW=`"%s`";" CURPASS
transmit s0
endif
if QUES == 9
strfmt s0 "%s^M" CURPASS
transmit s0
waitfor "Enter new password:"
transmit "t3lc0v^M"
waitfor "Re-enter new password:"
transmit "t3lc0v^M"
waitfor "OK"
pause 10
transmit "120^M"
pause 2
sendvkey 0x72
pause 2
transmit "CHGSSWD:OLD=`"t3lc0v`",NEW=`"sw1mme`";"
waitfor "<"
pause 2
transmit "CHGSSWD:OLD=`"sw1mme`",NEW=`"qm1c3d`";"
waitfor "<"
pause 2
strfmt s0 "CHGSSWD:OLD=`"qm1c3d`",NEW=`"%s`";" NEWPASS
transmit s0
endif
Endproc