Poseidon: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
m (Reverted edits by Ifasite (Talk) to last revision by EternalHarvest)
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''Poseidon''' is a counter-measure for HackShield.
'''Poseidon''' is a counter-measure for nProtect GameGuard (HackShield).


With Poseidon, original game client (with HackShield) connected to Poseidon server provides data for OpenKore connected to real game server.
: Original game client (with HackShield) connected to Poseidon server provides data for OpenKore connected to real game server.  
: The RO server sends a packet to the client, and the client must response with an appropriate packet.
: Servers like cRO, kRO, jRO, twRO and vRO use GameGuard.
 
= Overview =
; Poseidon works like this:
: 1. Poseidon sets up a fake RO server (let us call it PoseidonRO).
: 2. RO client connects to PoseidonRO.
: 3. Poseidon sets up another server socket for communication with OpenKore.
: 4. OpenKore connects to real RO server and Poseidon.
: 5. Real RO server sends GameGuard query to OpenKore.
: 6. OpenKore sends GameGuard query to Poseidon.
: 7. Poseidon sends GameGuard query to RO client.
: 8. RO client sends a reply.
: 9. Poseidon sends reply to OpenKore.
: 10. OpenKore sends reply to real RO server.
 
== Fluxogram ==
[[File:Poseidon_workflow.jpg]]


= Configuration =
= Configuration =


== Ragnarok Client (Ragexe) ==
== Poseidon server ==
The basic settings of the Poseidon server are in the <code>control\poseidon.txt</code> file:


# Extract 'clientinfo.xml' from you ragnarok client data files (use GRFTool [http://ratemyserver.net/tool60cc8a55c54c5939d4c2f0bc7a64cf51/grftool-win32-1.2.0.zip]), rename it to 'poseidon.xml' and place in 'data' directory.
;ragnarokserver_ip=127.0.0.1
# Open it and change 'address' to your Poseidon server address ('127.0.0.1' or 'localhost' for same computer). Change 'port' to 6900. ''(These magic numbers are constants from 'src/Poseidon/poseidon.pl' source.)'' Change 'display' to anything you want to distinguish between Poseidon connection and your original.
;ragnarokserver_port=6900
: Here you'll define the IP Address and the Port where Poseidon will keep waiting for your ragnarok online client to connect.


Example of edited clientinfo:
; queryserver_ip=0.0.0.0
; queryserver_port=24390
: Here you'll define the IP Address and the Port where Poseidon will keep waiting for OpenKore to connect and send the GG/HS queries.


<pre><?xml version="1.0" encoding="euc-kr" ?>
; server_type=Default
<clientinfo>
: Here you have to specify your current server type in order to the poseidon operate properly! See <code>src\Poseidon\servertypes.txt</code> for available servertypes.
<servicetype>russia</servicetype>
<servertype>primary</servertype>
<extendedslot></extendedslot>


<connection>
; debug=0
<display>Poseidon</display>
: Enable debug messages
<desc>None</desc>
<address>127.0.0.1</address>
<port>6900</port>
<version>1</version>
<registrationweb>http://rofan.ru/</registrationweb>
</connection>
</clientinfo></pre>


== OpenKore ==
== Ragnarok Client (Ragexe) ==
 
Use the <code>clientinfo.xml</code> file to connect the Ragnarok client to the Poseidon server.


Make sure your server connection settings have 'gameGuard <number>'.
; You can use the following commands to start the Ragnarok client with the required parameters:
* cRO: <code>Ragexe.exe 1rag1 /account:poseidon.xml</code>
* jRO client: <code>Ragexe.exe 1rag1 -w -u:12345RO -p:be407f3a32e47d2b5cef6acb8f14724146a720cd /account:poseidon.xml</code>
* kRO client: <code>Ragexe.exe 1rag1 -t:DummyToken DummyUser  G Ragnarok /account:poseidon.xml</code>
* kRO Zero client: <code>Ragexe.exe 1rag1 -t:DummyToken DummyUser  G RagnarokZero /account:poseidon.xml</code>
* twRO: <code>Ragexe.exe 1rag1</code>
* vRO client: <code>Ragexe.exe 1rag1 User=DummyUser Token=DummyToken BToken=DummyBToken /account:poseidon.xml</code>


= Running =
; See examples for connecting OpenKore:
* [[Configuring_Poseidon_for_vRO]]
* [[Configuring_Poseidon_for_twRO]]


# Start 'start-poseidon.exe' or 'src/Poseidon/poseidon.pl', wait for message 'Poseidon initialized'.
== OpenKore ==
# Start 'ragexe 1rag1 /account:poseidon.xml'.
# Select Poseidon service (if prompted), input any login and password, select any character.
# You should appear in Novice Training Center and be able to see and talk with NPC (you will not be able to walk or do anything other than talking with NPC).
# Start OpenKore.


= Advanced configuration =
# Make sure your server connection settings have "[[gameGuard|gameGuard 1]]" (check <code>tables/servers.txt</code>).
#: [[File:serversgameguard.png]]
# Make sure that the values of the <code>poseidonServer</code> and <code>poseidonPort</code> parameters in the <code>control\config.txt</code> file match to the <code>queryserver_ip</code> and <code>queryserver_port</code> values from the <code>control\poseidon.txt</code> file.


== Poseidon server ==
= Launching a fake Poseidon server =


Constants in poseidon.pl:
There are two choices:
; RAGNAROK_SERVER_HOST, RAGNAROK_SERVER_PORT
: Host/port where ragnarok client will connect (Ragexe)
; QUERY_SERVER_HOST, QUERY_SERVER_PORT
: Host/port where poseidon clients will connect (OpenKore)


== Poseidon client (OpenKore) ==
# Start <code>start-poseidon.exe</code>
#: This application reads settings from a <code>control\poseidon.txt</code> file, then runs the <code>src\Poseidon\poseidon.pl</code> script. No Perl is required to run the script.
# Start <code>src/Poseidon/poseidon.pl</code> with parameters. You need Perl to run the script, or you can use: <code>start.exe ! src\Poseidon\poseidon.pl</code>
#: You can use the following arguments:
#:; --file=<string>
#:: specify the location of the <code>poseidon.txt</code> file (default: <code>control\poseidon.txt</code>)
#:: For example: <code>src\Poseidon\poseidon.pl --file=control\twRO\poseidon.txt</code>
#:; --ragnarokserver_ip=<address>
#:; --ragnarokserver_port=<port>
#:: Starts the Ragnarok Server (where the Ragnarok client will connect) at given address and port
#:; --queryserver_ip=<address>
#:; --queryserver_port=<address>
#:: Starts the Query Server (where openkore client will connect) at given address and port
#:; --server_type=<string>
#:: Selects a server type (see <code>src\Poseidon\servertypes.txt</code> for available servertypes)
#:; --debug=<[[boolean]]>
#:: Interesting for developers, poseidon will now output some extra info
#: For example:
#: Windows: <code>start start.exe ! src\Poseidon\poseidon.pl --file=control\poseidon_02.txt</code>
#: Linux: <code>src\Poseidon\poseidon.pl --server_type=twRO_2021-06-21 --ragnarokserver_ip=192.168.1.5 --ragnarokserver_port=6900</code>


Options in config.txt:
::; Notes:
; poseidonServer, poseidonPort
::* You can use any combination of those
: Host/port of Poseidon server (QUERY_SERVER connection is Poseidon)
::* If you provide <code>ragnarokserver_ip</code>, <code>ragnarokserver_port</code>, <code>queryserver_ip</code>, <code>queryserver_port</code> and <code>server_type</code>, no file will be loaded.
::* If neither <code>file</code> nor all the necessary command line arguments are given, poseidon will default to the default behavior of trying to load <code>../../control/poseidon.txt</code>, <code>./control/poseidon.txt</code>, or <code>./poseidon.txt</code> -- in that order.
::* Command line arguments have priority over the configuration file. For instance, if you use <code>--ragnarokserver_ip=<address></code>, the Ragnarok Server will be hosted at that address, not the one in the configuration file.
::* This feature is only available after PR [https://github.com/OpenKore/openkore/pull/1273 #1273] (15 Oct 2017)


== Notes ==
== Notes ==
* You can use one Poseidon for many bots, but GMs can possibly detect that.
* If game client protection detects OpenKore binaries, run Poseidon without binaries (install Perl) or on another (maybe virtual or WSL) machine.
* If game client protection detects OpenKore binaries, run Poseidon without binaries (install Perl) or on another (maybe virtual) machine.

Latest revision as of 10:20, 20 February 2022

Poseidon is a counter-measure for nProtect GameGuard (HackShield).

Original game client (with HackShield) connected to Poseidon server provides data for OpenKore connected to real game server.
The RO server sends a packet to the client, and the client must response with an appropriate packet.
Servers like cRO, kRO, jRO, twRO and vRO use GameGuard.

Overview

Poseidon works like this
1. Poseidon sets up a fake RO server (let us call it PoseidonRO).
2. RO client connects to PoseidonRO.
3. Poseidon sets up another server socket for communication with OpenKore.
4. OpenKore connects to real RO server and Poseidon.
5. Real RO server sends GameGuard query to OpenKore.
6. OpenKore sends GameGuard query to Poseidon.
7. Poseidon sends GameGuard query to RO client.
8. RO client sends a reply.
9. Poseidon sends reply to OpenKore.
10. OpenKore sends reply to real RO server.

Fluxogram

Poseidon workflow.jpg

Configuration

Poseidon server

The basic settings of the Poseidon server are in the control\poseidon.txt file:

ragnarokserver_ip=127.0.0.1
ragnarokserver_port=6900
Here you'll define the IP Address and the Port where Poseidon will keep waiting for your ragnarok online client to connect.
queryserver_ip=0.0.0.0
queryserver_port=24390
Here you'll define the IP Address and the Port where Poseidon will keep waiting for OpenKore to connect and send the GG/HS queries.
server_type=Default
Here you have to specify your current server type in order to the poseidon operate properly! See src\Poseidon\servertypes.txt for available servertypes.
debug=0
Enable debug messages

Ragnarok Client (Ragexe)

Use the clientinfo.xml file to connect the Ragnarok client to the Poseidon server.

You can use the following commands to start the Ragnarok client with the required parameters
  • cRO: Ragexe.exe 1rag1 /account:poseidon.xml
  • jRO client: Ragexe.exe 1rag1 -w -u:12345RO -p:be407f3a32e47d2b5cef6acb8f14724146a720cd /account:poseidon.xml
  • kRO client: Ragexe.exe 1rag1 -t:DummyToken DummyUser G Ragnarok /account:poseidon.xml
  • kRO Zero client: Ragexe.exe 1rag1 -t:DummyToken DummyUser G RagnarokZero /account:poseidon.xml
  • twRO: Ragexe.exe 1rag1
  • vRO client: Ragexe.exe 1rag1 User=DummyUser Token=DummyToken BToken=DummyBToken /account:poseidon.xml
See examples for connecting OpenKore

OpenKore

  1. Make sure your server connection settings have "gameGuard 1" (check tables/servers.txt).
    serversgameguard.png
  2. Make sure that the values of the poseidonServer and poseidonPort parameters in the control\config.txt file match to the queryserver_ip and queryserver_port values from the control\poseidon.txt file.

Launching a fake Poseidon server

There are two choices:

  1. Start start-poseidon.exe
    This application reads settings from a control\poseidon.txt file, then runs the src\Poseidon\poseidon.pl script. No Perl is required to run the script.
  2. Start src/Poseidon/poseidon.pl with parameters. You need Perl to run the script, or you can use: start.exe ! src\Poseidon\poseidon.pl
    You can use the following arguments:
    --file=<string>
    specify the location of the poseidon.txt file (default: control\poseidon.txt)
    For example: src\Poseidon\poseidon.pl --file=control\twRO\poseidon.txt
    --ragnarokserver_ip=<address>
    --ragnarokserver_port=<port>
    Starts the Ragnarok Server (where the Ragnarok client will connect) at given address and port
    --queryserver_ip=<address>
    --queryserver_port=<address>
    Starts the Query Server (where openkore client will connect) at given address and port
    --server_type=<string>
    Selects a server type (see src\Poseidon\servertypes.txt for available servertypes)
    --debug=<boolean>
    Interesting for developers, poseidon will now output some extra info
    For example:
    Windows: start start.exe ! src\Poseidon\poseidon.pl --file=control\poseidon_02.txt
    Linux: src\Poseidon\poseidon.pl --server_type=twRO_2021-06-21 --ragnarokserver_ip=192.168.1.5 --ragnarokserver_port=6900
Notes
  • You can use any combination of those
  • If you provide ragnarokserver_ip, ragnarokserver_port, queryserver_ip, queryserver_port and server_type, no file will be loaded.
  • If neither file nor all the necessary command line arguments are given, poseidon will default to the default behavior of trying to load ../../control/poseidon.txt, ./control/poseidon.txt, or ./poseidon.txt -- in that order.
  • Command line arguments have priority over the configuration file. For instance, if you use --ragnarokserver_ip=<address>, the Ragnarok Server will be hosted at that address, not the one in the configuration file.
  • This feature is only available after PR #1273 (15 Oct 2017)

Notes

  • If game client protection detects OpenKore binaries, run Poseidon without binaries (install Perl) or on another (maybe virtual or WSL) machine.