Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

AUTOPATCHER


ilovegreendays

Question

all the autopatchers i find i need the metin2client.bin file, but my client doesn't have .bin only .exe. I tryed changing the extention of .exe to .bin but when i try to open it opens directly the client, doesn't open patcher...

Link to post

4 answers to this question

Recommended Posts

  • 0
  • VIP
Posted (edited)
17 hours ago, ilovegreendays said:

all the autopatchers i find i need the metin2client.bin file, but my client doesn't have .bin only .exe. I tryed changing the extention of .exe to .bin but when i try to open it opens directly the client, doesn't open patcher...

 

What he meant was to make your client to read an argument from the patcher, so that it will close itself it someones tries to open without said argument.

 

 

You can do this remotly, the structure is the following:

  • Generate random string (will be your argument) on a fixed url
  • Have your client read argument remotly from above url
  • Have your patcher read argument remotly from above url
  • Have argument change frequently

 

You can use something like this to make your argument:

<?php
//Valor minino e maximo da variavel
$min=20;
$max=100;

//Guardar numero aleatorio na variavel
$length = mt_rand($min,$max);

//Funcao gerar numero aleatorio
function generateRandomString($length) {
    $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
    $charactersLength = strlen($characters);
    $randomString = '';
    for ($i = 0; $i < $length; $i++) {
        $randomString .= $characters[rand(0, $charactersLength - 1)];
    }
    return $randomString;
}

//Guardar numero aleatorio no ficheiro
$myfile = fopen("arg.txt", "w") or die("Unable to open file!");
$txt = "--" . generateRandomString($length);;
fwrite($myfile, $txt);
fclose($myfile);
?>

 

And then you setup a cron to just trigger that php file, creating a new argument.

 

People can still get your argument (find the url), depends on what frequency you change it.

But it will surely annoy script kiddies.

 

If you really want to force players running patcher, then just make the client useless after an update.

For example reading executable version / hash at game source, so that when the players attemps to enter the game, the client closes itself if they differ.

Edited by tierrilopes (see edit history)
  • Love 1
Link to post

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


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.