PDA

View Full Version : L2CP Reborn.


Phantom2005
24.12.2006, 16:19
Hello it's been a while since i last helped PP out.
And since there's some new exploit out for L2CP i'd like to share a new type of L2CP. I re-did L2CP in a better and optimized way.
And i'll even add more features later on.
Thanks to Doraemon or whoever started with this project.

And thanks to testdude for the injection fix + checkhash idea

Feel free to post bugs/questions/problems/suggestions, have fun.

v1.05
- Added a security code and added hash check.

v1.00
- New Style/New Way of fixing SQL Injection Exploit and some new features.

Preview:
http://img245.imageshack.us/img245/8668/naamloos2gr7.th.jpg (http://img245.imageshack.us/my.php?image=naamloos2gr7.jpg)http://img214.imageshack.us/img214/2718/naamloos3ef8.th.jpg (http://img214.imageshack.us/my.php?image=naamloos3ef8.jpg)

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
l2cpreborn.rar — 84146 байт

testdude
24.12.2006, 16:29
lawl w/e i might aswell be the person to say this

you didnt fix the sql injection

function checkcookie($where, $cookieuser, $cookiepass, $dbname, $sqladdress, $sqluser, $sqlpass) {
$cookieuser=antiinjection($cookieuser);
$cookiepass=antiinjection($cookiepass);
connectdb($dbname,$sqladdress, $sqluser, $sqlpass);
if($where==0) {
$result = mssql_query(sprintf(SELECT_USER_PASS, $cookieuser));
$rows=mssql_num_rows($result);
if ($rows>0) {
$rows=mssql_fetch_assoc($result);
extract($rows);
$password = '0x' . bin2hex($password);
if(md5($password)==$cookiepass) {
quickrefresh('home.php');
} else {
resetcookies();
}
} else {
resetcookies();
}
} elseif($where==1) {
$result = mssql_query(sprintf(SELECT_USER_PASS, $cookieuser));
$rows=mssql_num_rows($result);
if ($rows>0) {
$rows=mssql_fetch_assoc($result);
extract($rows);
$password = '0x' . bin2hex($password);
if(md5($password)!=$cookiepass) {
notloggedin();
}
} else {
notloggedin();
}
}
}


that fixes the sql injection kthnx

<3 from l2e the practically ONLY server to have secured l2cp >.>

testdude
24.12.2006, 16:32
and also... u might wanna add password hash size checking... if the length of the hash > 34 then that means that pw is corrupt, and cant be used, might wanna add it to register and changepassword

testdude
25.12.2006, 08:11
27 downloads not a single reply... Welcome to Post Pacific.

I hope you leechers get a fucking letter bomb for christmas.

mcrabben7
25.12.2006, 08:28
Thanks for sharing and welcome back Phantom :)

P.S. testdude, better watch your blood pressure xD

testdude
25.12.2006, 08:42
P.S. testdude, better watch your blood pressure xD

tho hey i guess the good thing is the leechers dont know how the fuck to put my code into l2cp xD

m4rk
25.12.2006, 10:51
tho hey i guess the good thing is the leechers dont know how the fuck to put my code into l2cp xD
you gave them the whole function, they'd have to be idiots not to know how to add it xD.

By the way thanks testude for pointing that out, I realised that the only way to be injected was through cookies but i didn't know shit about how they were handled by l2cp. After hacking my own server yesterday (for testing purposes xD) I finally understand almost everything. And thanks Phantom for your effort, I will surely study your l2cp reborn ^^

ismael66
25.12.2006, 11:22
thank dude (reffering to phantom) and thanks testdude for the function :)
Merry Christmas!

dirkr
25.12.2006, 15:09
i know its a nice panel and all but wouldnt it be easier ( and less exploitable ) to just leave cookies out of it and just check all the input given thru inputfields?
k you wont have a login function and all but just 3 pages with reg/change pw/recover pw
but isnt this more secure?

( feel free to flame me or to point out my dumbness )

m4rk
25.12.2006, 15:38
Well, right now if you check cookies and you have restricted user in sql there should be no problem at all. They can't drop tables, they can't exec cmdshells... they can't do shit xD...

testdude
25.12.2006, 16:29
actually right now if u use my function there is NO sql injection, PERIOD.

