automating telnet login

From: henri (henri_yudha_at_bca.co.id)
Date: 05/31/04

  • Next message: McKinlay, Ken: "SUMMARY: Limiting IP addresses in chroot environment"
    To: <sunmanagers@sunmanagers.org>
    Date: Mon, 31 May 2004 15:25:12 +0700
    
    

    Hi gurus ..

    I'm try to automating telnet like this :

    %telnet 10.222.222.22 99999
    telnet> Trying 10.222.222.22...
    Connected to 10.222.222.22.
    Escape character is '^]'.

    Available Services:

    ASCII EXIT

    And i must to type the ASCII manually.

    So i've made the script scriptTelnet.sh :

    #!/bin/sh
    host=10.222.222.22
    port=99999
    ASCII=ASCII

    echo open ${host} ${port}
    sleep 3
    echo ${ASCII}
    sleep 3

    ------------------------
    When i run the script :

    % ./scriptTelnet | telnet > Log.txt

    It's only back to prompt with Connection closed by foreign host.
    What is the problem ? and how to fix it ?
    Because i want to use the Log.txt file for logger.

    Best regards,
    Henri
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: McKinlay, Ken: "SUMMARY: Limiting IP addresses in chroot environment"

    Relevant Pages

    • Re: rasf1 readership?
      ... connected to BITNET only, although we could email internet addresses via ... My first home net connection was via "slirp" I think, ... TCP/IP proxy in the terminal session, ... converted to ASCII, printed to the terminal screen, read by a client ...
      (rec.autos.sport.f1)
    • Re: Wierd non-http port 80 daemon?
      ... It accepts a certain number of chars before it closes the connection. ... challenge/response procedure to me... ... calculate the answer to the "random" ASCII code it returns... ... We provide Ethical Hacking, Advanced Ethical Hacking, Intrusion Prevention, ...
      (Security-Basics)
    • Re: huawei conection, pppd died 8-bit not clean
      ... Connection terminated. ... You have changed something is the mode of operation of umtsmon, ... computer, then the Password: prompt, and so on. ... for an ASCII "Login:" prompt. ...
      (alt.os.linux.suse)
    • Re: Seeking VB.Net Proxy examples
      ... it does not seem to pass through pictures and throws an error that says "An existing connection was forcibly closed by the remote host". ... That code blindly treats any content as ASCII text, thus destroying everything that isn't ASCII text. ...
      (microsoft.public.dotnet.general)