Sign in to follow this  
Followers 0
n9mfk9

how to fake a telnet server?

8 posts in this topic

#1 ·  Posted (edited)

hello I am in need of some help for a script I need to write I have a telnet program on my PC that I need to write a script for what I would like the script to be a local server on the same PC as the telnet program

so that I can send data to the telnet with the script, but the telnet program thinks it's coming from a server thanks for any help Beau

here is some code i have started with

;SERVER!! Start Me First !!!!!!!!!!!!!!!

$g_IP = "127.0.0.1"

; Start The TCP Services

;==============================================

TCPStartUp()

; Create a Listening "SOCKET"

;==============================================

$MainSocket = TCPListen($g_IP, 23, 100 )

If $MainSocket = -1 Then Exit

; look for client connection

;--------------------

While 1

$ConnectedSocket = TCPAccept( $MainSocket)

If $ConnectedSocket >= 0 Then

TCPSend($MainSocket,123)

msgbox(0,"","my server - Client Connected")

;Exit

EndIf

Wend

itLet my telnet program connect to the script by my question is how do i have the script sed the data to the telnet prrogram thanks beau

Edited by n9mfk9

Share this post


Link to post
Share on other sites



1. what are you trying to do?????

2. I do not understand you, you havent put a dot in you're whole text.

3. what is telnet

Share this post


Link to post
Share on other sites

1. what are you trying to do?????

2. I do not understand you, you havent put a dot in you're whole text.

3. what is telnet

1. I think hes trying to set up a telnet server on the telnet port 23

2. No he didnt

3. Start > Run > Telnet


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

1. I think hes trying to set up a telnet server on the telnet port 23

2. No he didnt

3. Start > Run > Telnet

my question is how do i use tcpsend on a TCPListen pr to sed dat as soon as someting connecteds

Share this post


Link to post
Share on other sites

Follow the IP samples in the help file (The simple chat sample) Then implement the telnet protocol RFC xxx?s And your all set :lmao:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0