![]() |
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 |
ahh ok, i misunderstood you :)
|
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. |
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.
|
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. |
Registration don't work, always writes "Email length must be 7 to 50 characters long."
|
Quote:
|
aha-ha LOL! =))
Now always writes "You filled a non-valid e-mail address." You likely scoff? :-D |
Quote:
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. |
Problem solved. re-download the attachment from the first post.
|
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.... >.< |
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 PHP Code:
PHP Code:
PHP Code:
|
Ant0n1z thanks for help. it really solved the problem :)
|
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: Code:
function connectdb($db, $dbaddress, $dbuser, $dbpass) {Code:
function connectdb($db, $dbaddress, $dbuser, $dbpass) {Thanks ps: I think its for everyone that uses php5 |
Another problem, now i saw that all registered acc has no e-mail adress, so I changed your script:
in file register.php replace: Code:
$email = isEmailAddress($email);Code:
if (isEmailAddress($email) == FALSE)and replace e-mail check function at functions.php: Code:
function isEmailAddress($strEmail) {^^ |
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 байт |
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?
|
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 |
you need to have a gd2 or gd extension installed with php to have it generate images.
http://www.boutell.com/gd/ |
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 |
If ur server on *nix, maybe u need to use imagemagick or recompile php with jpeg, png, etc.
|
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 |
Quote:
greeting jhoni SORRY FOR ENGLISH |
Quote:
Quote:
|
LOL, look at config.php man... thats one of the best newbie questions a see in too much time xD
|
Quote:
|
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. |
Quote:
You better say you don't like IE monopole than antyhing else. |
Quote:
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 asdasd@asdsad.sdasd 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? |
Quote:
btw i hate vBulletin >.> http://img149.imageshack.us/img149/9...tled6id.th.png ^ my current work-in-progress... maybe ill share it some time... |
Quote:
|
Quote:
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 :/ |
Quote:
Code:
<?Code:
<?php--- and of some new verison of php, image code check will not work add to index.php Code:
session_start(); |
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 ! |
Quote:
but for default its off and more ppl dont know how set this any question ? |
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 |
ey V0gelz i got the same thing :( and i cant get it to work either could some 1 help us out?
Tnx :) |
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.
|
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. 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 |
download a former appserver version
|
| All times are GMT. The time now is 15:42. |