Jump to content
Sign in to follow this  
acer20006

can use TCP to send packets ????

Recommended Posts

acer20006

hi all

i wondering if i can use TCP function to send packets like -- 07 00 F0 70 88 2A 01 04 2B 27 00 00 00 / 0B 00 F0 70 88 8B 01 04 E8 27 00 00 01 AB F9 9E -- to server ??!

and if the answer is " yes " > how to male it _ just using the TCP(send/received .. etc )function as the help said :/

..... and if the answer is " no " what's is ur suggestion to make it work well !!!!!

>>>> thx foe help XD

Share this post


Link to post
Share on other sites
acer20006

how to male it _ just using the TCP(send/received .. etc )function as the help said :/

Look in the helpfile for TCP/IP functions.

mmmmm ya i saw the helpfile before _ but i didnt find any thing about packets

>-----------------------------------------------------------------------------------------------------------------<

all i need is to know how to send specific packets to server(game server) by AUTOIT to make specific action ...

i can use WPE to send back the packets that i get (what i can do with the packets at this form?_nothing) _ so my idea

is to make a simple script with input box can read the input_packet at it then send it server

>----------------------------------------------------thx---------------------------------------------------------<

Edited by acer20006

Share this post


Link to post
Share on other sites
acer20006

thx for answer_ i made a search before i make a post _ i know how to create server & client & all the other thing which full allover the forum & no one talk about sending packets _ or how to send it directly to sever :)

>>> my real problem is with packets how to send it___ i will explain it at easy way

___ my game called " silkroad online(Korean version)" & i use WPE to get the packets which i send it by button ( buff / skill / ... etc)

the packets came like this " 0B 00 F0 70 88 8B 01 04 E8 27 00 00 01 AB F9 9E" _ all what i wann to know is how to send this packets back by autoit NOT wpe to the server

which code i have to use ????????

Edited by acer20006

Share this post


Link to post
Share on other sites
jvanegmond

I am a fan of WPE too.

http://www.autoitscript.com/forum/index.php?showtopic=44240&view=findpost&p=329728

http://www.autoitscript.com/forum/index.php?showtopic=95007

Share this post


Link to post
Share on other sites
acer20006

I am a fan of WPE too.

http://www.autoitscript.com/forum/index.php?showtopic=44240&view=findpost&p=329728

http://www.autoitscript.com/forum/index.php?showtopic=95007

:)

im fan of WPE too

-----------------------

you are the man _ i will try it now (i hope it work XD)

ty for help Manadar

& Volly

Edited by acer20006

Share this post


Link to post
Share on other sites
acer20006

mmmmm _ i have some problems at sending packets :)

i made this simple code

$Hex = "0B 00 F0 70 08 31 01 04 E8 27 00 00 01 0B 83 F0 01 "
 $g_IP = "121.254.153.33"
;~ ; Start The TCP Services :
;============================
TCPStartUp()
;~ ; Connect to "SOCKET" :
;=========================
$socket = TCPConnect( $g_IP, 15779 )
If $socket = -1 Then MsgBox (0,"TCP Services","Can't make connection")
TCPSend($socket,$Hex)
;~ ; Shutdown The TCP Services :
;===============================
TCPShutdown ( )

1> but this code didnt make any action at the client or server

2> the checksum get changed over and over _ how can i calculate it at my script to prevent the change ?

0B 00 F0 70 08 31 01 04 E8 27 00 00 01 0B 83 F0 01

0B 00 F0 70 56 91 01 04 E8 27 00 00 01 0B 83 F0 01

this the same packet but this a different checksum _ i can't even send the packet through WPE ( coz of checksum )

now, what i have to do ;) >>>>>>>>>>?

Share this post


Link to post
Share on other sites
jvanegmond

You have to figure out how the packet is calculated. This is not an AutoIt related question so we can't really help you there.

Share this post


Link to post
Share on other sites
acer20006

You have to figure out how the packet is calculated. This is not an AutoIt related question so we can't really help you there.

mmmm so there's no other way to find solution for checksum here (i have to start searching again :) )

>>>> any way _ Manadar how about the code _ is it good ?? or need to modify ??

Share this post


Link to post
Share on other sites
acer20006

You need to modify.

You forgot this part which converts the string into a packet:

$Str = StringSplit($Hex," ")

$Hex = ''
For $x = 1 to $Str[0]
    If $Str[$x] Then
        $Hex &= Chr((Dec($Str[$x])))
    EndIf
Next

thx for replay _ i will make search about checksum and comeback later :)

Share this post


Link to post
Share on other sites
Xand3r

thx for replay _ i will make search about checksum and comeback later :)

$hex="07 00 F0 70 88 2A 01 04 2B 27 00 00 00 / 0B 00 F0 70 88 8B 01 04 E8 27 00 00 01 AB F9 9E"

$binary="0x"&stringreplace($hex," " , "")

tcpsend($mysock,$binary)


Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro

Share this post


Link to post
Share on other sites
acer20006

$hex="07 00 F0 70 88 2A 01 04 2B 27 00 00 00 / 0B 00 F0 70 88 8B 01 04 E8 27 00 00 01 AB F9 9E"

$binary="0x"&stringreplace($hex," " , "")

tcpsend($mysock,$binary)

are i have to add this code to my script to send packets ?? _ i didnt get it yet :S sry

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  

×