Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 00:53

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

Advertisement



[PHP - CLIENT] Session Encrypt

Discussion on [PHP - CLIENT] Session Encrypt 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 - CLIENT] Session Encrypt

Hi community, today i release the encrypt of session packet written by me ^^

Code:
<?php
	function sessionEncrypt($identifier, $session)
	{
		$table = array(  83,  84,  85,  86,  87,  88,  89,  90,  91,  92,
						 99, 100, 101, 102, 103, 104, 105, 106, 107, 108,
						115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
						131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
						147, 148, 149, 150, 151, 152, 153, 154, 155, 156,
						163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
						179, 180, 181, 182, 183, 184, 185, 186, 187, 188,
						195, 196, 197, 198, 199, 200, 201, 202, 203, 204,
						211, 212, 213, 214, 215, 216, 217, 218, 219, 220,
						227, 228, 229, 230, 231, 232, 233, 234, 235, 236 );
		
		$str_enc = chr(154); // 0x9A
		
		$temp = $identifier[0].$identifier[1];
		$str_enc .= chr($table[(int)$temp]); // example --> 0xA6
		$temp = $identifier[2].$identifier[3];
		$str_enc .= chr($table[(int)$temp]); // example --> 0x84
		
		switch((int)$identifier[4])
		{
			case 0:
				$str_enc .=  chr(80); // 0x50
				break;
			case 1:
				$str_enc .=  chr(96); // 0x60 <-- example
				break;
			case 2:
				$str_enc .= chr(112); // 0x70
				break;
			case 3:
				$str_enc .= chr(128); // 0x80
				break;
			case 4:
				$str_enc .= chr(144); // 0x90
				break;
			case 5:
				$str_enc .= chr(160); // 0xA0
				break;
			case 6:
				$str_enc .= chr(176); // 0xB0
				break;
			case 7:
				$str_enc .= chr(192); // 0xC0
				break;
			case 8:
				$str_enc .= chr(208); // 0xD0
				break;
			case 9:
				$str_enc .= chr(224); // 0xE0
				break;
		}
		
		$temp = $session[0].$session[1];
		$str_enc .= chr($table[(int)$temp]); // example --> 0x64
		$temp = $session[2].$session[3];
		$str_enc .= chr($table[(int)$temp]); // example --> 0x86
		
		switch((int)$session[4])
		{
			case 0:
				$str_enc .=  chr(79); // 0x4F
				break;
			case 1:
				$str_enc .=  chr(95); // 0x5F
				break;
			case 2:
				$str_enc .= chr(111); // 0x6F
				break;
			case 3:
				$str_enc .= chr(127); // 0x7F
				break;
			case 4:
				$str_enc .= chr(143); // 0x8F
				break;
			case 5:
				$str_enc .= chr(159); // 0x9F <-- example
				break;
			case 6:
				$str_enc .= chr(175); // 0xAF
				break;
			case 7:
				$str_enc .= chr(191); // 0xBF
				break;
			case 8:
				$str_enc .= chr(207); // 0xCF
				break;
			case 9:
				$str_enc .= chr(223); // 0xDF
				break;
		}
		
		return $str_enc .= chr(14);
	}
	
	// 54321 = identifier
	// 12345 = session
	$encryptedSession = sessionEncrypt("54321", "12345");
?>
WORK WITH AN IDENTIFIER AND A SESSION OF 5 CHARS..
TESTED ON OFFICIAL SERVER..

GOOD LUCK,
SMOKE.
Sm•ke is offline  
Thanks
2 Users
Old 10/25/2013, 21:18   #2
 
ernilos's Avatar
 
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
¿Why always post 1 function for thread? You don't know what's update a thread?
ernilos is offline  
Old 10/25/2013, 21:35   #3
 
elite*gold: 0
Join Date: Aug 2013
Posts: 154
Received Thanks: 166
Quote:
Originally Posted by ernilos View Post
¿Why always post 1 function for thread? You don't know what's update a thread?
When you say me 'Why ernilos say always bullshit or useless words in threads of Nostale', i say you the solution of your question..
Sm•ke is offline  
Thanks
4 Users
Reply


Similar Threads Similar Threads
[Buying] [S] einen der meinen Char mit MEINER HB Session bottet [B] Gebrauch von 1 HB Session
07/07/2013 - World of Warcraft Trading - 1 Replies
Also nochmal: Ich stelle die Honorbuddy Session zur Verfügung und möchte das mein Char bzw mehrere Chars gebottet werden, sei es Leveln oder Pvp. Als Gegenleistung könnt ihr 1 Session nach belieben verwenden! :) Würde vielleicht auch dafür zahlen, dass jemand den Char hochbottet!:rolleyes: Greeetz!
How i can encrypt my client
04/21/2013 - SRO Private Server - 6 Replies
as my title said how i can encrypt my client for example Media.pk2 / Data.pk2 to 000.aaa or whatever any idea or hints for help please !
[CLIENT ENCRYPT]
07/27/2012 - Metin2 Private Server - 2 Replies
Hey every one! I just want to ask anybody that can change eix/epk extension? And crypt the client? I can give this website: http://img171.imageshack.us/img171/9872/backtdc.jp g To how can help me!
HELP - WHO ENCRYPT THE CLIENT?
10/06/2010 - Metin2 Private Server - 2 Replies
hi people how can i encrypt my client pls i see alot of people just come to my page just to download my client can someone teach me how to encrypt my client in that way people cant do nothing with my client



All times are GMT +1. The time now is 00:54.


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.