Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Stop people from stealing your DCR's, External Text, and Variables!

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jun 30, 2008
Messages
14
Reaction score
4
I do not know if this should be called Encryption.
Basically all this does is, only your web page can use an External Text, Variable, or DCR. And if anyone else tried to use it or read it (Sulake Maybe? :brows:) You can set the message they will receive upon entering the site or file.
I simply call it PassWhore'd, because that is a funny name.​

This tutorial requires:
  • PHP Support.
  • You are the hoster of the DCRs.
  • Cookies.
  • A brain.

We start out with creating a webpage, this will be emulating the External Text file; it will be as if you were reading the externaltext.txt
This webpage would be named externs.php (Thats how I named it.)
Just pop open notepad and copy and paste this in it, and save it as externs.php with Save As Type: All
Code:
<?php
session_start();
$Password = '[B]REPLACETHIS[/B]';
$Message = 'Encrypted.';
//Don't worry about the rest.
if ($_SESSION["encrypttext"] == $Password) {
header('Content-type: text/plain');
readfile('[B]http://habbohotel.com/gamedata/external?id=external_texts[/B]');
}else{
header('Content-type: text/plain');
echo $Message;
}
unset($_SESSION['encrypttext']);
?>
You can use the file I use above or replace it with your own.
Set a password that you will be using and remember it for later on, and you can just leave the message.

What it does is it checks to see if the cookie or session "encrypttext" is the same as the password. We will set encrypttext later. This script also clears it out so nobody will be able to read it after. We do the same for the external variables, but change the session 'encrypttext' to 'encryptvars'.
Name this file text.php.
Code:
<?php
session_start();
$Password = '[B]REPLACETHIS[/B]';
$Message = 'Encrypted.';
//Don't worry about the rest.
if ($_SESSION["encryptvars"] == $Password) {
header('Content-type: text/plain');
readfile('[B]http://erco.987mb.com/variables.txt[/B]');
}else{
header('Content-type: text/plain');
echo $Message;
}
unset($_SESSION['encryptvars']);
?>

And now we're going to protect the DCRs.
Please note I haven't tested this, but all the other files work fine.
This one is a bit tricky, but almost the same process.
You will have to save this file in the same folder as your DCR file, and then you can later on move the DCR.

Code:
<?php
session_start();
$Password = '[B]REPLACETHIS[/B]';
$Message = 'Encrypted.';
//Don't worry about the rest.
if ($_SESSION["encryptdcrs"] == $Password) {
header('Content-type: application/x-director');
readfile('[B]http://erco.987mb.com/dcr/splaze.dcr[/B]');
}else{
header('Content-type: text/plain');
echo $Message;
}
unset($_SESSION['encryptdcrs']);
?>

And now this is the final step, as I explained to you before the files check to see if the sessions are the same as the password. Now we are going to set the session.
What you want to do is link to this page INSTEAD of the loader.
This file will be called Preloader.php because you load it before the loader.

Code:
<?php
session_start();
$Password = '[B]REPLACETHIS[/B]';
$_SESSION["encrypttext"] = $Password;
$_SESSION["encryptvars"] = $Password;
$_SESSION["encryptdcrs"] = $Password;
?>
<header>
<meta HTTP-EQUIV="REFRESH" content="0; url=[B]INSERTLOADERURLHERE[/B]">
</header>

Remember to replace what is in bold in all the files. Using the same password as this may be insecure.

Replace the DCR, External Text, and Variable URL with the file's URLs.

Unfortunately, using this system needs you to remove HEAD and HEADER tags from your loader page. Hopefully that won't ruin anything.
OR
Edit: Looking over your post, you wouldn't need to remove the header tags, just put the php code above the header tags.
Happy to help =D
Follow TomSpit's advice, thanks TomSpit! :)

If you have any questions or problems, feel free to ask them in this thread and I will answer them to the best of my ability.

-KreanBBQ
 
Last edited:
Status
Not open for further replies.
Back
Top