![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Архивный участник
Join Date: Apr 2005
Posts: 256
|
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 %> 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\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. |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jun 2005
Posts: 135
|
Hi
Nice guide for new ppl xD |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Aug 2005
Posts: 30
|
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 |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Apr 2005
Posts: 256
|
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... |
|
|
|
|
#5 |
|
Архивный участник
Join Date: Aug 2005
Posts: 30
|
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 |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Apr 2005
Posts: 256
|
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? |
|
|
|
|
#7 |
|
Архивный участник
Join Date: Aug 2005
Posts: 30
|
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 |
|
|
|
|
#8 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 30
|
Quote:
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 |
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Jul 2005
Posts: 136
|
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
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Apr 2005
Posts: 256
|
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? |
|
|
|
|
#11 |
|
Архивный участник
Join Date: Mar 2005
Posts: 1,143
|
Sorry for the mix up, nep. I'll move the thread to the mods section. :P
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Aug 2005
Posts: 434
|
I get Service Unavailable
Can anyone really help ? or lemme know how do i set up and php reg page :/ |
|
|
|
|
#13 |
|
Архивный участник
Join Date: Apr 2005
Posts: 256
|
Check if you can manually start IIS...
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Aug 2005
Posts: 434
|
Thanks alot nep. My site is working properly now and i`ll update it with this new pack.
Once again thanks. |
|
|
|
|
#16 |
|
Архивный участник
Join Date: Apr 2005
Posts: 256
|
Cool, no prob...
|
|
|
|
|
#17 |
|
Архивный участник
Join Date: Jan 2006
Posts: 4
|
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? |
|
|
|
|
#18 |
|
Архивный участник
Join Date: Jun 2006
Posts: 35
|
hi all help me post plz asp registration page plz bb all
|
|
|
|
|
#19 | |
|
Архивный участник
Join Date: Feb 2006
Posts: 21
|
Quote:
driver={SQL Server} to driver={SQL Native Client} |
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: Apr 2007
Posts: 21
|
can you reshare it?
|
|
|
|
|