Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
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 : [email protected]
HomePage: l2.souq.cn

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

peace.
nepsquare is offline  
Old 18.08.2005, 23:16   #2
maximus
Архивный участник
 
Join Date: Jun 2005
Posts: 135
Default

Hi

Nice guide for new ppl xD
maximus is offline  
Old 19.08.2005, 07:48   #3
Tim21
Архивный участник
 
Join Date: Aug 2005
Posts: 30
Default

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
Tim21 is offline  
Old 19.08.2005, 08:37   #4
nepsquare
Архивный участник
 
Join Date: Apr 2005
Posts: 256
Default

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...
nepsquare is offline  
Old 19.08.2005, 15:43   #5
Tim21
Архивный участник
 
Join Date: Aug 2005
Posts: 30
Default

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
Tim21 is offline  
Old 19.08.2005, 17:16   #6
nepsquare
Архивный участник
 
Join Date: Apr 2005
Posts: 256
Default

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?
nepsquare is offline  
Old 19.08.2005, 17:40   #7
Tim21
Архивный участник
 
Join Date: Aug 2005
Posts: 30
Default

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 is offline  
Old 20.08.2005, 01:48   #8
Tim21
Архивный участник
 
Join Date: Aug 2005
Posts: 30
Default

Quote:
Originally Posted by nepsquare
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
Tim21 is offline  
Old 20.08.2005, 02:01   #9
Professor F
Архивный участник
 
Join Date: Jul 2005
Posts: 136
Default

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
Professor F is offline  
Old 20.08.2005, 11:15   #10
nepsquare
Архивный участник
 
Join Date: Apr 2005
Posts: 256
Default

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?
nepsquare is offline  
Old 20.08.2005, 12:01   #11
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Sorry for the mix up, nep. I'll move the thread to the mods section. :P
flakka is offline  
Old 21.08.2005, 18:30   #12
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

I get Service Unavailable
Can anyone really help ? or lemme know how do i set up and php reg page :/
Flamestrike is offline  
Old 22.08.2005, 08:40   #13
nepsquare
Архивный участник
 
Join Date: Apr 2005
Posts: 256
Default

Check if you can manually start IIS...
nepsquare is offline  
Old 22.08.2005, 19:51   #14
nepsquare
Архивный участник
 
Join Date: Apr 2005
Posts: 256
Default

Here 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.
nepsquare is offline  
Old 23.08.2005, 15:05   #15
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

Thanks alot nep. My site is working properly now and i`ll update it with this new pack.
Once again thanks.
Flamestrike is offline  
Old 24.08.2005, 10:53   #16
nepsquare
Архивный участник
 
Join Date: Apr 2005
Posts: 256
Default

Cool, no prob...
nepsquare is offline  
Old 31.01.2006, 16:07   #17
shpinxaa
Архивный участник
 
Join Date: Jan 2006
Posts: 4
Default The remote procedure call failed and did not execute.

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?
shpinxaa is offline  
Old 22.07.2006, 22:10   #18
w2obom
Архивный участник
 
Join Date: Jun 2006
Posts: 35
Default

hi all help me post plz asp registration page plz bb all
w2obom is offline  
Old 28.07.2007, 11:35   #19
GANSH
Архивный участник
 
Join Date: Feb 2006
Posts: 21
Default

Quote:
Originally Posted by Tim21 View Post
Í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}
GANSH is offline  
Old 28.07.2007, 11:53   #20
okae
Архивный участник
 
Join Date: Apr 2007
Posts: 21
Default

can you reshare it?
okae is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 18:54.