Sign in to follow this  
Followers 0
microbious

TCPconnect

10 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

I think TCPListen will help you tell if it is connected. That is about all I can tell you.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

Thanks thats more than nothing at all :D

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

what ever man am not here to argue about something, am here for help with AUTOIT not for hamachi or any other none related software.

I need help to make my own thats it

Thanks

Share this post


Link to post
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

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