Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 23:39

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

Advertisement



Dead Frontier Highscore

Discussion on Dead Frontier Highscore within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2008
Posts: 7
Received Thanks: 15
-
pr0f4n is offline  
Old 04/17/2008, 01:11   #2
 
scbiz's Avatar
 
elite*gold: 196
Join Date: Nov 2005
Posts: 625
Received Thanks: 192
Hi pr0f4n,
ich habe scheinbar immer etwas zu bemängeln, mehr oder minder berechtigt.

Deine JS-Funktion funktioniert natürlich einwandfrei, aber mir gefällt die Weise nicht, wie du das Skript in die HTML Seite einbettest. Deswegen habe ich es "überarbeitet".

Außerdem habe ich, ohne bei dir abzuspicken, ein Skript in PHP geschrieben, das den gleichen Effekt hat (nicht PHP-CLI). Es ist bereit für die Benutzung (/Upload auf Webspace, auf dem PHP interpretiert wird) und kommt mit einem minimalen Interface
Leider musste ich das PHP Skript archivieren und hochladen, da die PHP-Tags total verbuggt sind.

Edit: Manche Freehoster verhindern die Verwendung der PHP-Funktion "file_get_contents", weshalb das Skript nicht unbedingt funktionieren muss.

Und um zu zeigen, wie bekloppt die Entwickler dieses Spiels sind, habe ich den entsprechenden Part aus dem ActionScript des Spiels extrahiert. Die haben ihre Funktion doch glatt EncrpytString genannt!

JS:
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <title>nop0x90 wuz here :3</title>
  </head>
  <body>
    <script type="text/javascript">
      function param(str) {
        var pc = "aHfEjcDebChGiAfIjDbEjacD";
        var nLen = pc.length;
        var nLen2 = str.length;
        var _loc1 = "";
        var _loc2 = 0;
        var _loc3 = 0;
        var _loc4;
        var _loc5;
        var _loc6;
        for (i = 0; i < nLen2; ++i) {
          _loc4 = str.charCodeAt(i);
          if (_loc4 >= 128) {
            _loc4 = "X";
          }
          _loc5 = pc.charCodeAt(_loc2);
          _loc2 = _loc2 + 1;
          if (_loc2 >= nLen) {
            _loc2 = 0;
          }
          _loc6 = _loc4 % 16 + _loc5;
          _loc1 = _loc1 + String.fromCharCode(_loc6);
          _loc3 = _loc3 + _loc6;
          _loc5 = pc.charCodeAt(_loc2);
          _loc2 = _loc2 + 1;
          if (_loc2 >= nLen) {
            _loc2 = 0;
          }
          _loc6 = Math.floor(_loc4 / 16) + _loc5;
          _loc1 = _loc1 + String.fromCharCode(_loc6);
          _loc3 = _loc3 + _loc6;
        }
        _loc3 = _loc3 % 256;
        _loc5 = pc.charCodeAt(_loc2);
        _loc2 = _loc2 + 1;
        if (_loc2 >= nLen) {
          _loc2 = 0;
        }
        _loc6 = _loc3 % 16 + _loc5;
        _loc1 = _loc1 + String.fromCharCode(_loc6);
        _loc5 = pc.charCodeAt(_loc2);
        _loc2 = _loc2 + 1;
        if (_loc2 >= nLen) {
          _loc2 = 0;
        }
        _loc6 = Math.floor(_loc3 / 16) + _loc5;
        _loc1 = _loc1 + String.fromCharCode(_loc6);
        return _loc1;
      }
      
      alert('URL: http://www.arcadetown.com/deadfrontiernighttwo/hs.asp?' + param('pr0f4n|666'));
    </script>
    <noscript>
      <h1>Time to enable JavaScript :P</h1>
    </noscript>
  </body>
