Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 18.08.2005, 21:39   #1
nepsquare
Архивный участник
 
Join Date: Apr 2005
Posts: 256
Default [QUICK GUIDE] ASP - Configuring the registration page...

First of all I assume you know how to use and setup IIS/ASP.
Also have a form of firewall installed or it could be instant death...

There are several ways to set the site up, I'll just show you one. There's probably a better way to secure this, but I'll post that when I finished my quick-php guide.

*I included some images/content from my old site, edit them freely.

- Install ISS (On W2K3: enable asp) >iislockdown too while ur at it.
- Get THIS and unpack in ..\inetpub\wwwroot\
- Edit config.asp:
Code:
<%

const WEB_SIT_NAME = "SITE_NAME"        <<< Enter your sitename 
const SERVER_MAX_CLIENT = 200              <<< Change if necessary

const COOKIE_HEAD = "SITE_NAME"          <<< Enter your sitename

%>
- Edit conn.asp:
Code:
<%
'**************************************************************************
'                              Setting Info
'
'  ms_sql_server_host_addr = MS SQL database address
'  sql_server_username     = MS SQL account
'  sql_server_password     = MS SQL password
'            lin2db        = Account database
'            lin2world     = Player information database
'
'**************************************************************************

  dim sql_server_username,sql_server_password,lin2db,line2world
  dim lin2db_conn,lin2world_conn
  dim sys_type

'---------------------------------------------------------------------------
'-------------------------------Change below--------------------------------

  'MS SQL Database address
  ms_sql_server_host_addr = "SERVER_IP"     <<< Your server ip address

  'MS SQL account
  sql_server_username = "DB_USER"              <<< db username

  'MS SQL password
  sql_server_password = "DB_PASS"               <<< db password

  'Lin2db database(user_auth)
  lin2db = "lin2db"

  'Lin2world database(user_data)
  lin2world = "lin2world"

  ' Encrypt or decrypt L2AuthD(otherwise will say password not match)
  ' 1) When using L2AuthD_encrypt.zip then set sys_type = "encrypt"  
  ' 2) When using L2AuthD_decrypt.zip then set sys_type = "none"  
  sys_type = "encrypt"               <<< keep it on encrypted
- Edit ..\inc\foot.inc: Change the copyright info into ur own, kid yourself
- Edit ..\inc\header.inc Add/edit links, for forum/home/news/etc
- Edit left/right.inc for status pages... I included a few examples
- Edit the index.asp respectively... It comes clean.
- Restart IIS
- Only allow incoming ports 1433 and 80 with the source ip of your webserver to reach your gameserver. (if you run them seperate)
- Tada.

I never got to know Anti SQL injection for ASP. Shouldn't be hard to find on the net, though.
Test your server locally first, you know the drill. This little guide came in a bit of a rush. Lemme know what you've got.

*Optional: Install MBSA to check for other vulnerabilities.

Credits go to:
************************************************** ************

Terry39's LineageII register system v4.4

Anonymous's L2pass C code

E-mail : l2@souq.cn
HomePage: l2.souq.cn

************************************************** ************

peace.
nepsquare is offline  
 


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. The time now is 22:25.