I am creating a simple aspect script in Procomm to find the installer password to an Mitel SX200 system. The installer is out of business and in short of paying to relicense I want to just submit numeric access codes into the system. I created a for next loop and add 1 to the number, but I can't get it to send to serial port using transmit. I can display the variable on the screen but can't send it out to the serial port. This is what I have:
proc main
integer Num ; Integer variable to increment.
for Num = 998 upto 9999 by 1 ; Init variable and define loop.
transmit "^M"
waitfor "SELECT A TERMINAL TYPE : "
transmit "1^M"
waitfor "SELECT AN APPLICATION ( OR QUIT TO START OVER ) : "
transmit "2^M"
waitfor "ENTER USERNAME : "
transmit "INSTALLER^M"
waitfor "ENTER PASSWORD : "
usermsg "Num = %d" Num
transmit "Num"
waitfor "Authorization failure"
endfor
endproc
It would also be nice that if it is successful that it logs the password or at least stops. That is why the
waitfor "Authorization failure" is there.
Any help is greatly appreciated.
proc main
integer Num ; Integer variable to increment.
for Num = 998 upto 9999 by 1 ; Init variable and define loop.
transmit "^M"
waitfor "SELECT A TERMINAL TYPE : "
transmit "1^M"
waitfor "SELECT AN APPLICATION ( OR QUIT TO START OVER ) : "
transmit "2^M"
waitfor "ENTER USERNAME : "
transmit "INSTALLER^M"
waitfor "ENTER PASSWORD : "
usermsg "Num = %d" Num
transmit "Num"
waitfor "Authorization failure"
endfor
endproc
It would also be nice that if it is successful that it logs the password or at least stops. That is why the
waitfor "Authorization failure" is there.
Any help is greatly appreciated.