Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 18:24

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

Advertisement



[PHP] Nostale Unpacker

Discussion on [PHP] Nostale Unpacker within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2013
Posts: 154
Received Thanks: 166
[PHP] Nostale Unpacker

Hi community !

today i open this thread for release unpacker cryptography written in php..

Code:
function decryptnosfile($cData, $f_buffer, &$cOut, &$nOut)
{
	$table = array(0, 0, 45, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 13);
	$len = $f_buffer;
	$cBuffer = $cData;
	$offset = 0;
	$nOut = 0;
		
	while($offset < $len)
	{
		if(ord($cBuffer[$offset]) == 255)
		{
			$offset++;
			$cOut .= chr(13);
			$nOut++;
			continue;
		}
			
		$size = ord($cBuffer[$offset++]);
				
		$i = 0;
		if(($size & 128) == 0)
		{
			while(($i++ < $size) && ($offset < $len))
			{
				$cOut .= chr(ord($cBuffer[$offset++]) ^ 51);
				$nOut++;
			}
		}
		else
		{
			$size &= 127;
			while(($i < $size) && ($offset < $len))
			{
				$c = ord($cBuffer[$offset++]);
					
				$cOut .= chr(($table[($c & 240) >> 4]));
				$nOut++;
					
				if($table[$c & 15] != 0)
				{
					$cOut .= chr($table[$c & 15]);
					$nOut++;
				}
					
				$i += 2;
			}
		}
	}
		
	return $offset;
}
with this u can open .nos files that contain text ( translations, etc.. )

i release my project files like example:

for problems i'm here !

Preview
Sm•ke is offline  
Thanks
5 Users
Reply




All times are GMT +2. The time now is 18:24.


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