acer20006 Posted November 14, 2009 Share Posted November 14, 2009 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 Link to comment Share on other sites More sharing options...
Bert Posted November 14, 2009 Share Posted November 14, 2009 Look in the helpfile for TCP/IP functions. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
acer20006 Posted November 15, 2009 Author Share Posted November 15, 2009 (edited) 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 November 15, 2009 by acer20006 Link to comment Share on other sites More sharing options...
Bert Posted November 15, 2009 Share Posted November 15, 2009 outside the functions listed in the help file, you would need to search the forum. What have you found there? If I had more of just what you had in mind, I may be able to steer you to what you need. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
acer20006 Posted November 15, 2009 Author Share Posted November 15, 2009 (edited) 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 November 15, 2009 by acer20006 Link to comment Share on other sites More sharing options...
jvanegmond Posted November 15, 2009 Share Posted November 15, 2009 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 github.com/jvanegmond Link to comment Share on other sites More sharing options...
acer20006 Posted November 15, 2009 Author Share Posted November 15, 2009 (edited) I am a fan of WPE too.http://www.autoitscript.com/forum/index.php?showtopic=44240&view=findpost&p=329728http://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 November 15, 2009 by acer20006 Link to comment Share on other sites More sharing options...
acer20006 Posted November 17, 2009 Author Share Posted November 17, 2009 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 >>>>>>>>>>? Link to comment Share on other sites More sharing options...
jvanegmond Posted November 17, 2009 Share Posted November 17, 2009 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. github.com/jvanegmond Link to comment Share on other sites More sharing options...
acer20006 Posted November 17, 2009 Author Share Posted November 17, 2009 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 ?? Link to comment Share on other sites More sharing options...
jvanegmond Posted November 17, 2009 Share Posted November 17, 2009 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 github.com/jvanegmond Link to comment Share on other sites More sharing options...
acer20006 Posted November 17, 2009 Author Share Posted November 17, 2009 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 Link to comment Share on other sites More sharing options...
Xand3r Posted November 17, 2009 Share Posted November 17, 2009 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 Link to comment Share on other sites More sharing options...
acer20006 Posted November 18, 2009 Author Share Posted November 18, 2009 $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 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