n9mfk9 Posted October 12, 2006 Share Posted October 12, 2006 (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 October 12, 2006 by n9mfk9 Link to comment Share on other sites More sharing options...
miomaz Posted October 12, 2006 Share Posted October 12, 2006 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 Link to comment Share on other sites More sharing options...
AzKay Posted October 12, 2006 Share Posted October 12, 2006 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 telnet1. I think hes trying to set up a telnet server on the telnet port 232. No he didnt3. Start > Run > Telnet # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
n9mfk9 Posted October 12, 2006 Author Share Posted October 12, 2006 1. I think hes trying to set up a telnet server on the telnet port 232. No he didnt3. Start > Run > Telnetmy question is how do i use tcpsend on a TCPListen pr to sed dat as soon as someting connecteds Link to comment Share on other sites More sharing options...
Uten Posted October 13, 2006 Share Posted October 13, 2006 Follow the IP samples in the help file (The simple chat sample) Then implement the telnet protocol RFC xxx?s And your all set Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
dnsi Posted October 14, 2006 Share Posted October 14, 2006 Why are you trying to fake a telinet??? My Programs:Flip-Flop File Encryption SysyemMULTIPLAYER-SOCKETSERVERHide An Archive In A Picture Link to comment Share on other sites More sharing options...
dnsi Posted October 14, 2006 Share Posted October 14, 2006 THis is using a TCP service. Telinet i think is UDP. My Programs:Flip-Flop File Encryption SysyemMULTIPLAYER-SOCKETSERVERHide An Archive In A Picture Link to comment Share on other sites More sharing options...
cppman Posted October 14, 2006 Share Posted October 14, 2006 (edited) fake a telnet server?All you need to do is a run a normal "TCP" server, and have someone connect. You just need to research telnet and how it communicates with clients.telnet is tcp: http://www.protocols.com/pbook/tcpip9.htm#TELNET Edited October 14, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now