Results 1 to 6 of 6

Thread: get on telnet by using telnet

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Posts
    1

    Question get on telnet by using telnet

    Hello

    i would like to know if is it possible to make a vb aplication that can perform curtain task on a unix machine.

    these task would be character capturing after i give a unix command.
    But the first problem: is how do i set up a telnet session in my vb program.

    can anyone help me with this problem, or is there a sample program from vb that can peform task like that.

    Please help me, i'm a newbie

    niels

  2. #2
    matthewralston
    Guest
    Use the winsock control to connect to a telnet server on port 23.

  3. #3
    Aurilus
    Guest
    I am having a similar problem, but I am trying to connect to a linux machine. I connect to port 23, and using telnet it pops up a message saying 'welcome, blah blah blah, don't do illegal stuff.' and prompts for a username/password.

    What I get, in ASCII is "?8??C" or "ÿýÿý ÿý#ÿý'" depending on what type of variable I put the data from the Winsock.GetData() function into. (First is variant, second is string - I thing variant is the right one because as far as I know it is talking back in unicode and the variant type converts it to a 'proper' string for me.)

    Any ideas?

    Thanks,
    Matt

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    You're connecting okay, you need to look up documentation on the telnet protocol (or someone might have a telnet with Winsock VB tutorial). I believe the way it works is that before you get the logon screen, the telnet server and telnet client negotiate standards, the type on screen, etc.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  5. #5
    matthewralston
    Guest
    Not when I've done it...unless the winsock control did it for me... are you sure that you're using the getdata method of the control properly and that you're sticking it into an appropriate type of and size variable?

    Post your code so we can do a little debugging of our own.

  6. #6
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    been there!

    the telnet protocol is very complicated....

    Someone sent this to me a while ago.

    Its a terminal program written in VB and supports telnet.



    once the telnet handshake is complete then the data starts flowing in what we would expect "clear text"
    Kurt Simons
    [I know I'm a hack but my clients don't!]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width