</html>
AS:
Code:
function EncrpytString(strVal) {
  var v7 = 'aHfEjcDebChGiAfIjDbEjacD';
  var v8 = v7.length;
  var v11 = '0';
  var v3 = '';
  var v9 = strVal.length;
  var v1 = 0;
  v3 = '';
  var v4;
  var v6;
  var v2;
  var v5 = 0;
  nCnt = 0;
  while (nCnt < v9) {
    v4 = strVal.charCodeAt(nCnt);
    if (v4 >= 128) {
      v4 = 'X';
    }
    v6 = v7.charCodeAt(v1);
    v1 += 1;
    if (v1 >= v8) {
      v1 = 0;
    }
    v2 = v4 % 16 + v6;
    v3 += String.fromCharCode(v2);
    v5 += v2;
    v6 = v7.charCodeAt(v1);
    v1 += 1;
    if (v1 >= v8) {
      v1 = 0;
    }
    v2 = Math.floor(v4 / 16) + v6;
    v3 += String.fromCharCode(v2);
    v5 += v2;
    ++nCnt;
  }
  v5 %= 256;
  v6 = v7.charCodeAt(v1);
  v1 += 1;
  if (v1 >= v8) {
    v1 = 0;
  }
  v2 = v5 % 16 + v6;
  v3 += String.fromCharCode(v2);
  v6 = v7.charCodeAt(v1);
  v1 += 1;
  if (v1 >= v8) {
    v1 = 0;
  }
  v2 = Math.floor(v5 / 16) + v6;
  v3 += String.fromCharCode(v2);
  return v3;
}
Attached Files
File Type: rar 0mgh4x.rar (1.2 KB, 29 views)
scbiz is offline  
Old 10/07/2011, 00:39   #3
 
elite*gold: 0
Join Date: Jul 2011
Posts: 2
Received Thanks: 0
Is this a Dead Frontier hack or?
Franchise88 is offline  
Old 10/07/2011, 02:54   #4
 
scbiz's Avatar
 
elite*gold: 196
Join Date: Nov 2005
Posts: 625
Received Thanks: 192
Quote:
Originally Posted by Franchise88 View Post
Is this a Dead Frontier hack or?
Necrobump to the max.
scbiz is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[HOT] [LVL 62 .COM][50 HIGHSCORE]
08/11/2010 - Metin2 Trading - 5 Replies
Screens : http://img339.imageshack.us/img339/5282/080212240 9.jpg http://img836.imageshack.us/img836/2591/080212242 2.jpg Zahlungsmethoden ? PSC
Virenscan - Euer Trauriger Highscore
01/26/2010 - Off Topic - 46 Replies
http://s2.imgimg.de/uploads/Off338f86a8JPG.jpg :( und euere?
PING LATENZ HIGHSCORE
01/22/2010 - CrossFire - 18 Replies
Da ich im Moment nur noch Probleme hab mit meinem Ping, das er rauf und runter geht während dem Spiel. "Was absolut abfuckt" Hab ich mir gedacht machen ich mal ein Thread mit den besten Ping Highscore. also mein Ping lage grade eben mal bei 4525, was bis jetzt meine höchste Latenz war. Wie sieht es bei euch aus?
[SCRIPT]Highscore
10/21/2009 - Metin2 PServer Guides & Strategies - 23 Replies
gelöscht xD
Highscore - C++ Tutorial
04/07/2008 - C/C++ - 0 Replies
Hallo bin letztens durch Google auf diese intressante Seite gestoßen: Highscore - Programmieren lernen Sie finden auf dieser Website hochwertige Online-Bücher, die Sie in der Aus- und Weiterbildung zum Software-Entwickler unterstützen. Alle Online-Bücher sind unter einer Creative Commons-Lizenz veröffentlicht und können von Ihnen kopiert und weitergegeben werden. Ich habe mir mal ein paar Kapitel des C++ Tutorials dort angesehen. Das sieht doch sehr gut aus! Man kann von Anfang an...



All times are GMT +1. The time now is 23:40.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.