PDA

View Full Version : [QUICK GUIDE] ASP - Configuring the registration page...


nepsquare
18.08.2005, 21:39
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 (http://l2freestyle.com/regpage.zip) and unpack in ..\inetpub\wwwroot\
- Edit config.asp:
<%

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:
<%
'************************************************* *************************
' 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,lin e2world
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 : [email protected]
HomePage: l2.souq.cn

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

peace.

maximus
18.08.2005, 23:16
Hi

Nice guide for new ppl xD

Tim21
19.08.2005, 07:48
Ok, ive done everything as you said and still i cant get it to work!

Here is the error i am getting!

Technical Information (for support personnel)

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.
/conn.asp, line 48


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

Page:
GET /index.asp

Time:
Friday, August 19, 2005, 3:45:45 AM



I hope someone can help me!

Tim


Edit:

Ok I made the the 500:100 erro to default and now i get this error as listed on the microsoft page and now i get this error.

Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'

[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'User1'.

/conn.asp, line 48

nepsquare
19.08.2005, 08:37
It seems that User1 is not authenticated with the provided pass in Conn.asp. Check if the username is correct(capitals)...

Basically the only thing you need to edit is the ip, dbuser and dbpass...

Tim21
19.08.2005, 15:43
checked,

I putted the right info on it, the servers are connection to it fine, I just cant get the registration pageg connecting.

Can you authorisate me when your home on skype and mayb e you can help me out?

Tim

nepsquare
19.08.2005, 17:16
Sure, does the index.asp work for ya? BTW: Did you restart IIS after changing all this?

Gotta make dinner first, then I'll look you up, ya?

Tim21
19.08.2005, 17:40
Yes i did exactly as standed in the guide.

I also looked up some error's on the microsoft page but it just does not work.

for a odd reason it does not connect to the sql DB or there is a error messing it up not sure.

yeah come on skype plz!

Tim

Tim21
20.08.2005, 01:48
Sure, does the index.asp work for ya? BTW: Did you restart IIS after changing all this?

Gotta make dinner first, then I'll look you up, ya?

Ík krijg nog steeds deze error.

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.

/conn.asp, line 48

Professor F
20.08.2005, 02:01
btw: when i used this reg it worked only with sql serv, running on the same machine, maybe it could be changed somewhere, donno, but note this

nepsquare
20.08.2005, 11:15
That's weird. Are you sure you can connect from your webserver to your MSSQL server? Do a telnet session to test your connection:
c:\>telnet serverip 1433

If the server isn't listening. you'll get an error message. If it is, telnet displays nothing, and the connection will drop. Then test your sql login:
c:\>isql -U username -P password -S serverip

Is you fill this information correctly in the conn.asp, the page should run immediately.

Btw: Which version of IIS/Windows are you running?

flakka
20.08.2005, 12:01
Sorry for the mix up, nep. I'll move the thread to the mods section. :P

Flamestrike
21.08.2005, 18:30
I get Service Unavailable
Can anyone really help ? or lemme know how do i set up and php reg page :/

nepsquare
22.08.2005, 08:40
Check if you can manually start IIS...

nepsquare
22.08.2005, 19:51
Here (http://l2freestyle.com/l2asp+forum.zip) is the Original pack, combined with a simple to install/manage forum...

Nothing dandy, you can also link to another open forum like IntegraMod.

peace.

Flamestrike
23.08.2005, 15:05
Thanks alot nep. My site is working properly now and i`ll update it with this new pack.
Once again thanks.

nepsquare
24.08.2005, 10:53
Cool, no prob...

shpinxaa
31.01.2006, 16:07
Hi Guys,

Im trying to get the L2ASP registration working, and i seem to be getting an error, between refreshes i get the following 2 errors come up on my page.

The remote procedure call failed and did not execute.

&

-2147467259 (0x80004005)

ive set it up as per the guides available and i still get this.

i put a test.htm page in there which displays apropriately so i am left to beleive this is more so related to the asp.

any ideas?

w2obom
22.07.2006, 22:10
hi all help me post plz asp registration page plz bb all

GANSH
28.07.2007, 11:35
Ík krijg nog steeds deze error.

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.

/conn.asp, line 48

just change the line in conn.asp and inc\characctlist.asp ;

driver={SQL Server} to driver={SQL Native Client}

okae
28.07.2007, 11:53
can you reshare it?