Jump to content

how to fake a telnet server?


n9mfk9
 Share

Recommended Posts

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
Link to comment
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- #
Link to comment
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:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...