Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Sending more than a single username and password' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Sending more than a single username and password
Authored by: sloetguy on Oct 16, '03 12:05:53PM

This will prompt the user for the final password. Is this more like what you are looking for?

I wrote this for a company using Compuserve with a secure tunnel back to their LAN. Hence the xyzpdq reference....

@ANSWER
@HANGUP
EXIT 0
!
@ORIGINATE
!
CHRDELAY 1
!
@LABEL 10
PAUSE 5
WRITE "\13"
!
@LABEL 11
MATCHCLR
MATCHSTR 1 12 "Host Name: "
MATCHREAD 300
NOTE "Connect script couldn't match \34 Host Name: \34" 3
JUMP 99
!
!(Hard coded "xyzpdq" since this is for xyzpdq use only with the xyz system)
@LABEL 12
PAUSE 1
note "Sending Host Id..."
WRITE "xyzpdq\13"
!
@LABEL 13
MATCHCLR
MATCHSTR 1 14 "UIC: "
MATCHREAD 300
NOTE "Connect script couldn't match \34UIC: \34" 3
JUMP 99
!
!(This sends whatever is in the "username" field in remote access)
@LABEL 14
PAUSE 1
Note "Sending Compuserve User-ID..."
WRITE "^11\13"
!
@LABEL 20
MATCHCLR
MATCHSTR 1 25 "Password: "
MATCHREAD 300
NOTE "Connect script couldn't match \34Password: \34" 3
JUMP 99
!
!(This sends whatever is in the "password" field in remote access)
@LABEL 25
PAUSE 1
Note "Sending Compuserve Password...
WRITE "^12\13"
!
@LABEL 30
MATCHCLR
MATCHSTR 1 35 "Username: "
MATCHREAD 300
NOTE "Connect script couldn't match \34Username: \34" 3
JUMP 99
!
!
!If you comment out the following section (35) and replace the write command with
!
!WRITE "USERNAME\13"
!"USERNAME\13" should be your first initial last name\13 IE: "juser@abc/13"
!
!You will then be able to skip that dialog box. You must keep the security server pin as an ask !everytime for security measures.
!
@LABEL 35
PAUSE 1
ASK 1 "What is your Security Server User ID" [98]
!
@LABEL 40
PAUSE 1
Note "Sending abc User-ID..."
WRITE "^*\13"
!
@LABEL 45
MATCHCLR
MATCHSTR 1 50 "Password: "
MATCHREAD 300
NOTE "Connect script couldn't match \34abc Password: \34" 3
JUMP 99
!
@LABEL 50
PAUSE 1
ASK 1 "What is your Security Server Pin?" [98]
!
!
@LABEL 55
PAUSE 1
Note "Sending abc Password..."
WRITE "^*\13"

@LABEL 90
PAUSE 1
EXIT 0
!
@LABEL 98
PAUSE 60
EXIT -6002 "You must enter a password"
!
@LABEL 99
PAUSE 60
EXIT -6002 "Connection script failed."



[ Reply to This | # ]