Register for your free account! | Forgot your password?

You last visited: Today at 11:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Simple Proxy?

Discussion on Simple Proxy? within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2008
Posts: 105
Received Thanks: 31
Simple Proxy?

Hi im Python coder but i try to learn C#. I need proxy example. Any one can give me?

Ps: I try to run pushdex's simple proxy but i cant run this program :/
fatihy93 is offline  
Old 06/06/2011, 16:18   #2
 
Kazuyaš's Avatar
 
elite*gold: 0
Join Date: Apr 2007
Posts: 449
Received Thanks: 236


read this thread
Kazuyaš is offline  
Thanks
1 User
Old 06/06/2011, 19:24   #3
 
elite*gold: 0
Join Date: Mar 2008
Posts: 105
Received Thanks: 31
Quote:
Originally Posted by Kazuyaš View Post


read this thread
Thank you. Realy this is proxy simple This program only connect to silkroadonline without client :/ It doesnt open port for bot connection.
fatihy93 is offline  
Old 06/06/2011, 20:25   #4
 
bootdisk's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 134
Received Thanks: 41
This is just a port of pushedx's api to Python.
You should code yourself the part listening part of the bot connection (port 22580).
But why would you need to open a port for a bot when you can code it directly in Python?
bootdisk is offline  
Old 06/06/2011, 20:45   #5
 
elite*gold: 0
Join Date: Mar 2008
Posts: 105
Received Thanks: 31
Quote:
Originally Posted by bootdisk View Post
This is just a port of pushedx's api to Python.
You should code yourself the part listening part of the bot connection (port 22580).
But why would you need to open a port for a bot when you can code it directly in Python?
Lol you're right Ok but how can i connect this connector with loader? I guess this is directly connect to silkroad without client. Can u tell to me ?
fatihy93 is offline  
Old 06/06/2011, 21:34   #6
 
bootdisk's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 134
Received Thanks: 41
This port in its current state can't do clientless because I'm really busy in real life to start the handling of the 0x600D packets (lol I shouldn't be on forums either but it's not time consuming ) but it can act directly as a pure Python proxy.

You've to think in this way:

Quote:
[SRO's server] <-> [your python app with pySilkroad] <-> [SRO's Client]
Your Python app will connect to the official servers, handle all the security part and it will send unencrypted packets to your SRO client. If you've seen server development, once you've done all the initialization for this security you just have to send the 0x5000 packet with the 0x01 as its flag (which means no security at all).

Then it's just a matter of decrypt packets sent from the server and send them to your client and encrypt the packets sent from the client to the server. So (S=Server, P=Python's Proxy, C=Client):
  1. [S->P]Server sends encrypted packets
  2. [P->C]Decryption of packets and sending of them to the client
  3. [C->P]Client has non encrypted response for the proxy to send to the server
  4. [P->S]The proxy encrypts them and send them back to the server

The only thing you need to do is to open a listening socket for your client and redirect it to your listening socket.
Also, you've to check for special packets that MUST be encrypted (item movement on inventory and so...).

It sounds complicated but it's not, give it a try, it's by far interesting and also... you could give me a hand by submitting patches or being part of its development (which I'm going to really appreciate ).
bootdisk is offline  
Old 06/07/2011, 08:23   #7
 
elite*gold: 0
Join Date: Mar 2008
Posts: 105
Received Thanks: 31
Quote:
Originally Posted by bootdisk View Post
This port in its current state can't do clientless because I'm really busy in real life to start the handling of the 0x600D packets (lol I shouldn't be on forums either but it's not time consuming ) but it can act directly as a pure Python proxy.

You've to think in this way:



Your Python app will connect to the official servers, handle all the security part and it will send unencrypted packets to your SRO client. If you've seen server development, once you've done all the initialization for this security you just have to send the 0x5000 packet with the 0x01 as its flag (which means no security at all).

Then it's just a matter of decrypt packets sent from the server and send them to your client and encrypt the packets sent from the client to the server. So (S=Server, P=Python's Proxy, C=Client):
  1. [S->P]Server sends encrypted packets
  2. [P->C]Decryption of packets and sending of them to the client
  3. [C->P]Client has non encrypted response for the proxy to send to the server
  4. [P->S]The proxy encrypts them and send them back to the server

The only thing you need to do is to open a listening socket for your client and redirect it to your listening socket.
Also, you've to check for special packets that MUST be encrypted (item movement on inventory and so...).

It sounds complicated but it's not, give it a try, it's by far interesting and also... you could give me a hand by submitting patches or being part of its development (which I'm going to really appreciate ).
Finally i need only open agent and gateway server port to connect my connector with client ?
fatihy93 is offline  
Old 06/07/2011, 15:10   #8
 
bootdisk's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 134
Received Thanks: 41
Your proxy will receive the ip and port of the real server (Xian, etc...) when you log in.
You should at this point connect the proxy to that server and port.
At that point you can do two thing for the client:

1) Tell the client the proxy's ip address and port and it will automatically reconnect. And it can be the same address and port.

2) Send the 0xA103 packet with only one byte with the value "1" (this doesn't close the connection between your client and your proxy and I think it's better than closing and opening a socket). I tried this on an emu and it was better because it let me have 1 single server instead of 100 executables... I just wanted to tell you that is possible and might be "cool" to use it.
bootdisk is offline  
Reply


Similar Threads Similar Threads
[Guide] A Simple Silkroad Proxy Reference
08/04/2010 - SRO Coding Corner - 17 Replies
This guide is similar to to my Loader/Injected DLL guide. It's a complete project, but by itself, it is not enough to fully utilize at this stage. However, there is so much to this topic that I have to break down everything into different parts first. This guide will be the first in a small part series that shows how a Silkroad proxy is made. Future guides will complete the project by showing how to do the hook for a client, as well as a simple clientless that uses the proxy. Right now, the...
Simple questions, simple answers :)
11/09/2009 - Kal Online - 2 Replies
Hello guys :) I've been reading this forum for a while, and I found very nice information here but still, some threads in german can't provide me whole knowledge I'm looking for, that's why I'm asking some questions :) 1. kiki uce - is it working on windows xp/vista ? 2. I'm willing to check that on my own, but maybe somebody knows that already - will store hack (http://www.elitepvpers.com/forum/kal-online/300254 -tutorial-money-bug-store-hack.html) work on R3volution server ? There's GBL v2...
Simple Question Needs Simple Answer[If CR gone what bot we can use]
08/08/2008 - Cabal Online - 2 Replies
If CR is not free what BOT can we use in PH... Many players in Ph asking that question.... TY...
QO Proxy Simple Help.
03/28/2007 - CO2 Guides & Templates - 1 Replies
Hello, This is a simple guide for help with QOProxy, when I first started using it, I did have some problems understanding it, so I hope this one helps... All the best of luck, any questions or problems, please post reply. +k is appreciated ;D Thanks, BobbyTom



All times are GMT +2. The time now is 11:11.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.