Jump to content

TCPconnect


Recommended Posts

TCPconnect Success: Returns main socket identifier , So once i am connected to server how do i know what does it want from me in order to login ?

For example i want to connect to game CRYSIS console.

Knowing login information password IP and port i am not sure how to approach the server.

Or if i was to connect to my website FTP, FTP requesting some information from me too right ? so if TCPConnect returns nothing but socket, then how do i find what server wants and if connection accepted ?

just point me to the right direction

Thanks

(want to make my own remote server administration for CRYSIS and maybe other games) :D

Link to comment
Share on other sites

No one wants to reply ?

:D

I understand that this leads to security issues and possibly me hacking someone but check this out.

I host many gaming servers and website and i want to code tools for personal use, tools like Crysis dedicated server manager (something other then RCONNECT which stoped its development at this point and is way outdated and full of bugs)

Some other games i need custom tools built that no one will do for me, games like COD4 Unreal Tournament 2004 and 3 and more.

Please someone point me to the right direction

Thanks

Link to comment
Share on other sites

what i am trying to do is to login into the console of remote server

here is what i came up with

TCPStartup()
$con = TCPConnect ('IP','port')
TCPAccept ($con)
$listen= TCPListen ('same ip','same port')
$send = TCPSend ($con, 'login and password (if i was typing it into console')
$recv = TCPRecv ($con,'1000')
msgbox (0,'con',$con)
msgbox (0,'listen',$listen)
msgbox (0,'send',$send)
msgbox (0,'recive',$recv)

As for hamachi

I had a guy asking me about my BMW the other day.

He asks: Isn't it expensive to maintain like oil change or repairs/parts?

I say: If you do it your self and never ask dealer for help then its chipper then FORD

Edited by lessstoopid
Link to comment
Share on other sites

One last question

Please answer :D

$IP = "my FTP server's IP address"
$Port = "21"
$start = TCPStartup()
$connect = TCPConnect ($IP,$Port)
$HELP = TCPSend ($connect,"HELP")
$HELP_RECV = TCPRecv ($connect,'1000',1)
MsgBox(0,'','Help returns with '& $HELP_RECV)
Sleep ('1000')
TCPShutdown()

Here i am trying to figure out why doesn't my FTP server understands HELP command that suppose to return list of supported commands.

I tried to send login instead of Help as: TCPSend ($connect,"USER username PASS mypass") but this wont log me in

Looking into real time FTP log window i can see that i am connected but not sending any commands at all. ;):D

How do i send commands to FTP server ? ;)

Please help :D

Thanks :P

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...