Go Back   Novahq.net Forum > Off-Topic > General Chat

General Chat Talk about anything that does not fit into other topics here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-08-2017, 06:34 AM
lolfake is offline lolfake
lolfake's Avatar
Delta Team Maps

Join Date: Sep 2006
Location: LOL Not Found
Posts: 277

Glb

Scott I need you to decode this http://nw8.novaworld.net/jop_2.glb
Most probably in PHP Or MASM
Reply With Quote
  #2  
Old 07-08-2017, 06:44 AM
lolfake is offline lolfake
lolfake's Avatar
Delta Team Maps

Join Date: Sep 2006
Location: LOL Not Found
Posts: 277

Cool

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
__________________
Reply With Quote
  #3  
Old 07-08-2017, 06:45 AM
lolfake is offline lolfake
lolfake's Avatar
Delta Team Maps

Join Date: Sep 2006
Location: LOL Not Found
Posts: 277

Its an old file geez
__________________
Reply With Quote
  #4  
Old 07-08-2017, 09:52 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,919

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
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #5  
Old 07-09-2017, 07:58 AM
lolfake is offline lolfake
lolfake's Avatar
Delta Team Maps

Join Date: Sep 2006
Location: LOL Not Found
Posts: 277

ALL RIGHT i founded my old account yyou can lose this one
__________________
Reply With Quote
  #6  
Old 07-09-2017, 08:01 AM
lolfake is offline lolfake
lolfake's Avatar
Delta Team Maps

Join Date: Sep 2006
Location: LOL Not Found
Posts: 277

Should I change my name to the old one Xpilot
__________________
Reply With Quote
  #7  
Old 07-09-2017, 01:30 PM
Guest001 is offline Guest001
Registered User

Join Date: Aug 2008
Posts: 4,971

Quote:
Originally Posted by TahaGamer View Post
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:37 AM.




Powered by vBulletin®