and btw cookies are used for logging in... theres not really a way to do it without cookies

Phantom2005
25.12.2006, 20:23
v1.05
- Added a security code.


just change $CONFIG['securitycode'] = "0";
[0 (disabled), 1: enabled for all, 2: enabled for all except login]
$CONFIG['securitycode'] = "0";

(it's added for lostpassword, register, login)

http://img214.imageshack.us/img214/2718/naamloos3ef8.th.jpg (http://img214.imageshack.us/my.php?image=naamloos3ef8.jpg)

nish
25.12.2006, 21:35
damn nice share to bad somethin like this was not out before i got injected 2 months ago lol :)

im using a custom reg right now so i cant use this but great share man and merry xmas ;)

testdude
26.12.2006, 08:14
dont thank or credit me for fixing ur sql hole and the hash check idea or anything phantom...

Phantom2005
26.12.2006, 11:19
Thanks testdude.
It's just a release for people that do not know how to do it themselfs.
The people that download it should thank you.
I don't really care about it anyway, I'm just finishing the work of the one who started this, im doing it for fun, i dont need any credits.

AsterisKSM
27.12.2006, 02:07
well... why it doesent work to make an account?all is good... user pass etc...
Every time i make an account i get this (Email length must be 7 to 50 characters long.)

i put even 40 caracters email.... lol but no effect... and account is not made...

kin
27.12.2006, 20:12
nish
On every page where user enter any data (login, change pass, register, etc), I have this kind of protection! I never put the site on internet without it! It's too easy to implement :) You are a hero that put your site without it.

KOC2000
28.12.2006, 02:27
Thank you.
I've the same problem as "AsterisKSM" plus I can't even login I always get a msgbox "You are not logged in".. also what does "Reser" at "Forgot your password?" do ?

Thanx.

AsterisKSM
28.12.2006, 08:58
Yea Exactly!!!

valsha
28.12.2006, 10:44
Thank you.
I've the same problem as "AsterisKSM" plus I can't even login I always get a msgbox "You are not logged in".. also what does "Reser" at "Forgot your password?" do ?

Thanx.

same problems

URANUS
28.12.2006, 16:45
same problems

same problems

SlayerX
28.12.2006, 17:57
Ffs Nooob Admin

URANUS
28.12.2006, 18:41
Ffs Nooob Admin

)))) But yours post - great solution this problem )))))

AsterisKSM
29.12.2006, 02:26
someone can fix this? (i`m not a php coder..)

cs991964
29.12.2006, 10:39
in functions.php file at function checkhash instead of 34 u must put 32.

THANK YOU FOR THIS SCRIPT and HAPPY NEW YEAR !

AsterisKSM
29.12.2006, 13:58
still not working.

Phantom2005
29.12.2006, 14:13
Re-download it i made a couple of mistakes.

AsterisKSM
29.12.2006, 14:30
NOTHING! Absolutly NOTHING fixed man ... In new vers

Onepex
29.12.2006, 14:41
NOTHING! Absolutly NOTHING fixed man ... In new vers

How about you be thankful over that he actually shares this instead of being a prick?

mcrabben7
29.12.2006, 15:12
Problems might be your version of PHP, your web host, etc. Don't blame Phantom for your problems. If it works for him, it's probably something you don't have installed.

AsterisKSM
29.12.2006, 15:17
wtf? i`m not the only one that has this problems... even Phantom sayd that he made some mistakes... so S.T.F.U if you`re words are only for have more posts. Onepex

ismael66
29.12.2006, 15:32
lol man , he is not god , and also he didn't owe you this

URANUS
29.12.2006, 15:47
New version fine work!

KOC2000
30.12.2006, 14:25
Works now.. but for "Forgot Password" to work you MUST have 'securitycode' set to 1 or 2.. this needs to be fixed also..

AsterisKSM
30.12.2006, 15:04
well for me ...still not working :(

AsterisKSM
02.01.2007, 05:27
Well... now to login is working... but with
$CONFIG['securitycode'] = "0"; set to 0... and to make an account ... it doesent work...

Onepex
02.01.2007, 23:59
Well... now to login is working... but with
$CONFIG['securitycode'] = "0"; set to 0... and to make an account ... it doesent work...

If you can't figure that out, then you simply shouldn't run a L2-sever.

AsterisKSM
03.01.2007, 06:23
Onepex i`m not a php scripter... and you shold f***k yourself before u speak something.

nasso
03.01.2007, 21:42
check_cookie: user=' (sql command - shutdown-- )
work ?

m4rk
03.01.2007, 22:49
nasso that's not a correct syntax for SQL...
and moreover, the antiinjection already fixes it so that you can't inject.

testdude
03.01.2007, 23:06
m4rk that kinda is... he was refering to the check_cookie function, if u use livehttpheaders, a plugin for firefox, and change the user or password cookie u can sql inject... which is what my changed check_cookie function stops... so yeah...

i was actually suprised that no one had released the fix for the injection.. l2cp was a pretty good control panel... just was insecure... but then again out of all of the servers ive looked at with l2cp mine is the only one i ever found that actually fixed the injection instead of just locking permissions

m4rk
03.01.2007, 23:07
ahh ok, i misunderstood you :)

