I am setting up a login script (see at end of email) for my masqued adsl 
firewall box that doesn't require using a web browser and am having 
problems with getting SSLeay to work.

Hmm... I can't seem to get SSleay to compile on my RH5.2 system. I've
tried both ver's 0.6.6b and 0.9.0b and get the same kinds of errors all
the way through, I follow the instructions as they are written in the
install file and continually get errors like file or command not found,
when I do the ./Configure 'system type' I have totype sh fist to get it to
run and the it says command not found for all the items in question, later
on during the make clean and make steps I see a  make error #1 fly by a
few times and when I get to make install, near the end it says copying
files issl.a (something like that) and chmod issl.a and in both cases of
this file and a few others it says file not found.  

Being I haven't done any programming in 10 years I am bit at a loss of
where to go next...


Login Script designed by member of the Vancouver BC LUG

    #!/bin/sh
    # requires SSLeay: ftp://ftp.psy.uq.oz.au/pub/Crypto/SSL/
    
    # From: Shane Wegner <[EMAIL PROTECTED]>
    # Subject: Shell script for ssm
    # Date: 25 Oct 1998 23:20:47 -0800
    # Cc: Michael Illingby <[EMAIL PROTECTED]>
    # To: "Vancouver Linux User's Group" <[EMAIL PROTECTED]>
    # 
    # Hi all,
    # 
    # Ok many thanks for the tips with the ADSL login.  I wrote 
    this script with
    # the assistance of this mailing list and the friendly lynx 
    trace log.  With
    # some modification, it'll log you in to ssm.bconnected.net.
    # 
    # It turns out that following the initial redirection from
    # ssm.bconnected.net:443, it redirects yet again to a CGI 
    script with your
    # name and isp.  Interesting actually.  Anyways, I've 
    included my ADSL info
    # in the script for ease of use so modify it for your system 
    and it should
    # work.
    # 
    # -- 
    # Shane Wegner: [EMAIL PROTECTED]
    # Tel: 604-930-0530
    # Sysadmin, Continuum Systems: http://www.cm.nu
    # Personal website: http://www.cm.nu/~shane
    # Celine Dion Fan site: http://www.celine.nu/
    # PGP key: http://www.cm.nu/~shane/pgp.txt
    # ICQ UIN: 15706546
    
    # ssm.sh
    # Script to login to the ssm.bconnected.net server
    # Written by Shane Wegner <[EMAIL PROTECTED]> Oct. 1998
    # Thanks to the folks at vanlug for the suggestions
    #
    # Program defines, adjust as needed.
    # We assume the user has no path incase the rc scripts don't 
    set it.
    echo='/bin/echo'
    sleep='/usr/bin/sleep'
    wc='/usr/bin/wc'
    telnet='/bin/telnet'
    sleeptime=3 # amount of time to sleep before we send data to 
    the server.
    s_client='/usr/local/ssl/bin/s_client'
    
    # User defines, you must change these.
    userid='sidehack'
    password='jaMcAke5'
    fname='nene' # Your first name
    lname='romanova' # Your last name
    provider='tokyonet' # Your ADSL provider
    provid='sYMPATICO%20bc' # Not sure why it requires this
    
    # You shouldn't need to modify anything below this line.
    formdata="userId=${userid}&password=${password}"
    formlen=`$echo -n "$formdata"|$wc --bytes`
    ($echo "POST /login.loginproc HTTP/1.0
    Host: ssm.bconnected.net
    Accept-Language: en
    Referer: https://ssm.bconnected.net/
    Content-type: application/x-www-form-urlencoded
    Content-length: $formlen
    
    $formdata
    ";$sleep $sleeptime)|$s_client -connect 
    ssm.bconnected.net:443
    
    # The previous request returns a cookie with a location
    # Now, we follow that location
    ($echo "GET /SD/SDWBUI/cgi-bin/SDWB_UserDbAndWelcome.cgi 
    HTTP/1.0
    Host: ssm.bconnected.net
    Accept-Language: en
    Negotiate: trans
    Referer: https://ssm.bconnected.net/
    Cookie2: \$Version=\"1\"
    Cookie: SD_AuthorizedTo=$userid
    
    ";$sleep $sleeptime)|$s_client -connect 
    ssm.bconnected.net:443
    
    # That returns another redirection but is user specific.
    # This follows that redirection and puts in data from above 
    defines.
    ($echo "GET 
    /setup_host.cgi?applicationProvider=${provider}%20-
    %20${provid}&subscriber=${fname}%20${lname},${userid} 
    HTTP/1.0
    Host: ssm.bconnected.net
    Accept-Language: en
    Negotiate: trans
    Referer: https://ssm.bconnected.net/
    
    ";$sleep $sleeptime)|$telnet ssm.bconnected.net 80
    
    # EOF
    


Harondel J. Sibble 
Sibble Computer Consulting
Creating solutions for the small business and home computer user.
[EMAIL PROTECTED] (pgp enabled)    http://www.pdscc.com
(604) 739-3709 (voice/fax)      (604) 686-2253 (pager)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]

Reply via email to