Jump to content

Recommended Posts

  • Premium
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
  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.