crexas
04.01.2007, 02:29
What pc's/os/soft you use for your servers? I use WinXP Pro 64bit, SQL 2005 64bit, Intel Core™2... and i just can't figure out how to set up a web page for my server. For registration and everything else. The simple ASP failes to start since it has a problem with IIS with provider settings or smth (on 64bit os - too hard to fix this), tried with easy php and L2CP, got another error... like

"Warning: mssql_connect(): Unable to connect to server: 127.0.0.1 in d:\program files (x86)\easyphp1-8\www\load\functions.php on line 57

Warning: mssql_select_db(): supplied argument is not a valid MS SQL-Link resource in d:\program files (x86)\easyphp1-8\www\load\functions.php on line 58

Could any1 give a suggestion/link how to set up a simple registration web page that would work with my soft? Spent so much time googling, searching and still no answer.

mcrabben7
04.01.2007, 03:48
You have to install support for MS SQL into IIS. I did it a long time ago, but forgot how ^^ It has to do with the PHP mod, one of the DLLs has to be changed, and allowing mod_mssql in php.ini.

AsterisKSM
04.01.2007, 03:59
Here`s a little guide :
Download Appserv (google it) And Install it.
then go to C:\Windows and serch php.ini
Enter In php.ini and serch mssql (with notepad use FIND) and you will see ;extension=php_mssql.dll
and remove the ";" and save it!

then restart your apache server...and go to In C:\AppServ\www and delete all the things In There... and put l2cp... or other registration page that is In php... and CONFIG it to : your mssql user password etc.

Its Easy ... Just Think.

RaDEMON
04.01.2007, 09:59
Registration don't work, always writes "Email length must be 7 to 50 characters long."

Phantom2005
04.01.2007, 13:50
Registration don't work, always writes "Email length must be 7 to 50 characters long."

Updated once again. Problem solved.

RaDEMON
04.01.2007, 14:28
aha-ha LOL! =))
Now always writes "You filled a non-valid e-mail address."
You likely scoff? :-D

Ant0n1z
04.01.2007, 22:24
What pc's/os/soft you use for your servers? I use WinXP Pro 64bit, SQL 2005 64bit, Intel Core™2... and i just can't figure out how to set up a web page for my server. For registration and everything else. The simple ASP failes to start since it has a problem with IIS with provider settings or smth (on 64bit os - too hard to fix this), tried with easy php and L2CP, got another error... like

"Warning: mssql_connect(): Unable to connect to server: 127.0.0.1 in d:\program files (x86)\easyphp1-8\www\load\functions.php on line 57

Warning: mssql_select_db(): supplied argument is not a valid MS SQL-Link resource in d:\program files (x86)\easyphp1-8\www\load\functions.php on line 58

Could any1 give a suggestion/link how to set up a simple registration web page that would work with my soft? Spent so much time googling, searching and still no answer.
1st of All HI to all and happy new year!
on my first post I am gonna tell you my friend the solution I found after searching for a week :P
http://webzila.com/dll/1/ntwdblib.zip
extract this ntwdblib.dll to the following folders
(1st stop all MSSQL related services, 2nd backup your original dlls!!! it might not work for you)
1) C:\windows\system32\
2) C:\windows\
3) C:\windows\systemwow64\
4) in your php directory
replacing your files.
Start your SQL services.
It worked for me, I hope I helped.

/search mode on.... for solution for "You filled a non-valid e-mail address."

P.S. Phantom2005, testdude, thank you, you guys rock.

*edit* query returned 0 lines.
"You filled a non-valid e-mail address" error is killing me. any directions to search more are welcomed...
Gonna look into the php code with a co-worker who is more experienced in PHP
soon, maybe I come out with something and post an update here.

Phantom2005
05.01.2007, 17:05
Problem solved. re-download the attachment from the first post.

Ant0n1z
05.01.2007, 20:39
just to verify...

line 143 in register.php
if (isEmailAddress($email)==FALSE)
should be
if (isEmailAddress($email))
... am I right?


*edit* I tried your new version... same error for me...
I changed the line noted above and worked.... >.<

Phantom2005
06.01.2007, 11:32
My webserver was kinda messed up the past few days couldn't really test anything.

Sorry the original idea behind the "isemailaddress" function thing was just simply like the "antiinjection" function.

remove the

if (isEmailAddress($email)==FALSE)


part and add


$email = isEmailAddress($email);


so it will look like this:

...
$account = antiinjection($account);
$password = antiinjection($password);
$password2 = antiinjection($password2);
$email = isEmailAddress($email);
$question1 = antiinjection($question1);
$answer1 = antiinjection($answer1);
$question2 = antiinjection($question2);
...


Or just simply download the new version.

crexas
07.01.2007, 14:41
Ant0n1z thanks for help. it really solved the problem :)

WooCry
07.01.2007, 23:27
I configured your painel in my server, I was using php5 over apache2
It wasnt working, after some tests I saw that conect db function was the problem, then i replaced:

function connectdb($db, $dbaddress, $dbuser, $dbpass) {
$dbconnect = mssql_connect ($dbaddress, $dbuser, $dbpass);
mssql_select_db ($db, $dbconnect) or die (mysql_error());
}


with


function connectdb($db, $dbaddress, $dbuser, $dbpass) {
mssql_connect ($dbaddress, $dbuser, $dbpass);
mssql_select_db ($db) or die (mysql_error());
}


and everythink is working now ^^

Thanks

ps: I think its for everyone that uses php5

WooCry
08.01.2007, 02:49
Another problem, now i saw that all registered acc has no e-mail adress, so I changed your script:
in file register.php replace:


$email = isEmailAddress($email);


for


if (isEmailAddress($email) == FALSE)
{
echo "falat Error msg";
exit();
}


ps: Trying to register true or false as e-mail

and replace e-mail check function at functions.php:


function isEmailAddress($strEmail) {
$chars = "/^([a-z0-9+_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,6}\$/i";
if(strstr($strEmail, '@') && strstr($strEmail, '.')) {
if (preg_match($chars, $strEmail)) {
return TRUE;
} else {
return FALSE;
}
} else {
return FALSE;
}
}



^^

evern
09.01.2007, 16:44
this might be useful for those who still experiences problem setting up PHP5 module in IIS6

http://www.peterguy.com/php/install_IIS6.html

and on top of that you have to copy the attached file into PHP directory

and again on top of that you have to type this at command prompt to enable 64bit for php5isapi.dll

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

another thing is... although i followed the guide... but php still reads php.ini from my C:\Windows, so i have to copy paste php.ini into that directory

you will need more than luck if this doesn't work for you :)

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
ntwdblib.zip — 120187 байт

evern
09.01.2007, 17:03
anybody have this error when you log on and it direct you to home.php and sez 'you are not logged in' then kick you back out to index.php?

Rexx
14.01.2007, 01:27
Thanks for the work on the CP Phatmon.

I have a small problem if someone can help.
The CP works fine but the scurity code image doesn't show, the box is there but no image is displayed, it seems I may be the only one with this error so it may be in my setup.
Any Suggestions.
Thanks
Rexx

dirkr
14.01.2007, 12:20
you need to have a gd2 or gd extension installed with php to have it generate images.

http://www.boutell.com/gd/

Rexx
14.01.2007, 21:27
Thanks for your reply, but GD is installed, that was my first thought.
Been on this for many hours , still with no fix.
I will check out your link, maybe I need to upgrade GD.
Thanks
Rexx

werstein
15.01.2007, 05:42
If ur server on *nix, maybe u need to use imagemagick or recompile php with jpeg, png, etc.

Rexx
15.01.2007, 06:53
My php is on an apache server.
To recompile php, is that basically reinstalling php over the exsisting install, or is there a function to do this, I have searched many sites regarding recompiling but they are not clear as how it is done.

Thanks
Rexx

jhoni1234
15.01.2007, 20:56
Hello it's been a while since i last helped PP out.
And since there's some new exploit out for L2CP i'd like to share a new type of L2CP. I re-did L2CP in a better and optimized way.
And i'll even add more features later on.
Thanks to Doraemon or whoever started with this project.

And thanks to testdude for the injection fix + checkhash idea

Feel free to post bugs/questions/problems/suggestions, have fun.

v1.05
- Added a security code and added hash check.

v1.00
- New Style/New Way of fixing SQL Injection Exploit and some new features.

Preview:
http://img245.imageshack.us/img245/8668/naamloos2gr7.th.jpg (http://img245.imageshack.us/my.php?image=naamloos2gr7.jpg)http://img214.imageshack.us/img214/2718/naamloos3ef8.th.jpg (http://img214.imageshack.us/my.php?image=naamloos3ef8.jpg)

You can make when you put Lost Password and say ok the questions the passworld send to a email and no to see in the page?

greeting

jhoni

SORRY FOR ENGLISH

m4rk
15.01.2007, 21:00
You can make when you put Lost Password and say ok the questions the passworld send to a email and no to see in the page?

greeting

jhoni

SORRY FOR ENGLISH

¬_¬ just check the code

} elseif($CONFIG['email']==1) {
sendemail($CONFIG['emailsmtp'], $CONFIG['emailuser'], $CONFIG['emailpass'], $CONFIG['emailaddress'], $CONFIG['servername'], "Lost Password", $email, $account, $newpassword, $ssn, "<strong>Your password has been reseted and sent to your email.</strong>");
}

FidoW
15.01.2007, 21:05
LOL, look at config.php man... thats one of the best newbie questions a see in too much time xD

SKs
15.01.2007, 23:55
Preview:
http://img245.imageshack.us/img245/8668/naamloos2gr7.th.jpg (http://img245.imageshack.us/my.php?image=naamloos2gr7.jpg)http://img214.imageshack.us/img214/2718/naamloos3ef8.th.jpg (http://img214.imageshack.us/my.php?image=naamloos3ef8.jpg)

IE sucks. :D

Phantom2005
16.01.2007, 15:22
I don't care a crap about which browser i use as long as it works.
I think installing firefox is just a waste of my space.
Although i'm probably going to be forced soon (gf). :)
Which also explains that i dont really have much time to code on it anymore,
although i'd like to integrate the l2admin à la php soon.

~Marquis~
16.01.2007, 18:47
I don't care a crap about which browser i use as long as it works.
I think installing firefox is just a waste of my space.
Although i'm probably going to be forced soon (gf). :)
Which also explains that i dont really have much time to code on it anymore,
although i'd like to integrate the l2admin à la php soon.lol i think exactly the same thing about the firefox part, i already have IE on my comp and it's working well why would i fucking need installing firefox >.< and btw most of the websites are IE designed.
You better say you don't like IE monopole than antyhing else.

Belazor
25.01.2007, 13:34
m4rk that kinda is... he was refering to the check_cookie function, if u use livehttpheaders, a plugin for firefox, and change the user or password cookie u can sql inject... which is what my changed check_cookie function stops... so yeah...

i was actually suprised that no one had released the fix for the injection.. l2cp was a pretty good control panel... just was insecure... but then again out of all of the servers ive looked at with l2cp mine is the only one i ever found that actually fixed the injection instead of just locking permissionsYou obviously didn't check my old server then =P
Before I coded a vBulletin integrated L2CP we used pretty much the original BR version only without injection issues, and in a highly better coding style XD
I didn't look at your function, but in mine, I stripped all characters that weren't a-z A-Z 0-9, worked fine and dandy.
Had some guy claim he could still hack it but even though I told him to try it, he couldn't XD


@ the email checking function:
Checking for valid email address is pretty much useless anyways.
Unless you want to open for emails like [email protected] then you would be blocking people using emails from addresses with domain suffixes not predicted.
Sure, if they use fake emails they won't get their accounts validated and the likes, but if the system can be fooled to spam up your DB with accounts then why have it at all?

testdude
25.01.2007, 14:02
You obviously didn't check my old server then =P
Before I coded a vBulletin integrated L2CP we used pretty much the original BR version only without injection issues, and in a highly better coding style XD
I didn't look at your function, but in mine, I stripped all characters that weren't a-z A-Z 0-9, worked fine and dandy.
Had some guy claim he could still hack it but even though I told him to try it, he couldn't XD

yeah but u probably just replaced the cookies with vbul sessions instead... as for my function i just used the already existing antiinjection function inside l2cp and just checked the vars sent to the check cookie function before they went anywhere near the db, and that anti inject function just uses str_replace and eregi...

btw i hate vBulletin >.>

http://img149.imageshack.us/img149/9154/untitled6id.th.png (http://img149.imageshack.us/my.php?image=untitled6id.png)
^ my current work-in-progress... maybe ill share it some time...

FidoW
25.01.2007, 16:04
http://img149.imageshack.us/img149/9154/untitled6id.th.png (http://img149.imageshack.us/my.php?image=untitled6id.png)
^ my current work-in-progress... maybe ill share it some time...

Ummm, i have a similar panel... my cp have that info... inventary, warehouse, clan info, ally info, you can see the list of your friends and if is online or not... and a lot of more things like see when you reach a level (or down)...

Belazor
30.01.2007, 17:52
yeah but u probably just replaced the cookies with vbul sessions instead... as for my function i just used the already existing antiinjection function inside l2cp and just checked the vars sent to the check cookie function before they went anywhere near the db, and that anti inject function just uses str_replace and eregi...No, I coded a vBa module to quick register an account from the frontpage if they weren't logged in with vB.
Then I made a full-fledged vB addon which not only could register new accounts associated with a forum account, but let GMs with the proper permissions (set in the usergroup manager in vB) ban/unban users.
It also displayed some quick stats on the front page of the addon.
All MS-SQL queries done on a different port from the default 1433, and the server was configured to only allow the website domain to have access to run said queries.
Secure, it was.
Didn't get around to doing inventory and stuff before the server went to shits, already had all the images on my comp too :/

Ra1n0
16.02.2007, 12:39
I have a small problem if someone can help.
The CP works fine but the scurity code image doesn't show, the box is there but no image is displayed, it seems I may be the only one with this error so it may be in my setup.
Any Suggestions.
Thanks
Rexx open captcha.php and set from
<?
to
<?php
if still not work u dont have gd or gd not loaded
---
and of some new verison of php, image code check will not work

add to index.php
session_start();

demon
16.02.2007, 13:47
Ra1n0 wtf ? u are stupid ?

just enable
short_open_tag = On
extension=php_gd2.dll

in php.ini and restart apache or whatever

for session also
session.auto_start = 1 in php.ini

wtf !

Ra1n0
16.02.2007, 14:05
just enable
short_open_tag = On
session.auto_start = 1

lol i know this
but for default its off and more ppl dont know how set this
any question ?

V0gelz
21.02.2007, 18:02
Ok i got a problem with this. I have IIS installed on my box and offcourse mssql and php. Well my problem is if i look at the page of the cp (index.php) i get this : ( http://img337.imageshack.us/img337/2817/untitledbs4.jpg )

I did the mssql extention thing in php.ini etc but i can't find out why i allways get this msg. At first i tought it was something to do that mssql could not connect to IIS or something, maybe i'm right or wrong. I don't know it anymore.

Can someone help me with this?

Thanks in advance!
V0gelz

noixx
21.02.2007, 18:10
ey V0gelz i got the same thing :( and i cant get it to work either could some 1 help us out?


Tnx :)

~Marquis~
21.02.2007, 20:19
I had a similar error but i dont remember exactly how to fix it up, i can be totally mistaken but your webserv may not have a folder to stock the sessions files generated when someone browse one of the pages of your webserv. Just look at the error and see if it says something about a folder "1' wich's missing.

Fot@r@s
14.05.2007, 13:11
Guyz I need help, i can't stand anymore, i can't start my server 2weeks now for this stupit error.... see yourself and tell me Link of l2cp (http://xx.xx1.2xx.xx/l2/l2cp/). I have edit the extensions, error reporting config... all! But the script can't connect to mssql. I have test it with easyphp 1.8, 2,01, and 1,7 but nothing.... Now i have php 5. I had see in the readme that the l2cp need php 4 but i can't install it properly. If anyone can help me thx...

PS: If anyone can send me the [apache and php] ready to use, i will like it.


- Regrats

m4rk
14.05.2007, 18:41
download a former appserver version

Fot@r@s
14.05.2007, 19:20
download a former appserver version

from where?

m4rk
14.05.2007, 20:14
http://users.telenet.be/sami/bart.gif
http://sourceforge.net/project/showfiles.php?group_id=37459&package_id=29748

Phantom2005
14.05.2007, 20:18
it's ntwdblib.dll try to use one from an older PHP version.
Or use the one that can be found in your "windows" folder somewhere

Fot@r@s
14.05.2007, 20:30
you see the problem ?

Fot@r@s
14.05.2007, 20:31
ok guyz the problem solved thx

palace
16.05.2007, 14:30
I i try to intruduce new account, but dont create, said,

The maximum accounts per email is 1.

what is the solution. or any idea.

thank you

Fot@r@s
16.05.2007, 16:04
I i try to intruduce new account, but dont create, said,

The maximum accounts per email is 1.

what is the solution. or any idea.

thank you


Set from 1 to 2 or whatever you want ;)

palace
16.05.2007, 17:04
Thank you man

Other question

:: Lost Password? ::
Incorrect verification code.

in this case, any idea

-=sword=-
17.05.2007, 02:53
/rus/
Да нахуй тебе нужно востановлеие пароля, через это ламают чястенько, особенно если пасс не высылаеться на э-майил,
Так что просто удали lostpasswd.php И жеви счастливо

//**rus**//


//eng//

Restoration of the password through this хрень quite often is not necessary to you break so simply remove lostpasswd.php
//**eng**//

Sorry for my bad english =)

Geos
17.05.2007, 19:29
/rus/
Да нахуй тебе нужно востановлеие пароля, через это ламают чястенько, особенно если пасс не высылаеться на э-майил,
Так что просто удали lostpasswd.php И жеви счастливо

//**rus**//


//eng//

Restoration of the password through this хрень quite often is not necessary to you break so simply remove lostpasswd.php
//**eng**//

Sorry for my bad english =)
You are not correct! If you have the generated picture on the page, then no one can break this хрень ;)
I use my own php website which I created with my brain and it's not leaked from someone. If you understand what you do, you can be sure in it!

palace
18.05.2007, 17:51
Hi need a question.

I create account 3 day ago. Today i use option Change password, The password change in the game.

I create for example this account
user: peluche
pass: pelu
perfect account create.
logout

after 10 minute i enter in this panel control
i put user: peluche
pass: pela
I enter in panel control.

i put user: peluche
pass: pele
I enter in panel control.

i put user: peluche
pass: peli
I enter in panel control.

i put user: peluche
pass: pelo
I enter in panel control.

Only change one password, i enter with other password.

What is the problem, any idea.

Thank you

Talic
19.05.2007, 20:03
thanks dude..

Phantom2005
19.05.2007, 23:24
Hi need a question.

I create account 3 day ago. Today i use option Change password, The password change in the game.

I create for example this account
user: peluche
pass: pelu
perfect account create.
logout

after 10 minute i enter in this panel control
i put user: peluche
pass: pela
I enter in panel control.

i put user: peluche
pass: pele
I enter in panel control.

i put user: peluche
pass: peli
I enter in panel control.

i put user: peluche
pass: pelo
I enter in panel control.

Only change one password, i enter with other password.

What is the problem, any idea.

Thank you

That's because of binary. not because of L2CP Reborn. This has been like this from the start

predz0r
20.05.2007, 04:03
im getting this error, can anyone help me please?, thank you!:confused:

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: 127.0.0.1 in C:\wamp\www\registro\load\functions.php on line 65

Warning: mssql_select_db(): supplied argument is not a valid MS SQL-Link resource in C:\wamp\www\registro\load\functions.php on line 66

chacina
20.05.2007, 08:17
load/config.php

/*SQL Username [Default: sa]*/
$CONFIG['dbuser'] = "sa";

/*SQL Password [Default: NULL]*/
$CONFIG['dbpass'] = "YOU PASSWORD HERE";

if dont work this, back some pages and find 1 dll, extract in u system32

xephonics
20.05.2007, 20:20
is this for l2j or l2 official server software?

predz0r
20.05.2007, 21:03
l2 oficial server, not l2j, i already had configurated the userdb and pass, thats not wrong, and i already pasted the dll in their places, and remove the ";" from mysql_php.dll line on the ini.... i read all the posts in the forums and im going crazy now, i have 3 days with this problem.... , please help me..

Fot@r@s
21.05.2007, 09:31
im getting this error, can anyone help me please?, thank you!:confused:

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: 127.0.0.1 in C:\wamp\www\registro\load\functions.php on line 65

Warning: mssql_select_db(): supplied argument is not a valid MS SQL-Link resource in C:\wamp\www\registro\load\functions.php on line 66

You must have and the client tools of MSSQL. That was my problem.... Now with this i have fixed it.... ;)

predz0r
21.05.2007, 18:12
the problem was with
ntwdblib.dll
it had to be this version: 20xx.xx.194.0
now i have it working but i still have the problem
"the maximum accounts per email is 1." , it doesnt matter if i have 20 account per email, i still get that error, and when i try to use the security level 2 to activate the captcha i dont see the image, im using wamp server and i already have the gd2 library activated, can anyone help me?

HunteR-TecH
25.05.2007, 20:14
ty meng for sharing

estoke
02.06.2007, 18:33
yeah but u probably just replaced the cookies with vbul sessions instead... as for my function i just used the already existing antiinjection function inside l2cp and just checked the vars sent to the check cookie function before they went anywhere near the db, and that anti inject function just uses str_replace and eregi...

btw i hate vBulletin >.>

http://img149.imageshack.us/img149/9154/untitled6id.th.png (http://img149.imageshack.us/my.php?image=untitled6id.png)
^ my current work-in-progress... maybe ill share it some time...


Ummm, i have a similar panel... my cp have that info... inventary, warehouse, clan info, ally info, you can see the list of your friends and if is online or not... and a lot of more things like see when you reach a level (or down)...


Could you both share your CP, so we can expand this project?

Thx in advance.

katso
05.06.2007, 19:21
Hi I need a small aid, since I have hosted the page in webhosting, and it throws east error to me.

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: XXX.XXX.7.193 in /www/XXXXXXX.com.ar/htdocs/load/functions.php on line 65

Warning: mssql_select_db(): supplied argument is not a valid MS SQL-Link resource in /www/XXXXXX.com.ar/htdocs/load/functions.php on line 66

I read the possible solutions but I believe that no is adapted to my situation since I cannot modify DLL of hosting. From already thank you very much.

esp= hola necesito una pequeña ayuda, puesto que he hosteado la pagina en un webhosting, y me tira este error. He leido las posibles soluciones pero creo que ninguna se adecua a mi situacion puesto que no puedo modificar ningun dll del hosting. Desde ya muchas gracias.

polil91
17.07.2007, 14:27
I have a problem with your l2cp....

i cant remove those notices, can u tell me how i do it? :confused:
and how i fix sql injection?:confused:

http://img440.imageshack.us/img440/4908/ssmc9.jpg (http://imageshack.us)
By polil91 (http://profile.imageshack.us/user/polil91) at 2007-07-17

lunatiq
20.07.2007, 03:51
I have a problem with your l2cp....

i cant remove those notices, can u tell me how i do it? :confused:
and how i fix sql injection?:confused:

http://img440.imageshack.us/img440/4908/ssmc9.jpg (http://imageshack.us)
By polil91 (http://profile.imageshack.us/user/polil91) at 2007-07-17


Hello, you can reduce error reporting priority in php.ini to remove those