Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   General Chat (https://novahq.net/forum/forumdisplay.php?f=2)
-   -   Glb (https://novahq.net/forum/showthread.php?t=48217)

lolfake 07-08-2017 06:34 AM

Glb
 
Scott I need you to decode this http://nw8.novaworld.net/jop_2.glb
Most probably in PHP Or MASM:hail:

lolfake 07-08-2017 06:44 AM

Ok i tested it with that glb you linked to and it did work fine. There is not many servers on but it it does work. I was able to get the php version i have to. The php version replaces the 0 charactors with a <br>. I did this well testing the format of the glb when i started to look at it. You can simply change that if you would like. Ill paste the php in this message. You can simply copy it to a file and name it anything.php If you have problems with it or it does not all copy right then let me know and ill send it to you other way.
PHP Code:

 <? 

  $fp 
fopen ("http://nw4.novaworld.net/bhd_6x.glb""rb");  

  
$str ''
  while (!
feof($fp)) { 
    
$str .= fread($fp8192); 
  } 

  
fclose ($fp); 

  echo 
DecodeGLB($str); 

Function 
DecodeGLB ($str) {   

  
$constdec[0] = 112;   
  
$constdec[1] = 222;   
  
$constdec[2] = 76;   
  
$constdec[3] = 186;   
  
$constdec[4] = 40;   
  
$constdec[5] = 150;   
  
$constdec[6] = 4;   

  
$multi 0xA0C2
  
$key "NOVAWORLD";   
  
$rconst "0";   
  
$rkey "0";   
  
$x "0";   

  
$len strlen($str);   

  for(
$i=0;$i<$len;$i++){   

    if (
$rconst 6) {   

      
$rconst "0";   
      
$x++;   
     
    } 

    if (
$rkey >= strlen($key)) $rkey "0"

    
$lowbase 0x4B05731 $multi 0xFFFF;   
    
$multi $lowbase

    
$result ord($str[$i]) - ord($key[$rkey]) + $constdec[$rconst] + ($x 2) - $lowbase 0xFF

    if (
$result != 0$gameslist .= chr($result);  
    if (
$result == 0$gameslist .= "<br>";  

    
$rkey++;   
    
$rconst++;   

  } 
   
  return 
$gameslist


lolfake 07-08-2017 06:45 AM

Its an old file geez :)

Scott 07-08-2017 09:52 PM

TahaGamer.... Please use only one account to post on the forums. We don't need to post from multiple accounts and multiple VPN's here...

Looks like an old modified PHP function. Well done. This should get the job done for decoding GLB files with PHP :nerd:

lolfake 07-09-2017 07:58 AM

ALL RIGHT i founded my old account yyou can lose this one

lolfake 07-09-2017 08:01 AM

Should I change my name to the old one Xpilot

Guest001 07-09-2017 01:30 PM

Quote:

Originally Posted by TahaGamer (Post 387092)
Should I change my name to the old one Xpilot

Quote:

“If you don't know who you truly are, you'll never know what you really want.”
― Roy T. Bennett


All times are GMT -5. The time now is 08:44 AM.

Powered by vBulletin®